vps
vps

Reputation: 1367

about dll in .net

how to set the same dll for the typed dataset and untyped dataset using .net. in my program am writing the data set through coding in one page. am using connection string like this "server=10.103.200.142;User Id=root;password=test123;Persist Security Info=True;database=ezdatabase" in the same project in another page am creating dataset using wizards. Here also am using the same connection string . when i run this project am getting error. how do solve this? am getting error?

error
-----
  The type 'MySql.Data.MySqlClient.MySqlCommand' exists in both  'c:\Users\Bharathiraja.m\AppData\Local\Temp\Temporary ASP.NET Files\rbuzz_test\d83db07e\8aa569c6\assembly\dl3\64f6c429\004e2a48_7b32cc01\MySql.Data.DLL' and C:\Windows\Microsoft.NET\assembly\GAC_MSIL\MySql.Data\v4.0_6.3.6.0__c5687fc88969c44d\MySql.Data.dll'                c:\Users\Bharathiraja.m\AppData\Local\Temp\Temporary ASP.NET Files\rbuzz_test\d83db07e\8aa569c6\App_Code.jla9qgxc.1.cs   7993       

web.config contains the following connection string
---------------------------------------------------
<configuration>
<connectionStrings>
<add name="ezdatabaseConnectionString" connectionString="server=10.103.200.192;User Id=user;password=pwd;Persist Security Info=True;database=ezdatabase" providerName="MySql.Data.MySqlClient"/>
<add name="green" connectionString="server=10.103.200.192;User Id=user;database=ezdatabase; password= pwd " providerName="MySql.Data.MySqlClient"/>
</connectionStrings>

Upvotes: 0

Views: 455

Answers (1)

Druid
Druid

Reputation: 6453

Try after emptying your Temporary ASP.NET Files folder at c:\Users\Bharathiraja.m\AppData\Local\Temp\Temporary ASP.NET Files\

Update: Check your web.config file to see if you have more than one reference to MySql.Data.DLL.

Upvotes: 1

Related Questions