Solved

compiler initialization failed

Posted on 2013-06-02
13
536 Views
Last Modified: 2013-06-06
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
0
Comment
Question by:1752
  • 7
  • 6
13 Comments
 
LVL 11

Accepted Solution

by:
MajorBigDeal earned 500 total points
ID: 39214273
I received similar errors when I tried to manually edit some of the configuration files.  The way I resolved the problem was:

1. Make a good backup.
 
2. Do a find looking inside all files for part of the string causing the problem (in this case, ed7e340a_5e5cce01\App_Code.DLL.

3. Manually edit the file to remove all references (not just one).

4. Recompile and re-add any needed references using the normal process.
0
 

Author Comment

by:1752
ID: 39214301
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
0
 

Author Comment

by:1752
ID: 39214684
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
0
 
LVL 11

Expert Comment

by:MajorBigDeal
ID: 39217434
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.
0
 

Author Comment

by:1752
ID: 39219179
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
0
 
LVL 11

Expert Comment

by:MajorBigDeal
ID: 39219248
Correct the errors and replace the necessary DLLs.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:1752
ID: 39219275
I will look into the errors I know the MS ajax dll is one big contestor.

Thanks

1752
0
 
LVL 11

Expert Comment

by:MajorBigDeal
ID: 39220459
Cool, hopefully your project will be stable after that.
0
 

Author Comment

by:1752
ID: 39220643
Thank you
0
 
LVL 11

Expert Comment

by:MajorBigDeal
ID: 39220821
If you have trouble re-adding the references let me know.
0
 

Author Comment

by:1752
ID: 39221751
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
0
 
LVL 11

Expert Comment

by:MajorBigDeal
ID: 39222106
Great - glad you got it working!
0
 

Author Closing Comment

by:1752
ID: 39225647
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
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now