locked
2 web sites RRS feed

  • Question

  • User-444089887 posted

    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

    Saturday, May 3, 2014 1:43 AM

Answers

  • User-1025250470 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, May 3, 2014 1:53 AM
  • User71929859 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, May 11, 2014 8:50 PM

All replies

  • User-1025250470 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, May 3, 2014 1:53 AM
  • User71929859 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, May 11, 2014 8:50 PM