Web Posting Consistency-Local Computer versus Hosting Service

Discussion in 'ASP.NET / ASP.NET Core' started by jimybud, Nov 10, 2010.

  1. I am using MS Visual Web Developer 2010 Express to create web pages.

    I created a basic web page and ran it on my local computer and it ran fine.

    When I FTP'ed it to the disscountasp.net host, and attempted to run it I receved errors which I believe are related to my IIS setting or webconfig file. The message does not like the authenitication mode for my forms.

    Could someone provide a reference to other forums threads that have addressed this issue. Or suggestions on how to correct it.

    below is the message:

    Server Error in '/WebApplication2' Application.
    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 18: <authentication mode="Forms">


    Source File: E:\web\compactdies\htdocs\WebApplication2\webapplication8\web.config Line: 18


    Show Additional Configuration Errors:
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
     
  2. ...There are several ways to do this but for your test change the mode to "none" and test the page on-line again.
    If you are using Forms authentication this gets deeper. ;-)
     
  3. Changing the authentication mode = "none" did not resolve the issue.

    what is the next suggestion?
     
  4. If changing it did nothing you may actually be coding forms auth, are you?
    It's hard being on this end and guessing. ;-)
     
  5. mjp

    mjp

    Also make sure you have set /WebApplication2 to be an application starting point in Control Panel.

    [Okay, I see you have already done that. Carry on.]
     

Share This Page