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

AsyncUpload with Disable Embedded Scripts

2 Answers 152 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
mohmedsadiq modan
Top achievements
Rank 1
mohmedsadiq modan asked on 13 Dec 2011, 03:36 PM
Hello, I have added asyncupload control in page and set EnableEmbeddedScripts="false", for this I have to add related scripts in file. So I have added like below <asp:ScriptManager runat="server" ID="RadScriptManager1" AsyncPostBackTimeout="18000">
        <Scripts>
            <%--RadWindow--%>
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Core.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Upload/RadProgressManager.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/jQuery.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/jQueryPlugins.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Upload/RadUpload.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/AsyncUpload/RadAsyncUploadScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/PopUp/PopUpScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Upload/RadProgressArea.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Animation/AnimationScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Window/RadWindowScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Window/RadWindowManager.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/TouchScrollExtender.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Ajax/Ajax.js" />
            <%--RadSplitter--%>
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Splitter/RadSplitterScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Splitter/RadSlidingZoneScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Navigation/NavigationScripts.js" />
            <%--RadPanelBar--%>
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/PanelBar/RadPanelBarScripts.js" />
            <%--RadComboBox--%>
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/ComboBox/RadComboBoxScripts.js" />
            <%--RadTreeView--%>
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/TreeView/RadTreeViewScripts.js" />
            <%--RadContextMenu--%>
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Menu/RadMenuScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Menu/ContextMenu/RadContextMenuScripts.js" />
            <%--noderenderer--%>
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Grid/RadGridScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Button/RadButton.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Scrolling/ScrollingScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/TabStrip/RadTabStripScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/TabStrip/MultiPage/RadMultiPageScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Input/TextBox/RadInputScript.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Input/DateInput/RadDateInputScript.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Calendar/RadCalendarCommonScript.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Calendar/RadCalendarScript.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Calendar/RadDatePicker.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Calendar/RadPickersPopupDirectionEnumeration.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Editor/RadEditor.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/LayoutBuilder/LayoutBuilderEngine.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Spell/SpellCheckService.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Editor/Modules.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Dialogs/RadDialogOpenerScripts.js" />
        </Scripts>
    </asp:ScriptManager> Upload control code ===================== <telerik:RadAsyncUpload ID="rubg" runat="server" 
     EnableEmbeddedScripts="false" EnableInlineProgress="false" ProgressHandlerUrl="">
</telerik:RadAsyncUpload> When I load the page then it is loaded successfully, but when I click on upload > then select Image -> then process image show in red and it will display error in error console as below POST http://localhost/enigma/Telerik.Web.UI.WebResource.axd?type=rau 404 (Not Found) Uncaught Error while uploading, HTTP Error code is: 404

Please Help me out this issue.

Thanks in advance,
Mohmedsadiq Modan

2 Answers, 1 is accepted

Sort by
0
mohmedsadiq modan
Top achievements
Rank 1
answered on 15 Dec 2011, 10:45 AM
Hello,

Any one have solution for this... Please help me out for this problem.

Thanks,
Mohmedsadiq Modan
0
Bozhidar
Telerik team
answered on 16 Dec 2011, 05:06 PM
Hello Mohmedsadiq Modan,

It looks like you haven't included the WebResource.axd in your web.config. Try adding the following declarations in the web.config file:

  - in the system.web tag, add:
<httpHandlers>
    <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" validate="false"/>
<httpHandlers>
...

  - in the system.webServer tag, add:
<system.webServer>
  <handlers>
    <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/>
  </handlers>
...

This should solve the problem.

Greetings,
Bozhidar
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
AsyncUpload
Asked by
mohmedsadiq modan
Top achievements
Rank 1
Answers by
mohmedsadiq modan
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or