I have 2 websites. I have a typical one that has pages like about, contact, and a login page. Than I have one where clients can open a trouble ticket. I have the contact web site with the login page under www. I have added a subfolder named main under www
and have placed the support ticketing website there. What I to do is when someone goes into the login page and they have access they are directed to the ticketing website/page. There is a web.config under the www and one under the main. Now when I do this
www.mywebsite.com/main/default.aspx. I get this error.
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.
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.
Source Error:
Line 53: ASP.NET to identify an incoming user.
Line 54: -->
Line 55: <authentication mode="Windows"/>
Line 56: <!--
Line 57: The <customErrors> section enables configuration
I have added a subfolder named main under www and have placed the support ticketing website there. What I to do is when someone goes into the login page and they have access they are directed to the ticketing website/page. There is a web.config under the www
and one under the main. Now when I do this
www.mywebsite.com/main/default.aspx. I get this error.
Make that site as an application.
1. Right Click on the main direcotry from the IIS.
2. Select properties and then click on "Create" next to the "Application" Label and the textbox.
3. It will automatically create the "application" using the virtual directory's name.
None
0 Points
1 Post
2 web sites
May 03, 2014 01:43 AM|anaylor01|LINK
I have 2 websites. I have a typical one that has pages like about, contact, and a login page. Than I have one where clients can open a trouble ticket. I have the contact web site with the login page under www. I have added a subfolder named main under www and have placed the support ticketing website there. What I to do is when someone goes into the login page and they have access they are directed to the ticketing website/page. There is a web.config under the www and one under the main. Now when I do this www.mywebsite.com/main/default.aspx. I get this error.
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.
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.
Source Error:
Line 53: ASP.NET to identify an incoming user. Line 54: --> Line 55: <authentication mode="Windows"/> Line 56: <!-- Line 57: The <customErrors> section enables configuration
Source File: \\HOSTING\DFS\20\9\1\8\2031751819\user\sites\pdbp.com\www\main\web.config Line: 55
Participant
761 Points
264 Posts
Re: 2 web sites
May 03, 2014 01:53 AM|Rajsasp|LINK
It seems you are not created virtual directory in IIS correctly
http://msdn.microsoft.com/en-us/library/vstudio/bb763173(v=vs.100).aspx
http://technet.microsoft.com/en-us/library/cc771804(v=ws.10).aspx
also check your website having multiple web.config files.
Thank You
All-Star
52793 Points
9695 Posts
MVP
Re: 2 web sites
May 11, 2014 08:50 PM|Ruchira|LINK
Make that site as an application.
1. Right Click on the main direcotry from the IIS.
2. Select properties and then click on "Create" next to the "Application" Label and the textbox.
3. It will automatically create the "application" using the virtual directory's name.
Please 'Mark as Answer' if this post helps you
My Tech Blog