Configuration error

Discussion in 'ASP.NET WebServices' started by cytekhorses, Jul 7, 2010.

  1. I was told that my site needed to update to framework 4 and have since done so and now am 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: An error occurred creating the configuration section handler for HeaderBackgrounds: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

    Source Error:


    Line 3: <configSections>
    Line 4: <section name="FlashMappingCollection" type="MasterPages.Configuration.FlashConfigurationHandler, Web.MasterPages"/>
    Line 5: <section name="HeaderBackgrounds" type="System.Configuration.NameValueSectionHandler,System,Version=1.0.5000.*0, Culture=neutral,publicKeyToken=b77a5c561934e089"/>
    Line 6: </configSections>
    Line 7: <system.web>


    Source File: E:\web\cytekhorses\htdocs\web.config Line: 5


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

    Could someone please help me figure out how to fix this problem.
     
  2. Try changing line 5 in your web.config to:
    <section name="HeaderBackgrounds" type="System.Configuration.NameValueSectionHandler, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
     
  3. web.config

    Now this is probably a dumb get question but how do I get into the web.config I am unable to open it in Visual web developer 2010 remote.
     
  4. Hi,
    Use the Copy Web Site feature to pull in a copy of your web.config, then edit it locally and finally push it back to the remote site with the same feature.
    If you are not sure how to use that there is a 10 minute Webcast on dasptv.com
    All the best,
    Mark
     
  5. Thanks for all the help website back up and running.
     

Share This Page