Avatar billede Jørgen Lund Nybegynder
31. december 2006 - 16:06 Der er 1 kommentar

Failed to access IIS metabase

Hej

Jeg får denne fejl hver gang jeg forsøger at køre et .net web applikation.

Server Error in '/WebSite3' Application.
--------------------------------------------------------------------------------

Failed to access IIS metabase.
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 http://support.microsoft.com/?kbid=267904.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:


[HostingEnvironmentException: Failed to access IIS metabase.]
  System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) +3492202
  System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) +9
  System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +163
  System.Web.CachedPathData.GetConfigPathData(String configPath) +382
  System.Web.CachedPathData.GetConfigPathData(String configPath) +243
  System.Web.CachedPathData.GetApplicationPathData() +68
  System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +3385711
  System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath path) +189




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Avatar billede dr_chaos Nybegynder
01. januar 2007 - 12:16 #1
Det er fordi du skal køre:
aspnet_regiis /i

Du skal bare finde aspnet_regiis.exe og kører den fra command prompt.
Problemet er at IIS er installeret efter framework installeringen.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester