Showing posts with label Visual Studio. Show all posts
Showing posts with label Visual Studio. Show all posts

Sunday, September 29, 2019

Visual Studio - Attempted to access an unloaded AppDomain

Attempted to access an unloaded AppDomain

Solution

If this error comes with VS follow these steps

Just restart your VS.

  1. Start VS again
  2. Clean the solution (Build> Clean Solution)
  3. Rebuild your project again
  4. If this error comes with IIS


Restart (recycle) the IIS Application Pools in IIS Manager, After restarting check run the solution again!

Saturday, March 30, 2019

HTTPS with Visual Studio's built-in ASP.NET Development Server


You need to enable the SSL in the project by using the below steps:
  • Enable the SSL with in IIS Express, you have to just set “SSL Enabled = true” in the project properties window.
  • Then you can start your project with IIS Express normally and it will start using SSL, the new Port will be 44301
Note : https and http both ports are generally different. By default SSL enabled is set to false with IIS Express; so if you run your web application first time, you will only be able to find the default URL and you can access the site over http.