473,396 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Error suddenly fixed: BC31011: Unable to load referenced library

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.
Nov 18 '05 #1
1 4387
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!
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Krissy | last post by:
Hi all, Sometimes after building a project, or uploading it to the server, when we go to view the page, we get the following error. To overcome this we have to end the aspnet_wp.exe process...
0
by: Prateek | last post by:
Hi, I get this error when running an asp.net application. The app works fine on dev system. The error references componentone's webreport control. I have CopyLocal set to True for this control. ...
0
by: Mythran | last post by:
I'm getting this error and Microsoft's site states that the way we are using our libraries is unsupported and the error is by design (go figure). My setup is simple and why it isn't supported is...
5
by: Raterus | last post by:
I'm just throwing this error out for my sanity, I've seen posts about this, but never solutions. I'm using VS.NET 2003, Framework 1.1, and I'm getting a random error about every 1 out of 10 times...
1
by: Stan Sainte-Rose | last post by:
Hi, I have some problems with a reference. I get this error and it's strange because it works sometimes and crashes sometimes. Any Ideas ? Stan Compilation Error
0
by: dollar | last post by:
it sometimes appears the following error when i run the project, but sometimes it runs smoothly, what's going on? pls help.. I have stopped the antivirus and the indexing service , but it does not...
1
by: MrMike | last post by:
Hi. Almost every time I run Copy Project to copy my application to my web server I receive the following Compilation Error. Could anyone suggst how I fix this? Thanks....
6
by: Joseph Abreu | last post by:
Sometimes I have to rebuild a few times to get the web app to work --- I'm getting the following ("pilot" is the assembly name) : Compilation Error Description: An error occurred during the...
0
by: HKSHK | last post by:
This list compares the error codes used in VB.NET 2003 with those used in VB6. Error Codes: ============ 3: This Error number is obsolete and no longer used. (Formerly: Return without GoSub)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.