"This is an invalid webresource request" Exception!

52 posts, 0 answers
  1. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 16 Nov 2012 Link to this post

    Hi Luca,

    What you are saying makes sense, however, if that would be the case all the WebResource.axd url's should have failed. Now, as you know the machine key is used for encrypting/decrypting the urls. What you can try doing is to hard code the same machine key on the both apps. You can use this machine key generator for generating your key. Could you please give that a try and let us and the community know whether it helps?

    On a side note, I successfully managed to run the WebResource decryption code on my machine running .NET 40. Can you confirm that it works/does not work on your side?

    Thank you. :)

    All the best,
    Genady Sergeev
    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.
  2. Luca B
    Luca B avatar
    36 posts
    Member since:
    Oct 2012

    Posted 16 Nov 2012 Link to this post

    Hi, I just did the test you asked me. I put the same machineKey in both the outer and inner web.config.
    I am still receiving those errors, and if I try to decode the Url, I get "Unable to validate data"
    If I try to decode an Url that does not generate errors, it decodes just fine, using FW 4.0.
    Thanks
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Luca B
    Luca B avatar
    36 posts
    Member since:
    Oct 2012

    Posted 21 Nov 2012 Link to this post

    Any news on this?
    Only today I received 70 of these errors!
    Thanks
  5. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 22 Nov 2012 Link to this post

    Hello Luca,

    Since the issue seems critical (these errors drive visual issue to your website, right?) and we don't have resolution to this problem yet I suggest that you turn on the CDN provider on. This will resolve all the issues because there will be no longer web resource requests but plain string requests to the CDN provider.

    All the best,
    Genady Sergeev
    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.
  6. Lalu
    Lalu avatar
    9 posts
    Member since:
    Jun 2012

    Posted 14 Aug 2013 Link to this post

    Hi,
    We have an issue like this The resource cannot be found.

    <html>
        <head>
            <title>The resource cannot be found.</title>
            <style>
             body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
             p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
             b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
             H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
             H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
             pre {font-family:"Lucida Console";font-size: .9em}
             .marker {font-weight: bold; color: black;text-decoration: none;}
             .version {color: gray;}
             .error {margin-bottom: 10px;}
             .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
            </style>
        </head>

        <body bgcolor="white">

                <span><H1>Server Error in '/Shipmate' Application.<hr width=100% size=1 color=silver></H1>

                <h2> <i>The resource cannot be found.</i> </h2></span>

                <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

                <b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. &nbsp;Please review the following URL and make sure that it is spelled correctly.
                <br><br>

                <b> Requested URL: </b>/Shipmate/WebResource.axd<br><br>

                <hr width=100% size=1 color=silver>

                <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.2012

                </font>

        </body>
    </html>
    <!--
    [HttpException]: 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)
    --><!--
    This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using &lt;customErrors mode="Off"/&gt;. Consider using &lt;customErrors mode="On"/&gt; or &lt;customErrors mode="RemoteOnly"/&gt; in production environments.-->


    Please let me know do you need more information to trace the error.



    Regards
    Shibin

  7. Lalu
    Lalu avatar
    9 posts
    Member since:
    Jun 2012

    Posted 16 Aug 2013 Link to this post

    Hi,
    We have the same issue .The resource cannot be found.
    "NetworkError: 404 Not Found - http://192.168.1.185/Registers/WebResource.axd?d=jNVdfMkQ8CFZaRWvSwpFVgGHdZOw0vfifPU8JFRYLwsgPV2abkh1K7kyOapAlw1DMVipeNal-JnwlrzpBPGioZ1l6KSFPUZX0r9nMwuppMx6UZ4-yTKBnfV2Pq8gzg1dSQx7l2DaqgfrJkePp4JPtsr22h01&t=635122602125564564"

    <html>
        <head>
            <title>The resource cannot be found.</title>
            <style>
             body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
             p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
             b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
             H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
             H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
             pre {font-family:"Lucida Console";font-size: .9em}
             .marker {font-weight: bold; color: black;text-decoration: none;}
             .version {color: gray;}
             .error {margin-bottom: 10px;}
             .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
            </style>
        </head>

        <body bgcolor="white">

                <span><H1>Server Error in '/Shipmate' Application.<hr width=100% size=1 color=silver></H1>

                <h2> <i>The resource cannot be found.</i> </h2></span>

                <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

                <b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. &nbsp;Please review the following URL and make sure that it is spelled correctly.
                <br><br>

                <b> Requested URL: </b>/Shipmate/WebResource.axd<br><br>

                <hr width=100% size=1 color=silver>

                <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.2012

                </font>

        </body>
    </html>
    <!--
    [HttpException]: 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)
    -->


    Please let me know if you need more information to trace the error.



    Regards
    Shibin

  8. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 16 Aug 2013 Link to this post

    Hello Shibin,

    Please try to debug the resource using the approach demonstrated in the Debugging ASP.NET 2.0 WebResources blog post. Then please post here what is the name of the resource that seems to be throwing exceptions.

    Regards,
    Genady Sergeev
    Telerik
    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 the blog feed now.
  9. Tom
    Tom avatar
    8 posts
    Member since:
    Jun 2011

    Posted 24 Apr 2014 Link to this post

    what is the status of this issue ?

    Ive tried all fixes/workaround except the CDN one. Which i want to avoid since our website is intranet and this fix will make it internet .....

    Regards
    Frustrated Telerik User
  10. Eirik H
    Eirik H avatar
    36 posts
    Member since:
    Mar 2010

    Posted 24 Apr 2014 in reply to Tom Link to this post

    We're also getting this now in 2014.1.2xx (can't remember the exact number right now).

    Using the decrypter it seems to be "pTelerik.Web.UI|Telerik.Web.UI.Skins.Common.Button.rbExtendedIcons24x24Dark.png"

    Just upgraded to 2014.1.403, not sure yet if that version still has that problem.
  11. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 29 Apr 2014 Link to this post

    Hello Eric,

    Unfortunately we never managed to find the root cause for this problem. It is intermittent, shows of in very rare occasions and is hardly reproducible when we try to troubleshoot it.

    However, if in your case the problem is constant and reproduces on a regular basis please open a support ticket and provide more details on the request that throws invalid web resource message. A fiddler cap log would be a helpful as well.

    Regards,
    Genady Sergeev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  12. Tom
    Tom avatar
    8 posts
    Member since:
    Jun 2011

    Posted 02 May 2014 in reply to Genady Sergeev Link to this post

    This is really a B$ answer .... so you dont have a clue whats causing this so you just lets us make a ticket ?
    Then what will happen, .... nothing ...

    Erik , do you still have the issue at hand , with the new version ?
  13. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 07 May 2014 Link to this post

    Hi Tom,

    Do you consistently reproduce the issue? If so did you try to find out which file exactly breaks up? Further could you please paste here what is the exact error message (or link a screenshot) of what you see?

    Regards,
    Genady Sergeev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  14. David
    David avatar
    37 posts
    Member since:
    Aug 2014

    Posted 14 Apr 2015 in reply to Genady Sergeev Link to this post

    Yes, I can consistantly reproduce this issue, and receive the error on each load or post-back of the below page.

     According to the decryptor 'Webresource.aspx' page posted earlier, the error resolves to "pTelerik.Web.UI.Skins|Telerik.Web.UI.Skins.Web20.Common.radGradientListSprite.png "

    Message: This is an invalid webresource request.
    Stack    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)

    Web20 skin is the default set in the webconfig file. UI.Skins DLL version 2015.1.225.45

    <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Manage_Roles.aspx.cs" Inherits="MNMilpo.Admin.Manage_Roles" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <%@ MasterType virtualpath="~/Site.Master" %>
        <link href="../MasterStyles.css" rel="stylesheet" />
        <style>
            td {
                vertical-align:top;
            }
        </style>
            <script type="text/javascript">
                function RowDblClick(sender, eventArgs) {
                    sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
                };
                function entryAdded(sender, eventArgs) {
                    var text = eventArgs.get_entry().get_text();
                    var value = eventArgs.get_entry().get_value();
     
                    document.getElementById('<%=hfpers.ClientID %>').value = value;
                    document.getElementById('<%=hftext.ClientID %>').value = text;
                };
     
                var limit = 1;  //Setting the maximum number of entries
     
                function OnClientDropDownOpening(sender, args) {
                    if (sender.get_entries().get_count() == limit) {
                        //var firstEntry = sender.get_entries().getEntry(0);
                        //sender.get_entries().remove(firstEntry);
                        args.set_cancel(true);
                    }
                };
     
                function requesting(sender, eventArgs) {
                    var context = eventArgs.get_context();
                };
                function OnClientNodeClicking(sender, eventArgs) {
                    var node = eventArgs.get_node();
     
                    node.toggle();
                    var lbl = document.getElementById('<%=lblSelUnit.ClientID %>')
                    lbl.innerHTML = node.get_text();
     
                    if (node.get_level() == 4) {
                        ExpandBnNode(node);
                    }
                }
     
                function ExpandBnNode(node) {
                    var siblings = node.get_nodes();
                    var siblingsCount = siblings.get_count();
     
                    for (var nodeIndex = 0; nodeIndex < siblingsCount; nodeIndex++) {
                        var siblingNode = siblings.getNode(nodeIndex);
     
                        siblingNode.expand();
                    }
                }
     
            </script>
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="BodyContent" runat="server">
        <div class="CentDiv">
            <table class="CentTable">
                <tr><th colspan="3">Manage User Roles</th></tr>
                <tr>
                    <td colspan="2"><h3>Select a Soldier:</h3>
                        A minumum of 3 characters is required:
                        <telerik:RadAutoCompleteBox runat="server" OnClientDropDownOpening="OnClientDropDownOpening" TextSettings-SelectionMode="Single" ID="RadAutoCompleteBox1" InputType="Token" Label="Select Domain Users" Width="350px" DropDownWidth="350px" MaxResultCount="10" AllowCustomEntry="false" EmptyMessage="LAST FIRST MI" OnClientEntryAdded="entryAdded" MinFilterLength="3"  onclientrequesting="requesting" OnEntryAdded="RadAutoCompleteBox1_EntryAdded">
                            <webservicesettings path="../dropdownnames.asmx" method="populateNewUsers" />
                        </telerik:RadAutoCompleteBox>
                    </td>
                    <td>
                        <asp:HiddenField ID="hftext" runat="server" />
                        <asp:HiddenField ID="hfpers" runat="server" />
                        <asp:Button runat="server" ID="btnHidden" Style="display: none;" OnClick="btnHidden_Click" />
                    </td>
                </tr>
                <tr>
                    <td>Selected person info<br />
                        <asp:Label ID="tbxPersId" runat="server" /><br />
                        <asp:Label ID="tbxName" runat="server" /><br />
                    </td>
                    <td colspan="2">
                        <telerik:RadGrid ID="grdUserRoles" runat="server" AutoGenerateColumns="false" AutoGenerateDeleteColumn="true" OnItemCommand="grdUserRoles_ItemCommand">
                            <MasterTableView ShowHeadersWhenNoRecords="true" CommandItemDisplay="Bottom" DataKeyNames="intPersId, strRoleName">
                                <CommandItemSettings ShowAddNewRecordButton="false" />
                                <Columns>
                                    <telerik:GridBoundColumn DataField="strRoleName" HeaderText="Profile" />
                                    <telerik:GridBoundColumn DataField="strRole" HeaderText="Role" />
                                    <telerik:GridBoundColumn DataField="strReportSequence" HeaderText="Role RSC" />
                                    <telerik:GridBoundColumn DataField="UPC" HeaderText="UIC" />
                                    <telerik:GridBoundColumn DataField="UNAME" HeaderText="Unit Name" />
                                    <telerik:GridBoundColumn DataField="strApprovedBy" HeaderText="Approved By" />
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </td>
                </tr>
                <tr>
                    <td>
                        <h3>
                            Select a Role:
                        </h3><br />
                        <telerik:RadListBox ID="lbxRoles" runat="server" CheckBoxes="false" ShowCheckAll="false" Width="300px" Height="300px"  SelectionMode="Single">
                            </telerik:RadListBox>
                    </td>
                    <td>
                        <h3>Select a Unit: <asp:Label ID="lblSelUnit" runat="server"  Text="NONE" /></h3><br />
                        <telerik:RadTreeView ID="RoleOrgTree" runat="server" LoadingStatusPosition="BeforeNodeText" DataFieldID="ITEMID" DataFieldParentID="PARENTID" DataTextField="UPC" DataValueField="ITEMID" OnNodeDataBound="orgTree_NodeDataBound" BorderColor="Black" BorderStyle="Solid" Height="400px" ShowLineImages="true" Width="250px" OnClientNodeClicking="OnClientNodeClicking">
                        <DataBindings>
                            <telerik:RadTreeNodeBinding Expanded="True"></telerik:RadTreeNodeBinding>
                        </DataBindings>
                        </telerik:RadTreeView>
                    </td>
                    <td><br />
                        <h3>Profile Name:</h3>  <asp:TextBox ID="tbxProfileName" runat="server" Columns="50" Text="Enter a Distinct Profile Name" /><br />
                         <br />
                        <asp:RequiredFieldValidator ID="fieldValName" runat="server" ErrorMessage="A distinct Profile name is required!" ControlToValidate="tbxProfileName" ValidationGroup="VAL" InitialValue="Enter a Distinct Profile Name" ForeColor="Red" Display="Dynamic" SetFocusOnError="true">
                        </asp:RequiredFieldValidator>
                         <br />
                         <br />
                        <asp:Button ID="btnAddRole" runat="server" OnClick="btnAddRole_Click" Text="Add Role to User" Enabled="false" CausesValidation="true" ValidationGroup="VAL" />
                    </td>
                </tr>
            </table>
        </div>
    </asp:Content>

     

    This error seems to only exist on pages where the RadAutoCompleteBox is calling a webservice.

     

    Master page contains a RadMenu, two dropdowns and a couple of labels. Along with the RadScriptManager and RadClientExportManager

     

     

  15. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 17 Apr 2015 Link to this post

    Hello David,

    Is it possible to open a support ticket and attach a sample that reproduces the problem there so that we can take a look?

    We haven't yet received a sample that reproduces the issue consistently therefore this can be of great help in troubleshooting the problem further.

    Regards,
    Genady Sergeev
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  16. David
    David avatar
    37 posts
    Member since:
    Aug 2014

    Posted 17 Apr 2015 Link to this post

    I would love to.. but consistancy got shot, drug out the back and hung out to dry.

    I updated my production code error handling to decrypt the web resource URL so our logs and automated error reporting shows the plain-text decrypted response.

     

    And I haven't seen this error pop up since on either of the applications that had/have this issue.

     I have a feeling this is caused somewhere in the IIS cache/disk processing in a multi-user environment.

     

     

     

  17. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 23 Apr 2015 Link to this post

    Hello David,

    Did you by any chance set static decrypt key? Setting static decrypt key will likely result in resolving the problem because it will ensure one and the same key is used to decrypt the resource urls.

    Regards,
    Genady Sergeev
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  18. David
    David avatar
    37 posts
    Member since:
    Aug 2014

    Posted 23 Apr 2015 Link to this post

    Genady, you lost me there.

      I have had the 'webresource not found' error pop-up randomly over the last 5 days, but not consistantly. I have two methods for decrypting the resource url; one is from the previous zip of WebResource.aspx which works perfectly.

    The other is built into the applications error handling, which intercepts the error and sends an email to the admin with the error details. This process, which uses the same decrypt procedure as the WebResource.aspx, fails as the resource url 'is not a Base64 encoded string' .

    Yet when I copy the URL from the resulting email and decrypt using the WebResource.aspx... it decrypts. 

    Still suspect that the original invalid webresource request stems from missing or corrupted dll on the IIS as subsequent clean reloads have eliminated the error for a time.

  19. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 28 Apr 2015 Link to this post

    Hi Eric,

    Indeed, we know that cleaning the temporary files and the cache solves the issues. I think that the safest bet here is ask the admin to set static decryption key in the machine.key section in the web.config.

    The decryption key is used to decrypt the webresource gibberish. If set to static it will eliminate the chances that upon some unknown event IIS will regenerate it and subsequently break cached resources.

    Regards,
    Genady Sergeev
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  20. David
    David avatar
    37 posts
    Member since:
    Aug 2014

    Posted 01 May 2015 Link to this post

    Its back.

     " Message: This is an invalid webresource request.
    Stack    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)

    Web Resource: pTelerik.Web.UI.Skins|Telerik.Web.UI.Skins.Web20.Common.radGradientListSprite.png "

     Walked through the steps at Telerik Web Resource Troubleshooting, verified that the server date/time per Stack Overflow answer, verified the skins dll on the server is the most current version. Single IIS, no concerns about the machine decryption key.
    Still receive one error per selection change in the list box.

     

    Please verify that this embedded resource is properly registered in the DLL.

     

    Error occurs on selection of an item in the below listbox:

    <telerik:RadListBox ID="lbxRoles" runat="server" CheckBoxes="false" ShowCheckAll="false" Width="300px" Height="300px"  SelectionMode="Single">
      
                            </telerik:RadListBox>

  21. David
    David avatar
    37 posts
    Member since:
    Aug 2014

    Posted 01 May 2015 in reply to David Link to this post

    Changed skin in use on the RadListBox to Telerik vice Web20. Have not received the webresource error since.

     

    <telerik:RadListBox ID="lbxRoles" runat="server" CheckBoxes="false" ShowCheckAll="false" Width="300px" Height="300px"  SelectionMode="Single" Skin="Telerik">
        </telerik:RadListBox>

  22. Sascha
    Sascha avatar
    3 posts
    Member since:
    Jul 2011

    Posted 07 May 2015 in reply to David Link to this post

    We have the same issue here with Web20 skin and RadToolBar.

     still not fixed in 2015.1.401.45 (we are currently on 2014.3.1209.45)

     looking at the Skin ToolBar.Web20.css lines 79-82

    .RadToolBarDropDown_Web20 .rtbWrap {
      border-radius: 3px;
      *color: #000000;
      background-image: url('Common/radGradientListSprite.png') \9; }

    but there is no Common/radGradientListSprite.png.

     It is also referenced in RibbonBar.Web20.css line 115

  23. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 08 May 2015 Link to this post

    Hi Sascha,

    The fix will be available in the official Q2 2015 release: http://feedback.telerik.com/Project/108/Feedback/Details/149794-fix-radgradientlistsprite-png-for-the-web20-skin-is-missing. The last internal build should also have it.

    Regards,

    Marin Bratanov
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017