Configuration Error - It is an error to use a section registered as allowDefinition ?

Necuno

Court Jester
Joined
Sep 27, 2005
Messages
58,566
Reaction score
3,437
ok im not sure as to why i am getting this but it doesn't happen if i create a new web project- it only happens when i say get a web application from my source safe server and then i try to open it it gives a configuration Error:

Description: An error occurred during the processing of a configuration file required to service this request. please review the specific error details below and modify your configuration file appropriately.

Parse Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

...then source error shows line where authentication is set to windows mode, lastly what was strange that it has shown asp.net 1.1 on the actual error page at the bottom and not 2.0, but that changed as i set the default web to 2.0.

any ideas ?
 
Last edited:
I think you need to configure the IIS web-share manually first, then try and retrieve the application from SoftServe into the web-shared folder again. That seemed to have done the trick for me in the past...
 
I think you need to configure the IIS web-share manually first, then try and retrieve the application from SoftServe into the web-shared folder again. That seemed to have done the trick for me in the past...

is that the more correct way to do this; i remember just getting the web applications from the lib and it was fine from the start...
 
check the virtual directory on IIS to see if the version of ASP.NET is setup correctly.

If you're trying to open up a 2.0 web application and it's configured to use 1.1 then it causes some strange errors to fly around. I bet you this is one of those cases.
 
check the virtual directory on IIS to see if the version of ASP.NET is setup correctly.

If you're trying to open up a 2.0 web application and it's configured to use 1.1 then it causes some strange errors to fly around. I bet you this is one of those cases.

heh, i did that- but then i also removed IIS and reinstalled it and now it says
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) +637
System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath2.MapPath(String siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +174
System.Web.Hosting.HostingEnvironment.MapPathInternal(VirtualPath virtualPath, Boolean permitNull) +51
System.Web.CachedPathData.GetConfigPathData(String configPath) +341
System.Web.CachedPathData.GetConfigPathData(String configPath) +234
System.Web.CachedPathData.GetApplicationPathData() +38
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +8801967
System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath path) +117

suppose i have to manually set them all now :(

:update
so i ran aspnet_regiis -ga from 2.0 framework dir in windows... back to the OP lol
 
Last edited:
re-register .net with IIS and your app needs to be configured with an application pool, so it may use its own worker process.
 
-thanks for all the attempts to help me out....

YAAAAAAAAAAARRRRRRRR!!!!!!!!!!!!!!!!!!!!!!!!!!!! i've found the solution.

omg lol wtf.... n00b :)

its not the web applications i'm getting from source safe that's the issue its another web part that gets called from them that's causing this issue because it was just copied over into my wwwroot into a folder and not created as a virtual dir and then copied over. So i removed it and created the virtual dir and copied it back to it.

/goes home now :D
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X