Configuration problem

  •  03-02-2009, 4:42 PM

    Configuration problem

    Hi
     
    I've installed the demo
     
    My config files is:
     
    <?xml version="1.0"?>
    <configuration>
     <appSettings>
      <add key="ConnectionString" value="server=(local)\SQLEXPRESS;database=SurfMessenger;uid=test;pwd=test"/>
         <add key="OnlineTimeout" value="300"/>
     </appSettings>
     <system.web>
      <customErrors mode="Off"/>
      <authentication mode="Forms">
       <forms name=".UserManagementASPXAUTH" loginUrl="~/Login.aspx"/>
      </authentication>
      <authorization>
       <allow users="*"/>
      </authorization>
      <trace enabled="true"></trace>
      <sessionState mode="InProc" timeout="20"/>
      <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
     </system.web>
    </configuration>
     
    I'm getting the following error:
     
    Server Error in '/' 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 7:   <system.web>
    Line 8:    <customErrors mode="Off"/>
    Line 9:    <authentication mode="Forms">
    Line 10:    <forms name=".UserManagementASPXAUTH" loginUrl="~/Login.aspx"/>
    Line 11:   </authentication>

    Source File: C:\Inetpub\vhosts\domain.com\httpdocs\cutechatstandalone\web\web.config    Line: 9
     
    Any advice much appreciated.
View Complete Thread