473,378 Members | 1,140 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,378 software developers and data experts.

BC31011 Compilation Error

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 completely unclear to me.

1.) 2 Web Sites in solution, 1 DAL library, 1 BLL library, 1 Schema library (all
in same solution).

2.) DAL and BLL libraries are inheriting ServicedComponent, referencing and
importing System.EnterpriseServices, using the Transaction attribute with
TransactionOption.Required as the transaction option parameter. All public
methods are marked with the AutoComplete() attribute. All libraries have a
strong name.

If I remove the transaction support, and remove the strong name, the error goes
away. If I give it back the transaction support, I have to give them a strong
name (by design). The only way to get this to work, by Microsoft, is to install
these libraries into the GAC. They can't have a strong name and be located in
the bin directory.

My setup has them stored in the bin directory and not in the GAC. Especially for
development and debugging reasons. I have found a workaround that allows the
error to be bypassed, but am still curious as to why this error occurrs and why
the heck strong name assemblies *must* be installed into the GAC.

TO FIX ERROR:
Compile the source then execute the code, when you get the error, change the
code somehow (I just put a space at the end of a line that has code on it) then
recompile the code. The temporary files will be updated with the new code and
can now precompile correctly and load the assembly. After any change is made,
the error will probably come back, you'll need to change the code again and
recompile after loading the assembly so the error can go away.

Now, compile-load-compile-load gets old very quickly, anyone have a better
solution?

The exact error is below:

Compilation Error
Description: An error occurred during the compilation of a resource required to
service this request. Please review the following specific error details and
modify your source code appropriately.

Compiler Error Message: BC31011: Unable to load referenced library
'c:\winnt\microsoft.net\framework\v1.1.4322\tempor ary asp.net
files\countywebadmin\478fda97\b3537147\assembly\dl 2\95c7fad3\1d1aaa53_b3fcc301\mc
is.applications.countyweb.dal.dll': Access is denied.

Source Error:
[No relevant source lines]
Source File: vbc : Line: 0
Nov 18 '05 #1
0 1360

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

Similar topics

10
by: Sune | last post by:
Hi, previously I used Eclipse CDT for compiling my files just to get started with C and leave C++ behind. Now it's time to get a little more serious so I've moved my files to a new workplace and...
3
by: Dan | last post by:
Hi, I have a problem using an aspx page with a Control on it. I get the following error message Compiler Error Message: CS1595: 'Test.Class2' is defined in multiple places; using definition...
1
by: Sameer Sheikh | last post by:
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...
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
16
by: Brad | last post by:
After compiling my asp.net project I'm receiving a "BC31011 - Access is denied" error when attempting to run or debug. The only thing that seems to resolve problem is IISReset. After a reset my...
6
by: Plat | last post by:
I've Googled this for a while, to no avail. Hopefully someone can help me. Maybe I'm using the wrong terminology. Here's the scoop! Let's say I've got a simple *.ASPX page that has a syntax...
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....
1
by: BSand0764 | last post by:
I'm getting an error that I can't seem to resolve. When I compile the Functor related logic in a test program, the files compile and execute properly (see Listing #1). However, when I...
3
by: Hill | last post by:
This is an simple map, just an exercise. Who can help me fix this compile issue?Thanks in advance. #include <string> #include <vector> #include <iostream> using std::vector; using std::string;...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.