Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Fail to delete some vdirs using appcmd but it works from the UI (IIS Manager)

$
0
0

Hi

We have an application that uses Wise installation for deployment and configuration of web apps and vdirs. So we really don´t exactly know what happens :-) but it has worked for us so far. Because of that we decided to create and configure our web-stuff ourselves by using appcmd.exe. It works pretty well but sometimes we end up in a state where it doesn´t really work.

We have a structure with a root vdir that has apps and vdirs underneath.

The first step in our own deployment of web stuff is to delete all apps and vdirs using appcmd like,

"C:\Windows\system32\inetsrv\APPCMD.exe" delete app /app.name:"Default Web Site/Product/Client"

And that normally works. But in some cases, normally on IIS 7.0, the deletes fail on two of the vdirs. It says ERROR ( message:Must use exact identifer for VDIR object with verb DELETE. )

If I then do a appcmd list vdir I can see them in the list but I can´t delete them using appcmd delete? From the GUI (IIS Manager) I can remove it. This seems to happen when someone manually have been deleting then top/parent vdir manually (from GUI) and after that the IIS enters a strange state. I really would like to be able to delete those “lose hanging” vdirs using script like appcmd.

Any suggestions?


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>