AppCmd ​​command error: cannot find requested collection item

he tried to set the physical path of the application using the command line:

APPCMD set app "Default Web Site/SiteName" /applicationPool:MyAppPool /[path='/'].physicalPath:C:\MySite 

There was an error:

 ERROR ( message:Cannot find requested collection element. ) 

The application pool and site already exist.

Please, help.

+4
source share
1 answer

Try running this command with the parameter:

 /commitPath:apphost 
-1
source

All Articles