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

Ajax doesn't work on IIS6

5 Answers 177 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gökhan
Top achievements
Rank 1
Gökhan asked on 20 Dec 2011, 05:03 PM
Hi, 
I have developped my project on VisualStudio 2010. It works well on it with ASP 4.0. 

Finally I finished my project and I tried to move it on live server IIS. Then It doesn't work. Server send following error When I click my login or captha refresh button.

I attached my Chrome screenshot

And this is my web.config
<?xml version="1.0"?>
<configuration>
    <configSections>
            <section name="iconHandler" type="Mvolo.ShellIcons.Web.ShellIconHandlerConfigurationSection" />
        <section name="Getron.DBInterface" type="Getron.DBInterface.Config.SectionHandler,Getron.DBInterface.V.1.1.3.1" requirePermission="false" allowDefinition="Everywhere" />
        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
            <section name="GCL.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        </sectionGroup>
        <sectionGroup name="Miron.web">
            <section name="CompressorSettings" type="Miron.Web.MbCompression.SettingsConfigSection" />
        </sectionGroup>
    </configSections>
    <Miron.web>
        <!-- cachingStorage="OutputCache / FileSystem"
        <CompressorSettings compressCSS="true"  Indicate if the module will compress the css files 
        compressJavaScript="true"  Indicate if the module will compress the js files 
        compressPage="true"   Indicate if the module will compress the HTML content (not minifind!) 
        compressWebResource="true"  Indicate if the module will compress the webresources.axd 
        minifyContent="true"  Indicate if the module will minify js & css files 
        combineCSS="true"  Indicate if the module will combine the css files and place them in the page header 
        combineHeaderScripts="true"  Indicate if the module will combine the js files that are in the page header 
        cachingStorage="OutputCache"  Indicate if the module will use OutputCache of the Filesystem as a cache. (See details below) 
        autoMode="true"  Set to true to tell the module to do all it's magic without having the programmer to change his code. 
        scriptsVersion="1"  Append this value to the end of the script include. Change this value will force updating the server and all the client to reload all the script files 
        cssVersion="1"> Append this value to the end of the css include. Change this value will force updating the server and all the client to reload all the css files  -->
        <CompressorSettings compressCSS="true" compressJavaScript="true" compressPage="true" compressWebResource="true" minifyContent="true" combineCSS="true" combineHeaderScripts="true" cachingStorage="OutputCache" autoMode="true" scriptsVersion="1" cssVersion="1">
            <excludePaths>
                <add key="~/DontCompressMe.aspx" /> // Example how to exclude the file DontCompressMe.aspx from being proccessed
      </excludePaths>
            <excludeFromMinifyPaths>
                <add key="~/style.css" />    // Example how to exclude the file ~/style.css from minifing
      </excludeFromMinifyPaths>
            <disableByPostParams>
                <add key="DXScript" /> // Example how to exclude DevExpress ajax async calls from being compressed
      </disableByPostParams>
        </CompressorSettings>
    </Miron.web>
    <Getron.DBInterface>
    <provider name="GBH_Default" type="Sql" encrypted="false" connectionString="Server=98.188.101.251,2443;Database=GBHR2;Uid=tt;Pwd=ttt;Persist Security Info=true;"/>
    </Getron.DBInterface>
    <system.web>
    <httpRuntime requestValidationMode="2.0" />
        <trace pageOutput="false" requestLimit="10" enabled="false" localOnly="false" traceMode="SortByTime" mostRecent="true" />
        <httpHandlers>
            <remove path="*.asmx" verb="*" />
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory,System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
            <!--<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler,System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />-->
            <add path="css.axd" verb="*" type="Miron.Web.MbCompression.CssCompressionHandler, MbCompression" validate="false" />
            <add path="jslib.axd" verb="*" type="Miron.Web.MbCompression.JavaScriptCompressionHandler, MbCompression" validate="false" />
            <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
             
            <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
            <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
            <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
            <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2011.3.1115.40, Culture=neutral, PublicKeyToken=121FAE78165BA3D4" validate="false" />
                <add path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=5.1.11.713, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" />
                <add path="geticon.axd" verb="GET" type="Mvolo.ShellIcons.Web.ShellIconHandler" />
        </httpHandlers>
        <httpModules>
            <!--<add name="MbCompressionModule" type="Miron.Web.MbCompression.MbCompressionModule, MbCompression"/>
            Testtt-->
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
            <add name="WebResourceCompressionModule" type="Miron.Web.MbCompression.WebResourceCompressionModule, MbCompression" />
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add name="Session" type="System.Web.SessionState.SessionStateModule" />
        </httpModules>
        <globalization culture="TR-tr" />
        <authentication mode="Forms">
            <forms name=".GBH" timeout="60" loginUrl="~/Sections/Common/Login/" defaultUrl="~/Section/User/Default.aspx" protection="All" />
        </authentication>
        <authorization>
            <allow users="*" />
        </authorization>
        <compilation debug="false" targetFramework="4.0">
            <assemblies>
                    <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                    <add assembly="System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                    <add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                    <add assembly="Telerik.Reporting, Version=5.1.11.713, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
                    <add assembly="Telerik.Reporting.OpenXmlRendering, Version=5.1.11.713, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
                    <add assembly="Telerik.ReportViewer.WebForms, Version=5.1.11.713, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
                    <add assembly="Telerik.Web.Design, Version=2011.3.1115.40, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/></assemblies>
        </compilation>
        <pages enableEventValidation="true" validateRequest="false" >
            <!--<pages enableSessionState="true" pageBaseType="BasePage" userControlBaseType="BaseUserControl" enableEventValidation="false" />-->
            <controls>
                <add namespace="Getron.Core.Base.Web.Resource" tagPrefix="GBH" assembly="Getron.Core"/>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
        <add tagPrefix="telerik" namespace="Telerik.ReportViewer.WebForms" assembly="Telerik.ReportViewer.WebForms"/>
        <!--<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>-->
      </controls>
            <tagMapping>
                <add tagType="System.Web.UI.WebControls.CompareValidator" mappedTagType="Sample.Web.UI.Compatibility.CompareValidator, Validators, Version=1.0.0.0" />
                <add tagType="System.Web.UI.WebControls.CustomValidator" mappedTagType="Sample.Web.UI.Compatibility.CustomValidator, Validators, Version=1.0.0.0" />
                <add tagType="System.Web.UI.WebControls.RangeValidator" mappedTagType="Sample.Web.UI.Compatibility.RangeValidator, Validators, Version=1.0.0.0" />
                <add tagType="System.Web.UI.WebControls.RegularExpressionValidator" mappedTagType="Sample.Web.UI.Compatibility.RegularExpressionValidator, Validators, Version=1.0.0.0" />
                <add tagType="System.Web.UI.WebControls.RequiredFieldValidator" mappedTagType="Sample.Web.UI.Compatibility.RequiredFieldValidator, Validators, Version=1.0.0.0" />
                <add tagType="System.Web.UI.WebControls.ValidationSummary" mappedTagType="Sample.Web.UI.Compatibility.ValidationSummary, Validators, Version=1.0.0.0" />
            </tagMapping>
        </pages>
    <customErrors mode="Off"/>
    </system.web>
  <iconHandler enabled="true" alwaysUseExtension="true" enableClientCaching="true" enableServerCaching="true" />
    <appSettings>
        <add key="GlobalResourceClassName" value="PDFComboBoxItems,GridCommentItems,GlobalWebPage"/>
    <add key="MailComposerService.MailComposerService" value="http://abc.abc.com.tr/MailComposer/MailComposerService.asmx"/>
    <add key="IsJustMainCompany" value="false"/>
    <add key="AllowCustomProgress" value="false"/>
    </appSettings>
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <modules runAllManagedModulesForAllRequests="true">
            <remove name="RadUploadModule" />
            <remove name="RadCompression" />
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" />
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="managedHandler" />
        </modules>
        <handlers>
            <remove name="ChartImage_axd" />
            <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
            <remove name="Telerik_Web_UI_DialogHandler_aspx" />
            <remove name="Telerik_RadUploadProgressHandler_ashx" />
            <remove name="Telerik_Web_UI_WebResource_axd" />
            <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" />
<add name="Telerik.Web.UI.WebResource" 
path="Telerik.Web.UI.WebResource.axd" verb="*"  
type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2011.3.1115.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
            <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
            <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
            <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
            <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
            <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
            <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=5.1.11.713, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode" />
      <add name="iconhandler" path="geticon.axd" verb="GET" type="Mvolo.ShellIcons.Web.ShellIconHandler" />
        </handlers>
     <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="33554432"/>
      </requestFiltering>
    </security>
  </system.webServer>
  <system.web.extensions>
    <scripting>
      <webServices>
        <jsonSerialization maxJsonLength="50000000"/>
      </webServices>
    </scripting>
  </system.web.extensions>
</configuration>

5 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 20 Dec 2011, 05:24 PM
Hi Gökhan,

Can you check whether the tips from this help article will help you identify the cause of the issue? This should lead us to the source of the problem to address it accordingly.

Regards,
Sebastian
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
Gökhan
Top achievements
Rank 1
answered on 20 Dec 2011, 09:46 PM
I checked already this article. I did everything what that article has tips. So you can check my webconfig tags. But error still continue..
I'm on deadline.. Please urgently help me.

Can you send me default IIS global web.config sample. Maybe my IIS base web.config has some invalid errors..

Thanks..
0
Sebastian
Telerik team
answered on 21 Dec 2011, 12:46 PM
Hello Gökhan,

Can you inspect the requests between the client and the server using a web debugging tool like Fiddler, for instance, to gather more details about the reason for the failed calls? This can help us track down the cause of the problem and eventually address it, hence please share the Fiddler log with us.

Additionally, check whether the httpRuntime > requestValidationMode value you set affects the behavior of the site in case you deploy under .NET 4 framework. Other than that, you handler definitions seem correctly specified according to the conventions from this help topic.

Let us know what your findings are.

Regards,
Sebastian
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
Alan
Top achievements
Rank 1
answered on 06 Apr 2012, 07:34 PM
Hi All,

Did you get this sorted, I'm having a very similar strange issue. The application works fine on my local IIS 7, but once I put it live on IIS 6 AJAX stopped working on chrome & firefox (still works in IE).

The request stays pending, until a timeout is fired. See images attached.
0
Pavlina
Telerik team
answered on 09 Apr 2012, 10:04 AM
Hello Daryl,

Could you please open a formal support ticket and send us a sample where we could replicate the described behavior? We will debug it locally and get to the source of the issue?

Kind regards,
Pavlina
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
Gökhan
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Gökhan
Top achievements
Rank 1
Alan
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or