Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Two versions of assembly installed - How do I use the latest?

Reply
Thread Tools

Two versions of assembly installed - How do I use the latest?

 
 
vakuumbarn vakuumbarn is offline
Junior Member
Join Date: Sep 2007
Posts: 1
 
      09-05-2007
I am deploying a Asp.Net 2.0 web site to a web hosting server which has the older assembly 1.0? of the MySql connector installed.

I, however, want to use the newer assembly.

I put the MySql.Data.dll in the /bin folder and added:

<assemblies>
<add assembly="MySql.Data, Version=5.0.8.1, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
</assemblies>

and

<DbProviderFactories>
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=5.0.8.1, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
</DbProviderFactories>

to web.config.

This makes the MySqlDataProvider work perfect with the GridView for example, but trying to use for example MySql.Data.MySqlConnection gives me this error:

Compiler Error Message: CS0433: The type 'MySql.Data.MySqlClient.MySqlConnection' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files\***\MySql.Data.DLL' and 'c:\WINDOWS\assembly\GAC_MSIL\MySql.Data\1.0.7.209 26__3af0010c4c54ea1c\MySql.Data.dll'

Not too strange I guess, since there is one older dll in the GAC and a newer one in my bin folder. But how do I reference only the newer one!?

Keep in mind I don't have direct access to the server, only to my "site folder"...
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Web.Config and Assembly Versions AlanJ ASP .Net Web Services 0 05-29-2008 01:16 PM
Can two versions of Firefox be installed? KN_____@cast.com Firefox 6 08-29-2006 02:00 AM
Shared Assembly versions... =?Utf-8?B?UmFqYQ==?= ASP .Net 0 04-11-2005 06:19 PM
use two different versions of DB2 connect with Lindies Computer Support 0 08-05-2004 01:40 PM



Advertisments