Problem With Internet Information Service(IIS).

  1. #1

    Problem With Internet Information Service(IIS).

    Hello, I'm new in this area, I built a web page using Ext and when I call my web page from Visual Studio 2010 works Perfectly but when I call my web page from Internet Information Service(IIS) I have this error Message:

    Error Summary
    HTTP Error 500.19 - Internal Server Error
    The requested page cannot be accessed because the related configuration data for the page is invalid.
    
    Detailed Error Information
    Module IIS Web Core 
    Notification BeginRequest 
    Handler Not yet determined 
    Error Code 0x800700b7 
    Config Error Config section 'system.webServer/modules' already defined. Sections must only appear once per config file. See the help topic <location> for exceptions  
    Config File \\?\E:\MyWorks\An\ExtJsTest\ExtJsTest\web.config 
    Requested URL http://localhost:80/ExtJsTest/Default.aspx 
    Physical Path E:\MyWorks\An\ExtJsTest\ExtJsTest\Default.aspx 
    Logon Method Not yet determined 
    Logon User Not yet determined 
    
    Config Source
    66:     <validation validateIntegratedModeConfiguration="false"/>
    67:     <modules>
    68:       <add
    And this is my web.conf file setup:
    <?xml version="1.0"?>
    
    <!--
      Para obtener más información sobre cómo configurar la aplicación de ASP.NET, visite
      http://go.microsoft.com/fwlink/?LinkId=169433
      -->
    
    <configuration>
      <connectionStrings>
    
        <configSections>
          <section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false" />
        </configSections>
        <extnet />
        
        <add name="ApplicationServices"
             connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
             providerName="System.Data.SqlClient" />
      </connectionStrings>
    
      <system.web>
    
        <httpHandlers>
          <add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" />
        </httpHandlers>
        <httpModules>
          <add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net" />
        </httpModules>
        
        <compilation debug="true" targetFramework="4.0" />
    
        <authentication mode="Forms">
          <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
        </authentication>
    
        <membership>
          <providers>
            <clear/>
            <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"
                 enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
                 maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
                 applicationName="/" />
          </providers>
        </membership>
    
        <profile>
          <providers>
            <clear/>
            <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
          </providers>
        </profile>
    
        <roleManager enabled="false">
          <providers>
            <clear/>
            <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
            <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
          </providers>
        </roleManager>
    
      </system.web>
    
      <system.webServer>
         <modules runAllManagedModulesForAllRequests="true"/>
    
        <validation validateIntegratedModeConfiguration="false"/>
        <modules>
          <add
    			  name="DirectRequestModule"
    			  preCondition="managedHandler"
    			  type="Ext.Net.DirectRequestModule, Ext.Net"
    			  />
        </modules>
        <handlers>
          <add
    			  name="DirectRequestHandler"
    			  verb="*"
    			  path="*/ext.axd"
    			  preCondition="integratedMode"
    			  type="Ext.Net.ResourceHandler"
    			  />
        </handlers>
      </system.webServer>
    </configuration>
    Please if somebody can help me with this essue, thanks in advance.
    Last edited by geoffrey.mcgill; Jan 16, 2011 at 8:05 PM. Reason: please use [CODE] tags
  2. #2
    Check your code in web.config
    You have two modules sections under system.webserver
    Only one is allowed

       <system.webServer> 
         <modules runAllManagedModulesForAllRequests="true"/> 
     
        <validation validateIntegratedModeConfiguration="false"/> 
        <modules> 
          <add
                  name="DirectRequestModule"
                  preCondition="managedHandler"
                  type="Ext.Net.DirectRequestModule, Ext.Net"
                  /> 
        </modules>
    hth /Peter
  3. #3
    Thank you Peter.

Similar Threads

  1. [CLOSED] Tab panel problem in Internet Explorer 8
    By pdcase in forum 1.x Legacy Premium Help
    Replies: 18
    Last Post: Jan 19, 2012, 11:53 AM
  2. Problem CRUD with JSON&Web Service
    By oseqat in forum 1.x Help
    Replies: 1
    Last Post: Jul 12, 2011, 10:23 AM
  3. [CLOSED] web service problem
    By speedstepmem2 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 02, 2009, 9:18 AM
  4. [CLOSED] internet explorer cannot open the internet site
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 28, 2009, 10:30 AM
  5. Temporary internet file problem
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 05, 2009, 7:57 AM

Tags for this Thread

Posting Permissions