Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot compile solution in VS due "Attempted to access an unloaded AppDomain" -- how to pin it down?

I have a C#/ASP.Net solution in VS (2008) with several projects within it. When I try to compile it I get one error only:

Attempted to access an unloaded AppDomain

No line code, no project name, nothing. Just such error.

How can I pin down this error -- i.e. the cause, or even better -- how can I solve it and continue compilation?

Thank you in advance.

like image 774
greenoldman Avatar asked Nov 03 '10 08:11

greenoldman


2 Answers

Shut down Visual Studio and reopen it. Then clean the Temp folder.

For that press Windows+R and type %Temp% and click Ok, then delete everything.

like image 82
Amit Joki Avatar answered Nov 09 '22 05:11

Amit Joki


If this error comes with VS follow these steps

  1. Just restart your VS.
  2. Start VS again
  3. Clean the solution (Build> Clean Solution)
  4. Rebuild your project again

If this error comes with IIS

  • Restart (recycle) the IIS Application Pools in IIS Manager, After restarting check run the solution again!
like image 30
Mer Hardik Avatar answered Nov 09 '22 04:11

Mer Hardik