VS Web application - Error when run at website

Discussion in 'Visual Studio' started by Croydon, Jul 17, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I have created an ASP.NET application using Visual Studio and have loaded this to the website using FTP. When I try to run the application I get the following error message:

    Configuration Error

    "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."

    The following lines are highlighted:

    Line 23: "Forms", "Passport" and "None"
    Line 24: -->
    Line 25: <authentication mode="Windows" />

    I do not get this message when running it on the local pc on which it was developed.

    Any suggestions on what I need to do to fix this would be appreciated.
     
  2. The problem is resolved.

    I found the answer on another thread.
     
  3. What was the solution for this? You indicated that you found it on another thread but didn't mention the thread... Any help would be appreciated.

    Regards,
    Jeff
    -----------
    have created an ASP.NET application using Visual Studio and have loaded this to the website using FTP. When I try to run the application I get the following error message:

    Configuration Error

    "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."
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    this error happens when the directory containing the web.config file is not setup as an application.

    Resolution: configure the directory as an application root in the control panel

    quote:Originally posted by jkahsen

    What was the solution for this? You indicated that you found it on another thread but didn't mention the thread... Any help would be appreciated.

    Regards,
    Jeff
    -----------
    have created an ASP.NET application using Visual Studio and have loaded this to the website using FTP. When I try to run the application I get the following error message:

    Configuration Error

    "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."


    </blockquote id="quote"></font id="quote">
     
  5. hi,

    I too have the same problem, my web.config file is in the subfolder of the application which is set as virtual directory in the IIS
     
  6. May I ask what you mean by "configure the directory as an application root in the control panel". I am having this problem now. Thanks,

    Yezi

    quote:Originally posted by bruce

    this error happens when the directory containing the web.config file is not setup as an application.

    Resolution: configure the directory as an application root in the control panel

    quote:Originally posted by jkahsen

    What was the solution for this? You indicated that you found it on another thread but didn't mention the thread... Any help would be appreciated.

    Regards,
    Jeff
    -----------
    have created an ASP.NET application using Visual Studio and have loaded this to the website using FTP. When I try to run the application I get the following error message:

    Configuration Error

    "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."


    </blockquote id="quote"></font id="quote">
    </blockquote id="quote"></font id="quote">
     
  7. Bruce

    Bruce DiscountASP.NET Staff

    http://kb.discountasp.net/article.aspx?id=10181

    quote:Originally posted by yezi

    May I ask what you mean by "configure the directory as an application root in the control panel". I am having this problem now. Thanks,

    Yezi

    quote:Originally posted by bruce

    this error happens when the directory containing the web.config file is not setup as an application.

    Resolution: configure the directory as an application root in the control panel

    quote:Originally posted by jkahsen

    What was the solution for this? You indicated that you found it on another thread but didn't mention the thread... Any help would be appreciated.

    Regards,
    Jeff
    -----------
    have created an ASP.NET application using Visual Studio and have loaded this to the website using FTP. When I try to run the application I get the following error message:

    Configuration Error

    "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."


    </blockquote id="quote"></font id="quote">
    </blockquote id="quote"></font id="quote">
    </blockquote id="quote"></font id="quote">
     
  8. Using the Internet Services Manager in the administrative tools, locate the folder in the default website. Right click on the folder and select properties. On the Directory tab under Application Settings towards the bottom locate Application Name. It will probably show a value of 'Default Application'. To the right of the name click the Create button.


    This will set the folder as an application folder
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page