Problem replacing a reference in Visual Studio-ASP

2020-05-11 05:47发布

问题:

I am developing an application in ASP.NET when I start the project add an Oracle reference. DataAccess version 2.112.3.0 so far so good, the problem is when I try to replace that dll with another version 2.112.4.0, however much I give in removing reference and adding the new one, I still add the first one I add with the same path and the same version, they could help me how to remove it properly, the only way to replace the version is to change it directly in the bin folder when I already publish the application.
Greetings.

回答1:

The version of Oracle.DataAccess.Client has to match exactly the version of installed Oracle Client, so a simple replace will not work anyway.

When a DLL is loaded then the application first looks into the GAC. If the DLL is not found there then the local folder is check. - Well, this is the very short version, the proper version you find at How the Runtime Locates Assemblies

Apart from that, your question is not really clear to me, what do you try to achieve and what is the problem? You may also edit your *.csproj/*.vbproj file with a text editor.