This is a migrated thread and some comments may be shown as answers.

Telerik controls not working IIS 7.5

3 Answers 373 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sattar
Top achievements
Rank 1
Sattar asked on 15 Apr 2013, 08:31 AM
Hi,

I am developing telerik asp.net ajax proejct using .net 4.0 and vs 2012. All the controls are working fine in development environment, but it is working same (esp RadSlider & RadRadialGuage controls) after i deploy in the testing server(Windows server 2008 r2, iis 7.5). Find below my web.config file.
I really appreciate your help.

Thanks,
Jay

<?xml version="1.0"?>

<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->

<configuration>
    <connectionStrings>
      <add name="AppConStr" connectionString="Server=xxx.xxx.x.xx,1433;Database=xxxDb;User ID=xx;Password=xx;Trusted_Connection=True;Integrated Security=False" providerName="System.Data.SqlClient" />
    </connectionStrings>
    <system.web>
      <customErrors mode="Off">
        <!--<customErrors mode="On" defaultRedirect="ConstructionsPage.html" >
            <error statusCode="403" redirect="ConstructionsPage.html"/>
            <error statusCode="404" redirect="ConstructionsPage.html"/>-->
      </customErrors>
      <globalization enableClientBasedCulture="true" culture="auto:en-GB" uiCulture="auto:en" />
      <compilation debug="true" targetFramework="4.0">
        <assemblies>
          <add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
          <add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
          <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        </assemblies>
        <buildProviders>
          <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
        </buildProviders>
      </compilation>
      <pages>
        <controls>
          <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
        </controls>
      </pages>
      <httpHandlers>
        <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" validate="false" />
        <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="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
        <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
      </httpModules>
    </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="RadUploadModule" />
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" />
      <remove name="RadCompression" />
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode" />
    </modules>
    <handlers>      
      <remove name="ChartImage_axd" />
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_RadUploadProgressHandler_ashx" />
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
      <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />      
    </handlers>
    <directoryBrowse enabled="true" />
    <staticContent>
      <mimeMap fileExtension=".kml" mimeType="application/vnd.google-earth.kml+xml" />
      <mimeMap fileExtension=".kmz" mimeType="application/vnd.google-earth.kmz" />
    </staticContent>
    <defaultDocument>
      <files>
        <clear />
        <add value="index.html" />
        <add value="Login.aspx" />
        <add value="iisstart.htm" />
        <add value="default.aspx" />
        <add value="index.php" />
      </files>
    </defaultDocument>
  </system.webServer>
</configuration>

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 17 Apr 2013, 12:23 PM
Hi Jay,

Could you explain what you mean with "All the controls are working fine in development environment, but it is working same after i deploy"? From what I understand things are working and I am not sure what the issue that you are experiencing is.

Nevertheless, I can suggest you start by examining the following resources on troubleshooting any issues with deployment:
http://www.telerik.com/products/aspnet-ajax/getting-started/tech-sheets/system-requirements.aspx - the requirements for working with our controls. Note the following article that explains the prerequisites - MS AJAX primarily: http://www.telerik.com/help/aspnet-ajax/introduction-general-aspnetajax-info.html.

http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting-production-server.html - general troubleshooting

http://www.telerik.com/help/aspnet-ajax/introduction-web-resources-troubleshooting.html - in case you are getting the described JavaScript errors and/or resources fail to load

What I can also suggest is creating a new RadControls webSite (or WebApplication, depending on what project type you are using) and using the handlers from that web.config.


All the best,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Sattar
Top achievements
Rank 1
answered on 18 Apr 2013, 03:02 AM
Hi Marin,

Thanks for your reply.

I have attached the screen-shots for your reference.

1. dev_pc.png - this is the output when i run from my development system.
2. server_url.png - the same project after i deploy to the server.

Look at the RadialGuage & RadSlider controls.

This will show you the difference,  what i am trying to bring up here. 

Thanks,
Jay
0
Marin Bratanov
Telerik team
answered on 19 Apr 2013, 08:23 AM
Hi Jay,

What I see is that the controls are present but they do not have values set. This can be caused by a number of things:
- bad datasource connection on the real server, so no actual data is received
- some other error on the server in some custom code (e.g. the one that sets values)
- if this happens after a postback it is possible that the expected event handlers are not raised if this is a default document. This help article treats that particular case and offers a solution in case you have the same scenario.

Overall, I would advise that you attach a debugger to the server process and step through your code to confirm if this is the case.


Kind regards,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
Sattar
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Sattar
Top achievements
Rank 1
Share this question
or