Re: Visual Studio keeps adding Oracle assemblies to web.config

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Have you checked the "project properties" window to see if they are in the
"references" list ? Not sure as it looks like this is done automatically for
you but perhaps worth checking ?

--
Patrice


"gnewsgroup" <gnewsgroup@xxxxxxxxx> a écrit dans le message de news:
67b9f560-ac69-4fc9-b723-14a3b409b114@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I searched around, but could not find out why and how to stop this.

Ever since I installed Oracle 11g on my machine, Visual Studio will
automatically add the following oracle assemblies into my web.config
each time I compile my web application.

<assemblies>
... ...
<add assembly="System.Data.OracleClient, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="Oracle.DataAccess, Version=2.111.6.0,
Culture=neutral, PublicKeyToken=89B483F429C47342"/>
<assemblies>

I am not using Oracle for my application at all. So, I had to remove
it manually from web.config after each compile.

Oracle services are configured not to run automatically because it
uses a lot of memory. In other words, none of the oracle components
is running as far as know.

Any idea why this happens, and how to stop VS 2005 from adding it to
web.config? Thank you.



.



Relevant Pages

  • Re: ASP .NET Application Using Incorrect Assembly Version
    ... Your web application assemblies are referring to this version of the ... One trivial way of fixing it is to upgrade the server's client, ... The other way is to install the same version of the assembly on your ... Turns out Oracle uses Policies that redirect older versions of the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Visual Studio keeps adding Oracle assemblies to web.config
    ... It is a change Oracle made to the way VS handles things. ... (or all users profile) ... automatically add the following oracle assemblies into my web.config ... it manually from web.config after each compile. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Visual Studio keeps adding Oracle assemblies to web.config
    ... Ever since I installed Oracle 11g on my machine, Visual Studio will ... automatically add the following oracle assemblies into my web.config ... it manually from web.config after each compile. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Odd problem with Visual Studio
    ... but then one of the target files gets ... setting which is not possible and compile fails (sometimes you get very weird ... >> I assume you have a solution with projects A, B and C, and A references B ... >> separate solution and reference the assemblies from the main solution, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Oddity with protected internal and derivation
    ... How did you compile those then? ... It's true that you cannot do circular references in C#, ... you cannot verify much until all the referenced assemblies exist. ... that there's no problem with circular references. ...
    (microsoft.public.dotnet.languages.csharp)