Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

Visual Studio keeps adding Oracle assemblies to web.config

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gnewsgroup - 16 Apr 2008 17:30 GMT
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.
Cowboy (Gregory A. Beamer) - 16 Apr 2008 18:02 GMT
It is a change Oracle made to the way VS handles things. If they are added
up front and not again, it is the templates, which you can alter yourself.

If it keeps adding, it is in one of the VS bits stored under your profile
(or all users profile) and you will have to hack there to get rid of it.

I wish I could point you to the precise location, but I cannot. I can only
give you a clue. Good luck!

Signature

Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************

| Think outside the box!

*************************************************
>I searched around, but could not find out why and how to stop this.
>
[quoted text clipped - 19 lines]
> Any idea why this happens, and how to stop VS 2005 from adding it to
> web.config?  Thank you.
gnewsgroup - 16 Apr 2008 18:14 GMT
On Apr 16, 1:02 pm, "Cowboy \(Gregory A. Beamer\)"
<NoSpamMgbwo...@comcast.netNoSpamM> wrote:
> It is a change Oracle made to the way VS handles things. If they are added
> up front and not again, it is the templates, which you can alter yourself.
[quoted text clipped - 17 lines]
> |
> *************************************************"

Thank you very much for the hint, I just went to my user profile
folders and haven't anything.  Will keep trying.
Patrice - 16 Apr 2008 18:07 GMT
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

>I searched around, but could not find out why and how to stop this.
>
[quoted text clipped - 19 lines]
> Any idea why this happens, and how to stop VS 2005 from adding it to
> web.config?  Thank you.
gnewsgroup - 16 Apr 2008 18:17 GMT
> 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

Thanks for the hint.  Following your advice, I did check the bin
folder and didn't find anything Oracleish.  I also didn't spot any
Oracle bits in a few projects which my web application refers to,
particularly in the References folder of those projects.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.