web.config error

Discussion in 'General troubleshooting' started by charlier, Apr 7, 2010.

  1. I am trying to publish a simple web site that originates in VS Web Developer 2008. It works OK on my local machine when I build it and view it in a browser using the VS ASP.NET Development Server.

    Using the instructions in a Winhost KB article, I copied the files for my site from VS to a directory on the FTP server. When I try to run it on the server, using my www.mydomain.com/application folder name/I get the following 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 50: ASP.NET to identify an incoming user.
    Line 51: -->
    Line 52: <authentication mode="Windows" />
    Line 53: <!--
    Line 54: The <customErrors> section enables configuration

    Are there changes I should make changes to the web.config file before copying to the server?
     
    Last edited by a moderator: Oct 14, 2015
  2. Ray

    Ray

    Last edited by a moderator: Oct 14, 2015
  3. Thanks for your help. It's working fine, now.
     

Share This Page