IIS issue with ASP.NET 2.0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I had .net framework 2.0 installed in my system.

I then installed iis 5.0 . I am getting this error

"Failed to access IIS metabase"

URL accessed : http://localhost/Test/Hello.aspx

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.

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) +3500378

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) +3393699
System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath
path) +189

Version Information:
Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

Please help me .
Thanks in advance
 
Sounds like you are trying to run the site under ASP.NET 1.1
Go into IIS and in the ASP.NET Tab, change it to 2.0
Peter
 
P.S.
If you installed IIS AFTER .Net 2.0, then you need to run ASPNET_REGIIS -i
from the Windows\Microsoft.Net\Framework\<version> folder.

That will register the ASP.NET 2.0 scriptmaps.
Peter
 
Thank you Peter, it worked!
--
signature


Peter Bromberg said:
Sounds like you are trying to run the site under ASP.NET 1.1
Go into IIS and in the ASP.NET Tab, change it to 2.0
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net




amit_mitra said:
I had .net framework 2.0 installed in my system.

I then installed iis 5.0 . I am getting this error

"Failed to access IIS metabase"

URL accessed : http://localhost/Test/Hello.aspx

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.

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) +3500378

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) +3393699
System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath
path) +189

Version Information:
Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

Please help me .
Thanks in advance
 
Back
Top