Link to home
Start Free TrialLog in
Avatar of 1752
1752Flag for United Kingdom of Great Britain and Northern Ireland

asked on

compiler initialization failed

compiler initialization failed unexpectedly: Project already has a reference to assembly App_Code. A second reference to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\cs\5f5d3ae7\828f7e4d\assembly\dl3\1af52ae7\ed7e340a_5e5cce01\App_Code.DLL' cannot be added.      


How do I clear this error?      I'm using Visual Studio 2008
ASKER CERTIFIED SOLUTION
Avatar of MajorBigDeal
MajorBigDeal
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 1752

ASKER

Great.

So your saying use vs to rind in my solution "ed7e340a_5e5cce01\App_Code.DLL"

I must admit I have never scene anything like thi is on my system.

Regards
1752
Avatar of 1752

ASKER

I'm now getting "Object reference not set to an instance of an object" with nothing else when I publish.

The solution Builds      and Rebuilds OK but cannot publish!

Any ideas?

1752
OK, I think we are making progress.  The new error could be from a number of different causes.  The one I would try first is to delete the bin folder and rebuild.  

http://stackoverflow.com/questions/2289129/publishing-asp-net-website-give-object-reference-not-set-to-an-instance-of-an-o

If that doesn't work, please explain details of how you are publishing, are you publish to the local server as a test or to a remote server.  

Make sure you have frequent back-ups so that you can get back to a previous state after trying something that makes it worse.
Avatar of 1752

ASKER

Hello,

Well backup done, I deleted the Bin Folder and rebuilt the site and as expected 39 errors.

The bin directroy had in it a number of very important dll's used by the site.

What should I do now?

1752
Correct the errors and replace the necessary DLLs.
Avatar of 1752

ASKER

I will look into the errors I know the MS ajax dll is one big contestor.

Thanks

1752
Cool, hopefully your project will be stable after that.
Avatar of 1752

ASKER

Thank you
If you have trouble re-adding the references let me know.
Avatar of 1752

ASKER

Hello,

Guess what it now publishes, MS Ajax added then gateway control and bingo. I suspect it could have been the gateway DLL, the gateway company has not got back to me yet.

So give it a coupls of days and I will accept your solution.

Thank you so much.

1752
Great - glad you got it working!
Avatar of 1752

ASKER

Hello,

Guess what it now publishes, MS Ajax added then gateway control and bingo. I suspect it could have been the gateway DLL, the gateway company has not got back to me yet.


Thank you so much.

1752