IIS issue with ASP.NET 2.0

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
 
G

Guest

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
 
G

Guest

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
 
J

jered

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top