dave4dl
asked on
ASP.NET 2.0 web app referencing adodb and adodb.net
I need help unreferencing a reference in an ASP.NET 2.0 web project.
I have a web project that had a reference to ado. Someone added a reference to ado.net to the project and we got the compilation error:
The type 'ADODB.Connection' exists in both 'c:\WINDOWS\Microsoft.NET\ Framework\ v2.0.50727 \Temporary ASP.NET Files\webapp\8a30a549\4af9 b613\assem bly\dl3\04 275478\000 7ea7b_d409 c701\Inter op.ADODB.D LL' and 'c:\WINDOWS\assembly\GAC\A DODB\7.0.3 300.0__b03 f5f7f11d50 a3a\adodb. dll'
This is to be expected since both have an ADODB.Connection object.
Now my problem is that i cannot unreference ado.net. I thought i could do this in the web.config file but all my references are being readded there when i recompile. Here is a snippet from my web.config.
<compilation defaultLanguage="c#" debug="true" strict="true">
<assemblies>
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C56193 4E089"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C56193 4E089"/>
<add assembly="System.Windows.F orms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C56193 4E089"/>
<add assembly="System.Directory Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="Microsoft.Visual Basic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="Microsoft.Visual Basic.Comp atibility, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="Microsoft.Intero p.Security .AzRoles, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35"/>
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C56193 4E089"/>
<add assembly="mscomctl, Version=10.0.4504.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35"/>
<add assembly="MSDATASRC, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="Microsoft.Office .Interop.O wc11, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E 9429C"/>
<add assembly="stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
</assemblies>
</compilation>
I dont know which one is ado.net but i'm guessing that
<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
represents old ado. When i delete that one, the line is always re-added when recompile.
I my question is: How to i unreference ado.net so my code works again (it won't even compile now)?
I have a web project that had a reference to ado. Someone added a reference to ado.net to the project and we got the compilation error:
The type 'ADODB.Connection' exists in both 'c:\WINDOWS\Microsoft.NET\
This is to be expected since both have an ADODB.Connection object.
Now my problem is that i cannot unreference ado.net. I thought i could do this in the web.config file but all my references are being readded there when i recompile. Here is a snippet from my web.config.
<compilation defaultLanguage="c#" debug="true" strict="true">
<assemblies>
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C56193
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D
<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C56193
<add assembly="System.Windows.F
<add assembly="System.Directory
<add assembly="Microsoft.Visual
<add assembly="Microsoft.Visual
<add assembly="Microsoft.Intero
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C56193
<add assembly="mscomctl, Version=10.0.4504.0, Culture=neutral, PublicKeyToken=31BF3856AD3
<add assembly="MSDATASRC, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D
<add assembly="Microsoft.Office
<add assembly="stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D
<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D
</assemblies>
</compilation>
I dont know which one is ado.net but i'm guessing that
<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D
represents old ado. When i delete that one, the line is always re-added when recompile.
I my question is: How to i unreference ado.net so my code works again (it won't even compile now)?
Detele all files at \Temporary ASP.NET Files\
ASKER
Thanks for posting rsashi.
I have tried doing that (deleting those folders) but the reference still came back).
The solution i posted works.
I have tried doing that (deleting those folders) but the reference still came back).
The solution i posted works.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER