Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Ajax client-side framework failed to load .net 4.0

Good Evening,

I am experiencing a strange problem. I only experience the problem when the site has been deployed to IIS 7.0. The web page renders fine when launched in VS 2010; however when viewed to IIS 7.0 the entire page gets shifted to the right.

errors only happen when this is on the .aspx page
 <telerik:RadScriptManager ID="RadScriptManager" runat="server" />

Web.config file below....

Please let me know if you need anything else.

Thanks, Brennan


Web.config ---

<authentication mode="Forms">
  <forms loginUrl="login" timeout="2880" />
</authentication>

<membership defaultProvider="WebLinkMembershipProvider">
  <providers>
    <clear/>
    <add name="WebLinkMembershipProvider" type="WebLinkUI.Providers.WebLinkMembershipProvider" applicationName="/WebLink" />
  </providers>
</membership>

<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>
<pages>
  <controls>
    <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
  </controls>
</pages>
<httpHandlers>
  <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
  <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
  <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
  <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
  <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
</httpHandlers>
<httpModules>
  <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
</httpModules>

like image 572
Brennan Mann Avatar asked Dec 07 '22 01:12

Brennan Mann


1 Answers

Just in case this helps somebody else:

I had the same problem - my website work was working in .NET 3.5, but when I updated to .NET 4.0 a Telerik RadTabStrip stopped working.

The problem was the handler entry. This was in the handlers section (under <system.webserver>) in my web.config file:


        <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd"
                 type="Telerik.Web.UI.WebResource" verb="*"
                 preCondition="integratedMode,runtimeVersionv2.0"/>
I removed the runtimeVersion2.0 precondition, and it worked.

It's only obvious once you've spotted it :-)

like image 123
Andrew Shepherd Avatar answered Jan 17 '23 14:01

Andrew Shepherd