Boris Callens
Boris Callens

Reputation: 93337

Get the metabase path for an IIS entry (Installation stopped because the specified path is not a valid web application)

I'm by no means a sysadmin so please correct me if I'm wrong.

I want to run aspnet_regiis.exe -s. This requires the metabase path of my website.

How do I find this metabase path?

Upvotes: 3

Views: 7997

Answers (2)

Slider345
Slider345

Reputation: 4758

For versions of Windows higher than Vista, try appcmd, with the "list site" commands:

%WindowsDirectory%\system32\inetsrv\appcmd list site

This should give you the site name and id for all the sites on the system.

The metabase path is of the form

/W3SVC/<site id>/Root

plus the site id.

Upvotes: 1

Don Worthley
Don Worthley

Reputation: 114

Just run aspnet_regiis.exe -lk to see a list of the registered applications, their metabase paths and the version of the .NET framework installed for this application.

Also, here are a couple of links that you can use to find the metabase path:

HTH,

Don

Upvotes: 4

Related Questions