Migration? HTTP Error 500.19 - Internal Server Error

Discussion in 'ASP.NET / ASP.NET Core' started by medicnick, May 6, 2010.

  1. I attempted a completely fresh install of Mojo and a new db on MS2008/IIS7, MSSQL2008 but it is possible the control panel IIS setting was initially at 3.5 although I'm nearly certain I had set it to 4.0 before trying to access any pages.

    I am using the web.net4.config file with the proper db access set.

    As background, this is the second site I've setup here. The first one also had a number of problems similar to this that I was able to fix through trial and error but I don't know what did the trick. It now works fine.

    I'm getting this error:
    Module IIS Web Core
    Notification BeginRequest
    Handler Not yet determined
    Error Code 0x80070032
    Config Error The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration
    Config File \\?\E:\web\<myaccount>\htdocs\web.config

    from this source:
    1053: </system.webServer>
    1054: <system.web.extensions>
    1055: <scripting>

    Any suggestions?

    Thank you
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    The error means that the web.config is malformed. If you look at line 1054, <system.web.extensions>, it doesn't look like it has a close tag.
     
  3. Thanks Bruce. Can you be more specific? Here is line 1052-1062
    </system.webServer>
    <system.web.extensions>
    <scripting>
    <scriptResourceHandler enableCompression="true" enableCaching="true"/>
    <webServices>
    <authenticationService enabled="true" requireSSL="false"/>
    <roleService enabled="true"/>
    </webServices>
    </scripting>
    </system.web.extensions>
    <system.serviceModel>
    Thanks!
     
  4. Hi,
    <system.web.extensions> goes before <system.web> and <system.webServer>

    Would you like an entire web.config posted? If so, ASP.NET 3 or 4?
    All the best,
    Mark
     
  5. Bruce

    Bruce DiscountASP.NET Staff

    hmm.. i think you should check w/ mojo portal regarding this error.
     
  6. Yes, please! (and again it is odd that one site is working seemingly just fine with this exact same file).

    Edit: 4.0 please!
     
  7. Code:
    
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <configSections>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    <section name="WebErrorToolkit.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
    </configSections>
    <system.net>
    <mailSettings>
    <smtp from="[email protected]" deliveryMethod="Network">
    <network host="localhost" port="25" password="somepw" userName="[email protected]" />
    </smtp>
    </mailSettings>
    </system.net>
    <system.web.extensions>
    <scripting>
    <webServices>
    <authenticationService enabled="true" requireSSL="false" />
    <profileService enabled="true" />
    <roleService enabled="true" />
    </webServices>
    <scriptResourceHandler enableCompression="true" enableCaching="true" />
    </scripting>
    </system.web.extensions>
    <appSettings />
    <connectionStrings>
    <clear />
    <remove name="LocalSqlServer" />
    <add name="LocalSqlServer" connectionString="Data Source=tcp:discountasp.net;Initial Catalog=SQL2008_db;User ID=SQL2008_user;Password=somepw" providerName="System.Data.SqlClient" />
    <remove name="SQL2008_userConnectionString" />
    <add name="SQL2008_userConnectionString" connectionString="Data Source=tcp:discountasp.net;Initial Catalog=SQL2008_db;Persist Security Info=True;User ID=SQL2008_user;Password=somepw" providerName="System.Data.SqlClient" />
    </connectionStrings>
    <system.web>
    <anonymousIdentification enabled="true" />
    <authentication mode="None" />
    <compilation debug="false" strict="false" explicit="true" targetFramework="4.0">
    <assemblies>
    <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    <add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    </assemblies>
    </compilation>
    </siteMap>
    <customErrors mode="RemoteOnly">
    <error statusCode="404" redirect="~/Error.aspx" />
    </customErrors>
    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" /></system.web>
    <location path="assets">
    <system.web>
    </system.web>
    </location>
    <system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
    <security>
    <authentication>
    <basicAuthentication enabled="true" />
    </authentication>
    </security>
    </system.webServer>
    </configuration>
    
    
     
  8. dmitri

    dmitri DiscountASP.NET Staff

    Are you installing mojoportal to a subfolder while there is other application installed in the root? If this is the case, it can be inheritance issue. Try to do the following: temporarily remove "web.config" file from your root, reinstall your mojoportal application, and place back the previously removed file.

    Also, I am not sure this application is compatible with .NET 4.0 Framework. If the above solution did not fix the issue, try to switch your framework version to 2.0/3.5 and repeat the steps above.
     
  9. Thank you for the suggestions. I did try changing web.config, etc.

    SA moved my directory to the other server where the functioning site resides. This immediately resolved the issue.

    It is running Net 4.0 on MS2008 with MSSQL2008 on this particular server.

    Thanks,
    Nick
     
  10. Bruce

    Bruce DiscountASP.NET Staff

    weird..
     

Share This Page