开发者

aspnet_client folder within IIS website

I want to know how to permanently remov开发者_Python百科e the aspnet_client folder under some of our websites in IIS.

Our application does not require it, and scripts against these folders fail due to the folder permissions on this folder.


Even the .NET 4 install continues to add this folder. There doesn't seem to be a permanent way to delete the folder, outside of deleting it after registering .NET with IIS, or after installing a new version of the .NET Framework.

Some people say they throw a read-only attribute on the directory, but ... that still keeps the directory hanging about.

See my answer to a similar question, Prevent aspnet_client folder being added to .NET sites

To reiterate that answer:

Check out the MSDN documentation on the ASP.NET IIS Registration Tool (Aspnet_regiis.exe). There's an e and ea command line switch you should be able to use to clean it up after the fact.

You can use Aspnet_regiis.exe to install and remove system client-side script, such as script for client-side validation. Use the -c option to install client script for the version of ASP.NET that is associated with the tool. (Script is installed in the Aspnet_client subdirectory of each IIS site directory.) To remove the client-side script for just the ASP.NET version that is associated with the tool, use the -e option. To remove the client-side script for all installed versions of ASP.NET, use the -ea option.

(Emphasis added.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜