Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS My Web Sites Folder Deleted

Tags:

c#

.net

asp.net

iis

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

like image 528
Stephen Ross Avatar asked Dec 07 '25 07:12

Stephen Ross


1 Answers

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.

like image 129
Allie Avatar answered Dec 08 '25 20:12

Allie