Attempted to access an unloaded AppDomain Solution If this error comes with VS follow these steps Just restart your VS. Start VS again Clean the solution (Build> Clean Solution) 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!