Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Error suddenly fixed: BC31011: Unable to load referenced library

Reply
Thread Tools

Error suddenly fixed: BC31011: Unable to load referenced library

 
 
Sameer Sheikh
Guest
Posts: n/a
 
      07-01-2004
Hi,

I used to have this error come up everytime I tried to
build(Ctrl+Shift+B) my ASP.NET app:

(ERROR#1)
Compiler Error Message: BC31011: Unable to load referenced library
'c:\winnt\microsoft.net\framework\v1.1.4322\...': Access is denied.

The workaround solution was to add a space or change the code a bit
and build(Ctrl+Shift+B) it again and it used to work. But a strange
thing happened. Over to the production server we had this error
showing up:

(ERROR#2)
Timeout expired. The timeout period elapsed prior to obtaining a
connection from the pool.

And I was trying to fix the code adding .close or .dispose to all my
SqlClient Objects (sqlDataAdaptor, sqlDataReader, sqlCommand,
sqlConnection etc) and then I noticed that my first error(ERROR#1)
disappeared. It just stopped showing up. Im not sure how it helped
but the error is gone. Earlier, I had tried removing
'c:\winnt\microsoft.net\framework\' folder in the index server to be
indexed but that didnt help.

Anyway, your comments are welcomed. Im specially looking forward to
someone explaining how that helped get rid off the error. Any idea?

Thanx.
 
Reply With Quote
 
 
 
 
Natty Gur
Guest
Posts: n/a
 
      07-02-2004
Hi,

my assumption is that due to the fact that you didnt free connection
eventually, in debug mode, your code hold referense that didnt free to
System.data dll. therefore you get unable to load ... . every time that
you change your code ASP.NET file change monitors simply killed the
exidting "code" that runs thus compilition works. again just assumption
...

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)52-8888377


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
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
Getting unable to cast error (when same object is referenced in client and web service) Rahul ASP .Net 5 03-01-2008 11:13 PM
Getting unable to cast error (when same object is referenced in client and web service) Rahul ASP .Net Web Services 5 03-01-2008 11:13 PM
Unable to find control id referenced by the 'ControlToValidate' Pr vibs ASP .Net Web Controls 0 01-24-2006 04:28 PM
BC31011: Unable to load referenced library...icsharpcode.sharpzipl Nate Dogg ASP .Net Web Services 1 01-07-2005 11:35 PM
Set culture for a DLL (class library) referenced from web application Ya Ya ASP .Net 1 11-21-2004 10:53 PM



Advertisments