- Install Visual Studio.
- Download Visual Studio Community.
- During installation, check ASP.NET and web development workload.
- Enable IIS (Internet Information Services)
- 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.
- Copy site folder to C:
- Open Visual Studio and select Open a local folder.
- 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