[OPEN] [#1439] [4.2.0] C# MVC UI under Aria Theme will cause WebResource.axd, The resource cannot be found error

Page 1 of 2 12 LastLast
  1. #1

    [OPEN] [#1439] [4.2.0] C# MVC UI under Aria Theme will cause WebResource.axd, The resource cannot be found error

    Hello,

    Please check for us that when we use Ext.NET 4.1.0 under MVC4 with Aria Theme will cause following error.

    Error Message from Browser:
    Click image for larger version. 

Name:	2017-02-09 10_50_55-陸軍通資電勤務管理&#31.png 
Views:	73 
Size:	30.4 KB 
ID:	24841

    The Browser Developer Network Transaction:
    Click image for larger version. 

Name:	2017-02-09 11_00_32-Developer Tools - http___localhost_57511_.png 
Views:	141 
Size:	35.1 KB 
ID:	24842

    @using ResMgmt.Helpers;
    @model ResMgmt.Models.BrandModelModel
    @{
        MvcResourceManager.RegisterGlobalScript("~/Scripts/Settings/MIBrandModelMgmt.js");
        ViewBag.Title = "å»*牌型號è¨*定";
        var X = Html.X();
    
        var gpItemSet = X.GridPanel()
            .ID("PanelItemSetGrid")
            .AnchorHorizontal("80%")
            .Title("å»*牌列表")
            .Region(Region.West)
            .Width(300)
            .Split(true)
            .ForceFit(true)
            .TopBar(
                X.Toolbar()
                    .Items(
                        X.Button()
                            .Text("新增")
                            .Icon(Icon.Add)
                            .Width(80)
                            .UI(UI.Success)
                            .Handler("handlerMIBrandModelMgmt.onCreate();"),
                        X.Button()
                            .Text("刪除")
                            .Icon(Icon.Delete)
                            .Width(80)
                            .UI(UI.Success)
                            .Handler("handlerMIBrandModelMgmt.onDelete();"),
                        X.Button()
                            .Text("儲å*˜")
                            .Icon(Icon.Disk)
                            .Width(80)
                            .UI(UI.Success)
                            .Handler("handlerMIBrandModelMgmt.onSave();")
                )
            )
            .BottomBar(
                X.PagingToolbar()
                    .HideRefresh(true)
            );
    
    
    }
    
    @(
        X.Panel()
            .ID("PanelBrandModelMgmt")
            .Closable(true)
            .AutoScroll(true)
            .Defaults(new Parameter("Margin", 10))
            .Title("通信器材å»*牌型號è¨*定")
            .Layout(LayoutType.Fit)
            .Items(
                X.Container()
                    .Layout(LayoutType.Border)
                    .Defaults(new Parameter("Margin", 5))
                    .Items(
                        gpItemSet
                    )
            )
    )
    The Partial View Action Codes
    public ActionResult MIBrandModelMgmt(string containerId)
            {
                var result = new Ext.Net.MVC.PartialViewResult
                {
                    ViewName = "MIBrandModelMgmt",
                    ContainerId = containerId,
                    RenderMode = RenderMode.AddTo
                };
    
                BrandModelModel model = new BrandModelModel();
    
                model.EquipTypes = _uom.IrCodes
                    .GetEquipTypes()
                    .ToList()
                    .Select(c => new CodeModel(c))
                    .ToList();
                result.Model = model;
    
                Ext.Net.X.GetCmp<TabPanel>(containerId).SetLastTabAsActive();
    
                return result;
            }
    We also found Button.Icon & Button.UI will also cause another error under Ext.NET 4.2.0. We will post it in another thread.

    Thanks your help,
    Ted Chen
    Last edited by fabricio.murta; Feb 20, 2017 at 1:52 PM.
  2. #2
    Hello Ted Chen! Welcome to Ext.NET forums!

    We are not sure what could be happening, we can't reproduce the issue here even if we stripped the script references, the immediate issues on the sample you provided and try running it locally.

    Is it required that page to be in a partial view? Please provide a simplified code sample demonstrating how to reproduce the issue.

    The code sample you provide should include only the minimum amount of code required to reproduce the issue. Code unrelated to the issue is to be removed. Anyone should be able to copy + paste your sample into a local Visual Studio test project and run without having to make modifications (of course, namespaces modifications may be necessary, but we can handle those -- if not, we let you know).

    Tips for creating simplified code samples

    If Exceptions or syntax errors are thrown when testing your code sample, we'll let you know so you can revise your original sample. Then we'll review again with the updated sample.

    When posting your code samples in the forums, please paste that sample within [CODE] tags. The [CODE] tags will add formatting and syntax highlighting to your sample.

    The following two forum posts provide many excellent tips for posting in the forums:

    1. More Information Required
    2. Forum Guidelines
    Fabrício Murta
    Developer & Support Expert
  3. #3
    OMG!!! We also cannot reproduce that problem right now. Because we have change our layout these days from partial view model to the mode which every job have its own page.

    but we found that although the brower wont popup that "The resource cannot be found" error window. the developer tool of browser still have following error.

    Click image for larger version. 

Name:	2017-02-15 17_00_27-Developer Tools - http___localhost_57511_AssetMgmt_MIVREquipInstallationMgmt.jpg 
Views:	117 
Size:	99.5 KB 
ID:	24864

    don't know does that error message matter, important??
    Last edited by u8621011; Feb 15, 2017 at 8:08 AM. Reason: we cannot reproduce too
  4. #4
    Hello @u8621011!

    Sorry, no clue where this WebResource.axd request is coming from. Not even sure this is inherent from Ext.NET at all. Unfortunately, the previous post for us is still actual, we would need to be able to reproduce the issue in our side so we can dig thru it and provide you a solution, sorry.

    You probably should consider creating a test project for yourself and trying to reproduce the page you are having issues with there, with minimal contents. Adding features one by one and using simple static data instead of actual database data. Please browse our examples explorers (WebForms, MVC), you'll most likely will find one example from the explorer to base your page in the clean project.

    Then you'll probably find the issue as you are trying to rewrite the problem -- or reproduce it in a way that can be easily reproducible, allowing us to effectively help you out. Please, again, review the forum threads mentioned in our last post above.
    Fabrício Murta
    Developer & Support Expert
  5. #5
    Fabricio,

    We found that the browser error does matter because the button will disappear.


    Theme Default:
    Click image for larger version. 

Name:	2017-02-16 11_35_14-localhost_57511_Settings_MIBrandModelMgmt.png 
Views:	86 
Size:	10.1 KB 
ID:	24867

    Theme Aria:
    Click image for larger version. 

Name:	2017-02-16 11_34_20-localhost_57511_Settings_MIBrandModelMgmt.png 
Views:	109 
Size:	7.7 KB 
ID:	24868

    We have prepared a zipped project files for you to debug but where the file should be sent to?

    The compacted project files also includes the cshtml view to help you debug another issue I mentioned here: http://forums.ext.net/showthread.php...chrome-browser

    Ted / Datacom
  6. #6
    Hello!

    Sorry, we recently had some issues with trying to run customers' projects on our side and we had to decide making it a rule not to deal with user projects. That's not cause we don't just want it. The reason is because in the full project there will be so many distractions to the main problem that we usually are not able to tackle the problem itself. I hope you understand, we really want to help you and I believe, once we sort out this "simple sample" approach, the next issues you get will be much easier to come up with test cases.

    So I'll try to show you a sample based on the screenshot you provided, so that you can run it on your test project, adjust it to make the bug reproducible, and post back with the reviewed version reproducing the issue. This is usually a bad idea because it is very hard to guess your scenario, many times even roughly.

    Another important thing is, please use Ext.NET 4.2.0. Since we released 4.2.0 publicly, the 4.1.0 version is "frozen" and, if any bug happens on both 4.1.0 and 4.2.0, they will be making it to 4.2 only. 4.1.0 been out long enough not to have any major issues that would justify a fix exclusively there -- besides, the 4.1 to 4.2 upgrade is not charged for 4.x license holders, so no point (at first) sticking to 4.1. If any issues between (which is unlikely), we will do our best to make amends to it so you can run 4.2.

    I will work on what I think would be a good test case on your scenario and soon will post a follow-up with it.
    Fabrício Murta
    Developer & Support Expert
  7. #7

    Ext.NET 4.2.0 also has the same problem

    Fabricio,

    Ext.NET 4.2.0 also has this problem.

    The initiator of WebResource.axd is

    http://localhost:57511/uipack/aria/extui-aria-all-css3-embedded-css/ext.axd?v=4.2.0
    the screenshot of chrome deveopler

    Click image for larger version. 

Name:	2017-02-17 09_11_46-Developer Tools - http___localhost_57511_Settings_MIBrandModelMgmt.png 
Views:	52 
Size:	91.7 KB 
ID:	24869
  8. #8
    Hello @u8621011! Sorry, you pasted your whole project above it seems and including the Ext.NET license key. This is like sharing your password out in the public.

    Your code is really really long. Are you sure this is the minimum amount of code necessary to reproduce the issue? I mean, that's a needle in a haystack to find the issue, lots of distractions and unrelated code. Web.config and global.asax should not be needed at all to reproduce an issue in the vast majority of cases. At least this has been my experience in about two years here and the company's for since 2008 at least.

    Thanks for trying it with Ext.NET 4.2.0, will give your report my best shot and come back to you shortly!
    Fabrício Murta
    Developer & Support Expert
  9. #9
    Check this out this code sample:

    controller:

    public ActionResult c61754_ButtonUIIconMissRes() { return View(); }
    View c61754_ButtonUIIconMissRes.cshtml:

    @{
        Layout = null;
        var X = Html.X();
    }
    
    <!DOCTYPE html>
    
    <html>
    <head>
        <meta name="viewport" content="width=device-width" />
        <title>Index</title>
    
    </head>
    <body>
        <div>
            @X.ResourceManager().Theme(Theme.Aria)
    
            @(
                X.GridPanel()
                    .ID("GridPanel1")
                    .Title("My Grid Panel")
                    .Width(600)
                    .Height(400)
                    .TopBar(
                        X.Toolbar()
                            .Items(
                                X.Button().Text("Simple Button"),
                                X.Button().Text("UI Button").UI(UI.Danger),
                                X.Button().Text("Icon Button").Icon(Icon.Add),
                                X.Button().Text("Icon + UI Button").UI(UI.Warning).Icon(Icon.Exclamation)
                            )
                    )
            )
    
        </div>
    </body>
    </html>
    In this sample the "UI Button" and "Icon + UI Button" are missing. If changing the theme to any other, they are displayed. So, is this the issue you reported in this thread? I see no icon-specific issue though, only when using UI, which is not supported by the Aria theme. We'll proceed with this issue after you confirm whether this is or not the issue you need help with.
    Fabrício Murta
    Developer & Support Expert
  10. #10
    Fabricio,

    That's the issue I report and sorry I forget to drop out the license line @@~

    Ted
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] webresource.axd not found
    By Gisystems in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 29, 2014, 8:01 PM
  2. Replies: 13
    Last Post: Nov 26, 2013, 11:39 AM
  3. button not found
    By maxdiable in forum 1.x Help
    Replies: 1
    Last Post: Mar 28, 2012, 8:49 AM
  4. [CLOSED] Slate Theme - Invalid web resource request error
    By vali1993 in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: Oct 20, 2011, 11:30 AM
  5. Replies: 1
    Last Post: Sep 20, 2011, 6:02 AM

Posting Permissions