RE: It is an error to use a section registered as allowDefinition='MachineToApplication'
There's an asp.net 1.1 vb.net vs 2003 solution under a virtual directory on one of our sites. I can see the solution and project files in under the folder where the IIS virtual directory is pointing.
The solution is working fine.
On the server, If I manually create a new virtual directory, create a new application name for it under the same application pool and copy the the full directory into the new virtual I can browse the solution.
However if I attempt to browse the logon.aspx page I get this 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.
Parser 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.
Line 37: by Microsoft that offers a single logon and core profile services for member sites.
Line 38: -->
Line 39: <authentication mode="Forms" >
Line 40: <!-- <forms loginUrl="Logon.aspx" name="AuthCookie" timeout="60" path="/auth" ></forms>-->
Line 41: </authentication>
I've checked IIS settings on the two virtuals and security on both directories and they are identical. I've confirmed the new virtual in IIS is an application. I've checked IIS security. the new directory is parallel with the old directory.. not underneith it. I've done an IIS reset.
I've seen many posts on this topic.. none has helped.
Will I need to recompile and redeploy the solution to the new Virtual?.. I'd like to avoid this.
Looking at the original working solution, it has an AssemblyInfo.vb file a specific GUID.. should this matter?
I see the issue as purely an IIS issue.. but can't figure out why.
Moving past this (at some point soon I hope). If this web server only has extensions for ASP.NET 1.1, any reason a site cannot run both 1.1 and 2.0? Any way to compile this code using VS.NET 2005 and deploy into this server if 2.0 is not available?
This is the problem with u r virtual directory and directory name and path of the project that u r trying to load from the soluiton file. Please check the solution file and find out the correct website name and path.
According to my calculations the problem doesn't exist.
Do I even need the solution or project files? I first tried to fix it, but it did not work.. I then removed all Visual studio related file (as a test) but it's still failing.
I think by converting your virtual folder to an application in IIS, you can resolve this error.
- Start "Internet Information Services" (Start - Settings - Control Panel - Administrative Tools)
- Navigate to the MyApp virtual directory and select it
- Rightclick it and select "Properties"
- Press the "Create" button and accept the default name
- Press OK - Make sure that Execute Permissions are set to "Scripts only"
Thanks reghupm, you helped me too
"I have not failed. I just found 10,000 ways that don't work." - Thomas Edison