Run locally an ASP project with SQL database

  1. Install Visual Studio.
    1. Download Visual Studio Community.
    2. During installation, check ASP.NET and web development workload.
  2. Enable IIS (Internet Information Services)
    1. Go to Control Panel → Programs and Features → Turn Windows features on/off → enable Internet Information Services → expand World Wide Web Services → Application Development Features → ASP.
  3. Copy site folder to C:
  4. Open Visual Studio and select Open a local folder.
  5. On menu click File > Open website and select your folder.

If you want to hit the API of another site and get 

Access to XMLHttpRequest at ‘xxx’ from origin ‘http://localhost:61401’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Then install the CORS Unblock chrome extension.

If wamp does not work after enabling IIS, open cmd as administrator and run these commands:

net stop W3SVC
sc config W3SVC start= disabled
net stop WAS
sc config WAS start= disabled