Could not load type 'System.Web.UI.IScriptManager'
Hi,
I have developped an application in VS2008, using .NET 3.5
I'm using some Devexpress and Ms-AJAX controls and all works fine on the
DEV-machine (as it always does ;-) )
Now that it's deployed on the webserver I get the error as pasted in below:
I've asked the web-hosting company to install the .NET Framework version 3.5
and they did but for some reason I get this weird error. I've also seen
another post about this (8-jan-2008) but there was no real solution there so
I try again right here.
Hope someone can help me out here...
TIA,
Jurjen
Server Error in '/' Application.
------------------------------------------------------------ --------------------
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: Could not load type 'System.Web.UI.IScriptManager'
from assembly 'System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'.
Source Error:
Line 10: <% [at] Register assembly="DevExpress.Web.ASPxEditors.v7.3,
Version=7.3.6.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>
Line 11:
Line 12: <asp:ScriptManager ID="ScriptManager1" runat="server" />
Line 13:
Line 14: <script type="text/javascript" >
Source File: /WebUserControls/ReserveringWizzard.ascx Line: 12
------------------------------------------------------------ --------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET
Version:2.0.50727.832
RE: Could not load type 'System.Web.UI.IScriptManager'
asp.net 3.5 runs under .net 2.0 runtime. some of the dll are remapped to 3.5
versions in the web.config.
the error message indicates the System.WebExtension are not being used. your
web.config should be mapping System.Web.Extensions to version 3.5, and
remapping ScriptModule to the webextensions.
normally the System.Web.Extensions is installed in the gac, but you can just
include the dll in you sites bin (still need the web.config settings).
-- bruce (sqlwork.com)
"Jurjen de Groot" wrote:
> Hi,
>
> I have developped an application in VS2008, using .NET 3.5
> I'm using some Devexpress and Ms-AJAX controls and all works fine on the
> DEV-machine (as it always does ;-) )
> Now that it's deployed on the webserver I get the error as pasted in below:
>
> I've asked the web-hosting company to install the .NET Framework version 3.5
> and they did but for some reason I get this weird error. I've also seen
> another post about this (8-jan-2008) but there was no real solution there so
> I try again right here.
>
>
> Hope someone can help me out here...
>
> TIA,
> Jurjen
>
>
> Server Error in '/' Application.
> ------------------------------------------------------------ --------------------
>
> Parser Error
> Description: An error occurred during the parsing of a resource required to
> service this request. Please review the following specific parse error
> details and modify your source file appropriately.
>
> Parser Error Message: Could not load type 'System.Web.UI.IScriptManager'
> from assembly 'System.Web, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'.
>
> Source Error:
>
> Line 10: <% [at] Register assembly="DevExpress.Web.ASPxEditors.v7.3,
> Version=7.3.6.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
> namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>
> Line 11:
> Line 12: <asp:ScriptManager ID="ScriptManager1" runat="server" />
> Line 13:
> Line 14: <script type="text/javascript" >
>
> Source File: /WebUserControls/ReserveringWizzard.ascx Line: 12
>
>
> ------------------------------------------------------------ --------------------
> Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET
> Version:2.0.50727.832
>
>
Re: Could not load type 'System.Web.UI.IScriptManager'
This is a multi-part message in MIME format.
------=_NextPart_000_001D_01C862C9.74525340
Content-Type: text/plain;
format=flowed;
charset="utf-8";
reply-type=original
Content-Transfer-Encoding: 7bit
Bruce,
Thanks for responding so soon.
I have already added the System.Web.Extension.dll and
System.Web.Extensions.Design.dll, both version 3.5 to the bin folder of the
site. I would have expected the AJAX part of the 3.5 version of the
framework to be installed automatically when installing the 3.5
redistributable.
What seems strange to me is that the framework tries to load the type
'System.Web.UI.IScriptManager' from a version 2.0 assembly. Could there be
something missing in my web.config ? (see attachment).
Jurjen.
"bruce barker" <brucebarker [at] discussions.microsoft.com> wrote in message
news:ECB563E2-45AB-40FE-ABC8-AE530EFE9FC8 [at] microsoft.com...
> asp.net 3.5 runs under .net 2.0 runtime. some of the dll are remapped to
> 3.5
> versions in the web.config.
>
> the error message indicates the System.WebExtension are not being used.
> your
> web.config should be mapping System.Web.Extensions to version 3.5, and
> remapping ScriptModule to the webextensions.
>
> normally the System.Web.Extensions is installed in the gac, but you can
> just
> include the dll in you sites bin (still need the web.config settings).
> -- bruce (sqlwork.com)
>
>
> "Jurjen de Groot" wrote:
>
>> Hi,
>>
>> I have developped an application in VS2008, using .NET 3.5
>> I'm using some Devexpress and Ms-AJAX controls and all works fine on the
>> DEV-machine (as it always does ;-) )
>> Now that it's deployed on the webserver I get the error as pasted in
>> below:
>>
>> I've asked the web-hosting company to install the .NET Framework version
>> 3.5
>> and they did but for some reason I get this weird error. I've also seen
>> another post about this (8-jan-2008) but there was no real solution there
>> so
>> I try again right here.
>>
>>
>> Hope someone can help me out here...
>>
>> TIA,
>> Jurjen
>>
>>
>> Server Error in '/' Application.
>> ------------------------------------------------------------ --------------------
>>
>> Parser Error
>> Description: An error occurred during the parsing of a resource required
>> to
>> service this request. Please review the following specific parse error
>> details and modify your source file appropriately.
>>
>> Parser Error Message: Could not load type 'System.Web.UI.IScriptManager'
>> from assembly 'System.Web, Version=2.0.0.0, Culture=neutral,
>> PublicKeyToken=b03f5f7f11d50a3a'.
>>
>> Source Error:
>>
>> Line 10: <% [at] Register assembly="DevExpress.Web.ASPxEditors.v7.3,
>> Version=7.3.6.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
>> namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>
>> Line 11:
>> Line 12: <asp:ScriptManager ID="ScriptManager1" runat="server" />
>> Line 13:
>> Line 14: <script type="text/javascript" >
>>
>> Source File: /WebUserControls/ReserveringWizzard.ascx Line: 12
>>
>>
>> ------------------------------------------------------------ --------------------
>> Version Information: Microsoft .NET Framework Version:2.0.50727.832;
>> ASP.NET
>> Version:2.0.50727.832
>>
>>
------=_NextPart_000_001D_01C862C9.74525340
Content-Type: application/xml;
name="Web.config"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="Web.config"
<?xml version=3D"1.0"?>
<configuration>
<configSections>
<sectionGroup name=3D"system.web.extensions" =
type=3D"System.Web.Configuration.SystemWebExtensionsSectionG roup, =
System.Web.Extensions, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35">
<sectionGroup name=3D"scripting" =
type=3D"System.Web.Configuration.ScriptingSectionGroup, =
System.Web.Extensions, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35">
<section name=3D"scriptResourceHandler" =
type=3D"System.Web.Configuration.ScriptingScriptResourceHand lerSection, =
System.Web.Extensions, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35" requirePermission=3D"false" =
allowDefinition=3D"MachineToApplication"/>
<sectionGroup name=3D"webServices" =
type=3D"System.Web.Configuration.ScriptingWebServicesSection Group, =
System.Web.Extensions, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35">
<section name=3D"jsonSerialization" =
type=3D"System.Web.Configuration.ScriptingJsonSerializationS ection, =
System.Web.Extensions, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35" requirePermission=3D"false" =
allowDefinition=3D"Everywhere"/>
<section name=3D"profileService" =
type=3D"System.Web.Configuration.ScriptingProfileServiceSect ion, =
System.Web.Extensions, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35" requirePermission=3D"false" =
allowDefinition=3D"MachineToApplication"/>
<section name=3D"authenticationService" =
type=3D"System.Web.Configuration.ScriptingAuthenticationServ iceSection, =
System.Web.Extensions, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35" requirePermission=3D"false" =
allowDefinition=3D"MachineToApplication"/>
<section name=3D"roleService" =
type=3D"System.Web.Configuration.ScriptingRoleServiceSection , =
System.Web.Extensions, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35" requirePermission=3D"false" =
allowDefinition=3D"MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug=3D"true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug=3D"true">
<assemblies>
<add assembly=3D"DevExpress.Web.ASPxScheduler.v7.3, =
Version=3D7.3.6.0, Culture=3Dneutral, =
PublicKeyToken=3D9b171c9fd64da1d1"/>
<add assembly=3D"DevExpress.Web.v7.3, Version=3D7.3.6.0, =
Culture=3Dneutral, PublicKeyToken=3D9b171c9fd64da1d1"/>
<add assembly=3D"DevExpress.XtraScheduler.v7.3.Core, =
Version=3D7.3.6.0, Culture=3Dneutral, =
PublicKeyToken=3D9b171c9fd64da1d1"/>
<add assembly=3D"DevExpress.Web.ASPxEditors.v7.3, Version=3D7.3.6.0, =
Culture=3Dneutral, PublicKeyToken=3D9b171c9fd64da1d1"/>
<add assembly=3D"DevExpress.Data.v7.3, Version=3D7.3.6.0, =
Culture=3Dneutral, PublicKeyToken=3D9b171c9fd64da1d1"/>
<add assembly=3D"System.Core, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3DB77A5C561934E089"/>
<add assembly=3D"System.Web.Extensions, Version=3D3.5.0.0, =
Culture=3Dneutral, PublicKeyToken=3D31BF3856AD364E35"/>
<add assembly=3D"System.Xml.Linq, Version=3D3.5.0.0, =
Culture=3Dneutral, PublicKeyToken=3DB77A5C561934E089"/>
<add assembly=3D"System.Data.DataSetExtensions, Version=3D3.5.0.0, =
Culture=3Dneutral, PublicKeyToken=3DB77A5C561934E089"/></assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<!-- enable Forms authentication -->
<authentication mode=3D"Forms">
<forms name=3D"OnlineResAuth" loginUrl=3D"Login.aspx" =
protection=3D"All" path=3D"/" />
</authentication>
<!-- authentication mode=3D"Windows" / -->
<customErrors mode=3D"RemoteOnly" /> =
<!--defaultRedirect=3D"Error.aspx" />-->
<!--
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=3D"RemoteOnly" =
defaultRedirect=3D"GenericErrorPage.htm">
<error statusCode=3D"403" redirect=3D"NoAccess.htm" />
<error statusCode=3D"404" redirect=3D"FileNotFound.htm" />
</customErrors>
-->
<pages>
<controls>
<add tagPrefix=3D"asp" namespace=3D"System.Web.UI" =
assembly=3D"System.Web.Extensions, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35"/>
<add tagPrefix=3D"asp" namespace=3D"System.Web.UI.WebControls" =
assembly=3D"System.Web.Extensions, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35"/></controls></pages>
<httpHandlers>
<remove verb=3D"*" path=3D"*.asmx"/>
<add verb=3D"*" path=3D"*.asmx" validate=3D"false" =
type=3D"System.Web.Script.Services.ScriptHandlerFactory, =
System.Web.Extensions, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35"/>
<add verb=3D"*" path=3D"*_AppService.axd" validate=3D"false" =
type=3D"System.Web.Script.Services.ScriptHandlerFactory, =
System.Web.Extensions, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35"/>
<add verb=3D"GET,HEAD" path=3D"ScriptResource.axd" validate=3D"false" =
type=3D"System.Web.Handlers.ScriptResourceHandler, =
System.Web.Extensions, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35"/></httpHandlers>
<httpModules>
<add name=3D"ScriptModule" type=3D"System.Web.Handlers.ScriptModule, =
System.Web.Extensions, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35"/></httpModules></system.web>
<system.codedom>
<compilers>
<compiler language=3D"c#;cs;csharp" extension=3D".cs" =
type=3D"Microsoft.CSharp.CSharpCodeProvider,System, Version=3D2.0.0.0, =
Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089" =
warningLevel=3D"4">
<providerOption name=3D"CompilerVersion" value=3D"v3.5"/>
<providerOption name=3D"WarnAsError" value=3D"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=3D"false"/>
<modules>
<remove name=3D"ScriptModule"/>
<add name=3D"ScriptModule" preCondition=3D"managedHandler" =
type=3D"System.Web.Handlers.ScriptModule, System.Web.Extensions, =
Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35"/></modules>
<handlers>
<remove name=3D"WebServiceHandlerFactory-Integrated"/>
<remove name=3D"ScriptHandlerFactory"/>
<remove name=3D"ScriptHandlerFactoryAppServices"/>
<remove name=3D"ScriptResource"/>
<add name=3D"ScriptHandlerFactory" verb=3D"*" path=3D"*.asmx" =
preCondition=3D"integratedMode" =
type=3D"System.Web.Script.Services.ScriptHandlerFactory, =
System.Web.Extensions, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35"/>
<add name=3D"ScriptHandlerFactoryAppServices" verb=3D"*" =
path=3D"*_AppService.axd" preCondition=3D"integratedMode" =
type=3D"System.Web.Script.Services.ScriptHandlerFactory, =
System.Web.Extensions, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35"/>
<add name=3D"ScriptResource" verb=3D"GET,HEAD" =
path=3D"ScriptResource.axd" preCondition=3D"integratedMode" =
type=3D"System.Web.Handlers.ScriptResourceHandler, =
System.Web.Extensions, Version=3D3.5.0.0, Culture=3Dneutral, =
PublicKeyToken=3D31BF3856AD364E35"/></handlers></system.webServer>
<runtime>
<assemblyBinding xmlns=3D"urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name=3D"System.Web.Extensions" =
publicKeyToken=3D"31bf3856ad364e35"/>
<bindingRedirect oldVersion=3D"1.0.0.0-1.1.0.0" =
newVersion=3D"3.5.0.0"/></dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=3D"System.Web.Extensions.Design" =
publicKeyToken=3D"31bf3856ad364e35"/>
<bindingRedirect oldVersion=3D"1.0.0.0-1.1.0.0" =
newVersion=3D"3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
------=_NextPart_000_001D_01C862C9.74525340--