Problems in throw"Error while uploading, "+i;

2 posts, 0 answers
  1. Pedro
    Pedro avatar
    2 posts
    Member since:
    May 2012

    Posted 01 Jun 2012 Link to this post


    In my develop machine everything works fine, but when i put in test server

    I have this error:

    if(!e){throw"Error while uploading, "+i;

    The pop error messages are: 

    SCRIPT5022: Unhandled Error in Silverlight Application The remote server returned an error: NotFound.   at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
       at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
       at UploadPrototype.MainPage.ProcessResponse(IAsyncResult asyncResult)
       at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassd.<InvokeGetResponseCallback>b__b(Object state2)
       at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() 
    eval code (526), line 1 character 1

    Any ideias?
    I folowing this 2 threads but with no success:

    http://www.telerik.com/community/forums/aspnet-ajax/async-upload/custom-handler-scenario-throwing-an-error.aspx 
    http://www.telerik.com/community/forums/aspnet/general-discussions/problem-in-async-upload.aspx 

    my web config is:


    <system.web>
    <httpRuntime  requestValidationMode="2.0" />
     
        <httpHandlers>
    <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />
    <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>
    <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler,Telerik.Web.UI"/>
    </httpHandlers>




    AND



    <system.webServer>
     <modules runAllManagedModulesForAllRequests="true" />
     <validation validateIntegratedModeConfiguration="false" />
        <handlers>
    <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <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="RadUploadProgressHandler" verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler,Telerik.Web.UI"/>
    <add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode"/>
    </handlers>



  2. Pedro
    Pedro avatar
    2 posts
    Member since:
    May 2012

    Posted 01 Jun 2012 Link to this post

    I find the solution where:

    http://www.telerik.com/community/forums/aspnet-ajax/async-upload/upload-file-not-working-unhandled-errors.aspx 

    It needs to give write permission to the folder App_Data.

    Thanks,

    Pedro
Back to Top