简体   繁体   English

如何从IIS 8.5默认网站下的先前删除的Web应用程序中删除文件夹?

[英]How to delete folder from previously deleted Web App under IIS 8.5 Default Web Site?

Help - I can't delete a folder that used to be a virtual folder in IIS 8.5. 帮助-我无法删除曾经是IIS 8.5中虚拟文件夹的文件夹。

I'm developing the install portion of a web app on IIS 8.5 (Windows Server 2012R2), and have run into a situation where I'm unable to get rid of a folder that was installed for the app. 我正在IIS 8.5(Windows Server 2012R2)上开发Web应用程序的安装部分,并遇到无法摆脱为该应用程序安装的文件夹的情况。 I have deleted the app, the app pool, and the virtual directory, tried to recreate virtual directory, tried to convert to app and back. 我已经删除了应用程序,应用程序池和虚拟目录,试图重新创建虚拟目录,试图转换为应用程序并返回。 Nothing I've tried has worked. 我尝试过的一切都没有奏效。

Trying to delete the folder in File Explorer, I get "You require permission from Administrators to make changes to this folder". 尝试在文件资源管理器中删除该文件夹时,出现“您需要获得管理员的许可才能更改此文件夹”。 My user is member of local administrators on the server (my user is in a trusted domain, the server is in our test domain). 我的用户是服务器上本地管理员的成员(我的用户位于受信任的域中,服务器位于我们的测试域中)。 If I try to clear the Read-only flag, I get Access Denied, but with the option to Continue as Administrator, but still can't proceed. 如果我尝试清除“只读”标志,则会显示“访问被拒绝”,但带有“以管理员身份继续”的选项,但仍然无法继续。

I've tried stopping the Server in IIS Manager, stopping the services (W3SVC, AppHostSvc, and WAS), but to no avail. 我曾尝试在IIS管理器中停止服务器,停止服务(W3SVC,AppHostSvc和WAS),但无济于事。

I need to be able to test my install by repeating it (both the first-time install steps, and the Web Deployment Package install). 我需要能够通过重复安装(首次安装步骤和Web部署软件包安装)来测试安装。

After rebooting the server, I was able to delete the folder using File Explorer. 重新启动服务器后,我能够使用文件资源管理器删除该文件夹。 Apparently, it was in some invalid "state". 显然,它处于某种无效的“状态”。

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

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