简体   繁体   English

IIS我的网站文件夹已删除

[英]IIS My Web Sites Folder Deleted

I am using .Net and IIS. 我正在使用.Net和IIS。 I accidentally deleted the My Web Sites folder (see path below) used by IIS on accident, and am unable to recover these files. 我不小心删除了IIS偶然使用的“我的网站”文件夹(请参见下面的路径),并且无法恢复这些文件。 As a result, I am no longer able to run my project in Visual Studio on my localmachine. 结果,我不再能够在本地计算机上的Visual Studio中运行项目。 Should I reinstall IIS, or does anybody have any ideas as to what I should do. 我应该重新安装IIS,还是有人对我应该做什么有任何想法。 Thanks. 谢谢。

User \\ Documents \\ My Web Sites \\ Project \\ web.config 用户 \\文档\\我的网站\\ 项目 \\ web.config

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. Visual Studio显示的错误消息是它试图从特定位置读取web.config。 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. 希望这对某人有帮助。

I ended up creating an empty IIS My Websites folder and then booting up Visual Studio. 我最终创建了一个空的IIS我的网站文件夹,然后启动了Visual Studio。 Visual Studio saw that the folder was there and I was able to start using my projects again. Visual Studio看到该文件夹​​在那里,因此我能够再次开始使用我的项目。

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. 就像您可以使用此工具 (Recuva)来恢复那些文件并再次为您的项目设置Visual Studio。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM