Reputation: 419
I am using .Net and IIS. I accidentally deleted the My Web Sites folder (see path below) used by IIS on accident, and am unable to recover these files. As a result, I am no longer able to run my project in Visual Studio on my localmachine. Should I reinstall IIS, or does anybody have any ideas as to what I should do. Thanks.
User \ Documents \ My Web Sites \ Project \ web.config
Upvotes: 2
Views: 2953
Reputation: 1179
I also had the same problem after deleting the "my web sites" folder. The error message that Visual Studio showed was that it tries to read web.config from a specific location. I just created the file again with the following content:
<?xml version="1.0" encoding="utf-8"?>
<configuration></configuration>
That solved my problem. Hope this helps someone.
Upvotes: 6
Reputation: 419
I ended up creating an empty IIS My Websites folder and then booting up Visual Studio. Visual Studio saw that the folder was there and I was able to start using my projects again.
Upvotes: 2
Reputation: 696
If You've permanently deleted the folder You can use recovery tool to recover your data. Like you can use this tool (Recuva) to recover those files and set up Your visual studio again for Your project.
Upvotes: 1