Geeks With Blogs
Patrice Calve Life's short, have fun

Ha man !!!!

2 evenings lost trying to make this darn simple web app.  It's a Web Client Software Factory - June 2007 project on Vista box and whenever I was running the web app, I would be getting:

  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.

The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see

Source Error:

Server Error in '/DevelopmentWebsite' Application.

Failed to access IIS metabase.


Line 98:             else
Line 99:             {
Line 100:                configuration = WebConfigurationManager.OpenWebConfiguration(context.Request.ApplicationPath + "/" + configFilePath.Replace(context.Request.PhysicalApplicationPath, ""));
Line 101:            }
Line 102:            return configuration;

The solution is darn simple: run Visual Studio as an admin.  I changed my shortcut in my Quick Launch to "Run as Administrator".    Being an administrator on my machine wasn't enough, I had to be an admin admin!

The metaacl.vbs and adsutil.vbs aren't very usefull here as I'm running the Visual Studio WebServer.


Posted on Friday, June 15, 2007 8:18 PM P&P Software Factories | Back to top

Comments on this post: Failed to access IIS metabase

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Patrice Calvé | Powered by: