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

WebResource.axd ERRORS!!!

1 Answer 132 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mastermehdi
Top achievements
Rank 2
mastermehdi asked on 26 Apr 2011, 07:17 AM

hi

I getting the following exceptions sometimes there is a new request to the server:

System.Web.HttpException (0x80004005): This is an invalid webresource request. 
 at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context) 
 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
 at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at http://test.com:80/WebResource.axd?d=2GpuJsHz6f2MZvJGfqtMifySIIHrl4Fl6QhmfmHWNAle9eNy8spdiz4-9FiFaNKBKdTuA9ihLeft_btnBranch"%20class="btn"%20style="width:192px;"%20/>
تمامی%20حقوق%20این%20سایت%20محفوظ%20و%20متعلق%20به%20سامانه%20مدیریت%20تبلیغات%20اکسیر%20می%20باشد.//
System.Web.HttpException (0x80004005): The length of the query string for this request exceeds the configured maxQueryStringLength value. 
 at System.Web.HttpRequest.ValidateInputIfRequiredByConfig() 
 at System.Web.HttpApplication.ValidateRequestExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
 at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at http://test.com:80/WebResource.axd?d=ReRJmqv0EMoIrhksHtAP9NaSkMSs8rUuezr1BVaN91
دریافت%20آگهیواریز%20به%20حساببرداشت%20از%20حسابپیام%20های%20دریافت%20شدهارسال%20پیام%20به%20سایتویرایش%20مشخصاتخروجاطلاعاتامروز:%20دوشنبه%201390.2.5تبلیغات%20امروز:تبلیغات%20دیروز:1,809%20نمایش0%20کلیک7,906%20نمایش329%20کلیکجزئیات%20بیشتر...دریافت%20آگهی
تمامی%20حقوق%20این%20سایت%20محفوظ%20و%20متعلق%20به%20سامانه%20مدیریت%20تبلیغات%20اکسیر%20می%20باشد.//

i use telerik.web.ui.dll v2011.1.315.40

and i put just this dll (telerik.web.ui.dll) in BIN folder

in client side I use windows 7 with IIS7 and I never get this exceptions, but when I publish my site on web host that installed on windows server 2003 with iis 6 i get this exceptions Regularly!

my web.config is:

<?xml version="1.0"?>
<configuration>
  <system.web>
    <machineKey validationKey="4E034E7E7D3A8BD7B883864A59A1DCE0F0830BBB0A8EA155F5E3C43640F53EE78D1FD427F4C7A1FC88C273BD134A4A55F329EB552379EE45E74C5FA298CD270F"
      decryptionKey="6D01183050AEDE29C50CC073F906B4861CEEDDD1CB1EBBE31D04220359C6794C" validation="SHA1" decryption="AES" />
    <compilation debug="false" defaultLanguage="C#" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      </assemblies>
    </compilation>
    <httpRuntime maxRequestLength="1024" requestLengthDiskThreshold="64" requestValidationMode="2.0"/>
    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
      <controls>
        <add tagPrefix="csm" namespace="customWebControls"/>
        <add tagPrefix="tlk" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
      </controls>
    </pages>
    <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
    </httpHandlers>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <handlers>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" path="Telerik.Web.UI.WebResource.axd" preCondition="integratedMode" type="Telerik.Web.UI.WebResource"/>
    </handlers>
  </system.webServer>
</configuration>
 my aspx code is:

<%@ Page Language="C#" %>
<!doctype html>
<script runat="server">
    protected void btnLogin_Click(object sender, EventArgs e)
    {
        if (txtUsername.Text == "1" && txtPassword.Text == "1")
            mlvLogin.ActiveViewIndex = 1;
    }
</script>
<head>
    <title>???</title>
</head>
<body>
    <form id="form" runat="server" enctype="multipart/form-data">
        <tlk:RadScriptManager ID="radScriptManager" runat="server" />
        <tlk:RadAjaxManager ID="radAjaxManager" runat="server"
            DefaultLoadingPanelID="radAjaxLoadingPanel">
            <AjaxSettings>
                <tlk:AjaxSetting AjaxControlID="pnlLogin">
                    <UpdatedControls>
                        <tlk:AjaxUpdatedControl ControlID="pnlLogin" />
                    </UpdatedControls>
                </tlk:AjaxSetting>
            </AjaxSettings>
        </tlk:RadAjaxManager>
        <tlk:RadAjaxLoadingPanel ID="radAjaxLoadingPanel" runat="server"
            InitialDelayTime="500"
            Skin="Default">
        </tlk:RadAjaxLoadingPanel>
        <div>
            <asp:Panel ID="pnlLogin" runat="server"
                DefaultButton="btnLogin">
                <asp:MultiView ID="mlvLogin" runat="server"
                    ActiveViewIndex="0">
                    <asp:View ID="loginView" runat="server">
                        <asp:Label ID="lblUsername" runat="server"
                            AssociatedControlID="txtUsername"
                            Text="username: " />
                        <asp:TextBox ID="txtUsername" runat="server" /><br />
                        <asp:Label ID="lblPassword" runat="server"
                            AssociatedControlID="txtPassword"
                            Text="password: " />
                        <asp:TextBox ID="txtPassword" runat="server"
                            TextMode="Password" /><br />
                        <asp:Button ID="btnLogin" runat="server"
                            OnClick="btnLogin_Click"
                            Text="signin" />
                    </asp:View>
                    <asp:View ID="linkListView" runat="server">
                        <div>Some code goes here!</div>
                    </asp:View>
                </asp:MultiView>
            </asp:Panel>
        </div>
    </form>
</body>
</html>

what can i do for solving this important issue?

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 27 Apr 2011, 01:57 PM
Hi mastermehdi,

Could you please try disabling ajax temporary, by setting the RadAjaxManager EnableAjax property to false and see if any error is thrown?

Best wishes,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
General Discussions
Asked by
mastermehdi
Top achievements
Rank 2
Answers by
Iana Tsolova
Telerik team
Share this question
or