Web.Extensions in web.config

Discussion in 'ASP.NET / ASP.NET Core' started by RichDad, Feb 26, 2008.

  1. I'm tryying to set up a web site and I get the following error in my web.config when I try to run it. I use VS2008 and framework 3.5.

    <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    Thanks,


    Rich
     
  2. This is the one I've been using:

     
  3. Which reference libraries do you have in the /bin/ folder?
    Also, please post the exact error message you're receiving.
    Salute,
    Mark
     
  4. The error is below. I only have my application libraries in the bin. Do I need to include the MSFT assemblies? I'm not used to doing that as most of my applications have been deployed on self hosted sites.

    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: Could not load file or assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

    Source Error:


    Line 35: <assemblies>
    Line 36: <add assembly='System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089'/>
    Line 37: <add assembly='System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35'/>
    Line 38: <add assembly='System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089'/>
    Line 39: <add assembly='System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089'/>
     
  5. You shouldn't but just for kicks put the files in the attachment I've included in this message into your /bin/ folder.
    Then restart your site from your DASP Control Panel or just make a change to the root web.config and save it.
    Any change, even adding a space then back-spacing, saving the web.config causes a reset.
     

    Attached Files:

  6. Thanks. I didn't copy your assemblies but marked in my project those references as Copy Local = True. That seemed to resolve the issue. I had forgotten about that property which should allow me to use differrent assemblyversions than what is on the Discountasp.net host.


    Rich
     
  7. Thanks for posting that Rich, it should help others in the future. [​IMG]
     
  8. Here is my web.config.

    <!--
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    \Windows\Microsoft.Net\Framework\v2.x\Config
    --><configuration>
    <configSections>
    <sectionGroup name='system.web.extensions' type='System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35'>
    <sectionGroup name='scripting' type='System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35'>
    <section name='scriptResourceHandler' type='System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35' requirePermission='false' allowDefinition='MachineToApplication'/>
    <sectionGroup name='webServices' type='System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35'>
    <section name='jsonSerialization' type='System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35' requirePermission='false' allowDefinition='Everywhere' />
    <section name='profileService' type='System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35' requirePermission='false' allowDefinition='MachineToApplication' />
    <section name='authenticationService' type='System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35' requirePermission='false' allowDefinition='MachineToApplication' />
    <section name='roleService' type='System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35' requirePermission='false' allowDefinition='MachineToApplication' />
    </sectionGroup>
    </sectionGroup>
    </sectionGroup>
    </configSections>
    <appSettings>
    <add key='CategoryXmlFileName' value='~/app_data/categories.xml' />
    <add key='InventoryItemXmlFileName' value='~/app_data/inventoryitems.xml' />
    </appSettings>
    <connectionStrings/>
    <system.web>
    <!--
    Set compilation debug='true' to insert debugging
    symbols into the compiled page. Because this
    affects performance, set this value to true only
    during development.
    -->
    <compilation debug='true'>
    <assemblies>
    <add assembly='System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089'/>
    <add assembly='System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35'/>
    <add assembly='System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089'/>
    <add assembly='System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089'/>
    </assemblies>
    </compilation>
    <!--
    The <authentication> section enables configuration
    of the security authentication mode used by
    ASP.NET to identify an incoming user.
    -->
    <authentication mode='Windows'/>
    <!--
    The <customErrors> section enables configuration
    of what to do if/when an unhandled error occurs
    during the execution of a request. Specifically,
    it enables developers to configure html error pages
    to be displayed in place of a error stack trace.

    <customErrors mode='RemoteOnly' defaultRedirect='GenericErrorPage.htm'>
    <error statusCode='403' redirect='NoAccess.htm' />
    <error statusCode='404' redirect='FileNotFound.htm' />
    </customErrors>
    -->
    <pages styleSheetTheme='Main'>
    <controls>
    <add tagPrefix='asp' namespace='System.Web.UI' assembly='System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35'/>
    <add tagPrefix='asp' namespace='System.Web.UI.WebControls' assembly='System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35'/>

    </controls>
    </pages>
    <httpHandlers>
    <remove verb='*' path='*.asmx'/>
    <add verb='*' path='*.asmx' validate='false' type='System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35'/>
    <add verb='*' path='*_AppService.axd' validate='false' type='System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35'/>
    <add verb='GET,HEAD' path='ScriptResource.axd' type='System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35' validate='false'/>

    </httpHandlers>

    </system.web>
    <system.codedom>
    <compilers>
    <compiler language='c#;cs;csharp' extension='.cs' warningLevel='4' type='Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'>
    <providerOption name='CompilerVersion' value='v3.5'/>
    <providerOption name='WarnAsError' value='false'/>
    </compiler>
    <compiler language='vb;vbs;visualbasic;vbscript' extension='.vb' warningLevel='4' type='Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'>
    <providerOption name='CompilerVersion' value='v3.5'/>
    <providerOption name='OptionInfer' value='true'/>
    <providerOption name='WarnAsError' value='false'/>
    </compiler>
    </compilers>
    </system.codedom>

    <!--
    The system.webServer section is required for running ASP.NET AJAX under Internet
    Information Services 7.0. It is not necessary for previous version of IIS.
    -->
    <system.webServer>
    <validation validateIntegratedModeConfiguration='false'/>
    <modules runAllManagedModulesForAllRequests='true'>
    <remove name='ScriptModule' />
    <add name='ScriptModule' preCondition='managedHandler' type='System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35'/>
    </modules>
    <handlers>
    <remove name='WebServiceHandlerFactory-Integrated'/>
    <remove name='ScriptHandlerFactory' />
    <remove name='ScriptHandlerFactoryAppServices' />
    <remove name='ScriptResource' />
    <add name='ScriptHandlerFactory' verb='*' path='*.asmx' preCondition='integratedMode'
    type='System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35'/>
    <add name='ScriptHandlerFactoryAppServices' verb='*' path='*_AppService.axd' preCondition='integratedMode'
    type='System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35'/>
    <add name='ScriptResource' preCondition='integratedMode' verb='GET,HEAD' path='ScriptResource.axd' type='System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35' />
    </handlers>


    <defaultDocument>
    <files>
    <clear/>
    <add value='Default.aspx'/>
    <add value='Default.htm'/>
    <add value='Default.asp'/>
    <add value='index.htm'/>
    <add value='iisstart.asp'/>
    </files>
    </defaultDocument>
    </system.webServer>
    <runtime>
    <assemblyBinding xmlns='urn:schemas-microsoft-com:asm.v1'>
    <dependentAssembly>
    <assemblyIdentity name='System.Web.Extensions' publicKeyToken='31bf3856ad364e35'/>

    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name='System.Web.Extensions.Design' publicKeyToken='31bf3856ad364e35'/>

    </dependentAssembly>
    </assemblyBinding>
    </runtime>
    </configuration>
     
  9. Hello RichDadand wisemx,

    I have the same problem as RichDan had...but I cannot seem to resolve it...
    Can you tell me how did you manage to set the Copy Local = true on your web project...In my VS2008 solution I don't have a folder References to set it...

    I also copied the files attached by wisemx to the bin folder but I've got thefollowing error...


    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: Could not load file or assembly 'System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) (E:\web\roinforo000\htdocs\web.config line 97)

    Source Error:





    Code:
    
    
    Line 95: </httpHandlers>
    Line 96: <httpModules>
    Line 97: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    Line 98: <add name="DynamicDataModule" type="System.Web.DynamicData.DynamicDataHttpModule, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    Line 99: <add name="UrlRoutingModule" type="System.Web.Mvc.UrlRoutingModule, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, P

    Thanks,
     
  10. I understand...the version that I used is not installed...I'll wait that for that version to be installed...
    Thanks!
     
  11. Im having an issue as well. Here is my web.config file:





    <!--


    Note: As an alternative to hand editing this file you can use the


    web admin tool to configure settings for your application. Use


    the Website->Asp.Net Configuration option in Visual Studio.


    A full list of settings and comments can be found in


    machine.config.comments usually located in


    \Windows\Microsoft.Net\Framework\v2.x\ Config


    -->


    <configuration>


    <configSections>


    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">


    <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">


    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>


    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">


    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>


    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>


    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>


    <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>


    </sectionGroup>


    </sectionGroup>


    <section name="dynamicData" type="System.Web.DynamicData.DynamicDataControlsSection" requirePermission="false" allowDefinition="MachineToApplication"/>


    </sectionGroup>


    </configSections>


    <appSettings/>


    <connectionStrings/>


    <system.web>


    <!--


    Set compilation debug="true" to insert debugging


    symbols into the compiled page. Because this


    affects performance, set this value to true only


    during development.


    -->


    <compilation debug="true">


    <assemblies>


    <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>


    <add assembly="System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>


    <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>


    <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>


    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>


    <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    <add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies>


    </compilation>


    <!--


    The <authentication> section enables configuration


    of the security authentication mode used by


    ASP.NET to identify an incoming user.


    -->


    <authentication mode="Windows"/>


    <!--


    The <customErrors> section enables configuration


    of what to do if/when an unhandled error occurs


    during the execution of a request. Specifically,


    it enables developers to configure html error pages


    to be displayed in place of a error stack trace.


    <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">


    <error statusCode="403" redirect="NoAccess.htm" />


    <error statusCode="404" redirect="FileNotFound.htm" />


    </customErrors>


    -->


    <pages>


    <controls>


    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    <add tagPrefix="asp" namespace="System.Web.UI.SilverlightControls" assembly="System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    <add tagPrefix="asp" namespace="System.Web.DynamicData" assembly="System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    <add tagPrefix="asp" tagName="DynamicFilter" src="~/App_Shared/DynamicDataFields/FilterUserControl.ascx"/>


    </controls>


    </pages>


    <httpHandlers>


    <remove verb="*" path="*.asmx"/>


    <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>


    </httpHandlers>


    <httpModules>


    <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    <add name="DynamicDataModule" type="System.Web.DynamicData.DynamicDataHttpModule, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    <add name="UrlRoutingModule" type="System.Web.Mvc.UrlRoutingModule, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    </httpModules>


    </system.web>


    <system.codedom>


    <compilers>


    <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">


    <providerOption name="CompilerVersion" value="v3.5"/>


    <providerOption name="WarnAsError" value="false"/>


    </compiler>


    <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">


    <providerOption name="CompilerVersion" value="v3.5"/>


    <providerOption name="OptionInfer" value="true"/>


    <providerOption name="WarnAsError" value="false"/>


    </compiler>


    </compilers>


    </system.codedom>


    <system.web.extensions>


    <!--


    <dynamicData


    // Type of the data context to be used


    dataContextType="[type]"


    enableTemplates="[bool]" // whether to enable templates or not


    >





    <mappings


    queryStringKeyPrefix="" // the prefix used for query string parameter keys


    pattern="" // the pattern used in forming paths. must contains {table} and {viewName} identifiers


    >


    <add


    actions="list|details" // can be comma-separated list


    viewName="" // string used in path pattern.


    templateFile="" // template to use if actual file does not exist. File path relative to App_PageTemplates


    tables="[table names]" // make these settings only apply to a list of tables (can be a comma-separated list)


    path="" // override the default path generated from the pattern. must be app relative


    />


    </mappings>


    </dynamicData


    -->


    <dynamicData dataContextType="" enableTemplates="false">


    <mappings queryStringKeyPrefix="" pattern="~/{table}/{viewName}.aspx">


    <add actions="list,details" viewName="ListDetails" templateFile="ListDetailsTemplate.aspx"/>


    <!--


    <add actions="list" viewName="List" templateFile="ListTemplate.aspx" />


    <add actions="details" viewName="Details" templateFile="DetailsTemplate.aspx" />


    -->


    <!--


    Special overriding cases


    <add actions="list,details" tables="Products,Categories" viewName="SpecialName" templateFile="ListTemplate.aspx"/>


    <add actions="list" tables="Products" templateFile="DetailsTemplate.aspx" path="~/customPath.aspx"/>


    <add actions="list" tables="Orders" viewName="MyListViewName"/>


    -->


    </mappings>


    </dynamicData>


    </system.web.extensions>


    <!--


    The system.webServer section is required for running ASP.NET AJAX under Internet


    Information Services 7.0. It is not necessary for previous version of IIS.


    -->


    <system.webServer>


    <validation validateIntegratedModeConfiguration="false"/>


    <modules runAllManagedModulesForAllRequests="true">


    <remove name="ScriptModule"/>


    <remove name="DynamicDataModule"/>


    <remove name="UrlRoutingModule"/>


    <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    <add name="DynamicDataModule" preCondition="managedHandler" type="System.Web.DynamicData.DynamicDataHttpModule, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    <add name="UrlRoutingModule" type="System.Web.Mvc.UrlRoutingModule, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    </modules>


    <handlers>


    <remove name="WebServiceHandlerFactory-Integrated"/>


    <remove name="ScriptHandlerFactory"/>


    <remove name="ScriptHandlerFactoryAppServices"/>


    <remove name="ScriptResource"/>


    <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    <add name="ScriptHandlerFactoryAppServices" verb="<FONT c
     
  12. Thank you![​IMG]

    Howard Sueing
    Howard Univeristy
     
  13. Hello,


    I removed the files you displayed and copied your web.config file but I still get an 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: The 'configuration' start tag on line 2 does not match the end tag of 'location'. Line 77, position 5.

    Source Error:





    Code:
    Line 75:     </httpModules>
    Line 76:   </system.web>
    Line 77:   </location>
    Line 78:   <system.codedom>
    Line 79:     <compilers>
    Source File: E:\web\codemyworl1\htdocs\web.config Line: 77






    Version Information:Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 <!--
    [XmlException]: The 'configuration' start tag on line 2 does not match the end tag of 'location'. Line 77, position 5.
    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
    at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
    at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
    at System.Xml.XmlTextReaderImpl.ParseEndElement()
    at System.Xml.XmlTextReaderImpl.ParseElementContent()
    at System.Xml.XmlTextReaderImpl.Read()
    at System.Xml.XmlTextReader.Read()
    at System.Configuration.XmlUtil.StrictReadToNextElement(ExceptionAction action)
    at System.Configuration.BaseConfigurationRecord.ScanSectionsRecursive(XmlUtil xmlUtil, String parentConfigKey, Boolean inLocation, String locationSubPath, OverrideModeSetting overrideMode, Boolean skipInChildApps)
    at System.Configuration.BaseConfigurationRecord.ScanSectionsRecursive(XmlUtil xmlUtil, String parentConfigKey, Boolean inLocation, String locationSubPath, OverrideModeSetting overrideMode, Boolean skipInChildApps)
    at System.Configuration.BaseConfigurationRecord.ScanSections(XmlUtil xmlUtil)
    at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
    [ConfigurationErrorsException]: The 'configuration' start tag on line 2 does not match the end tag of 'location'. Line 77, position 5. (E:\web\codemyworl1\htdocs\web.config line 77)
    at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
    at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
    at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
    at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)
    at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
    at System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName)
    at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
    at System.Web.Configuration.RuntimeConfig.get_CustomErrors()
    at System.Web.Configuration.CustomErrorsSection.GetSettings(HttpContext context, Boolean canThrow)
    at System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow, Boolean localExecute)
    at System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e)
    --><!--
    This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->


    Howard Sueing
    Howard Univeristy
     
  14. Hi,
    The error shown is telling you there is a un-needed ending for <location>, just remove that part shown in red.
    I trimmed the web.config I posted, it has the versions you need but is not a complete web.config


    Salute,
    Mark
     
  15. Hi,
    Below is the versions I'm successfully using Ajax/ControlToolkit on the IIS7 test server.
    Try removing these filesfrom your /bin/ folder:(That way theGAC will handle it for you.)
    Microsoft.Web.Preview.dll
    System.Web.Extensions.Design.dll
    System.Web.Extensions.dll

     

Share This Page