从Windows Azure保存Silverlight的pdf问题

时间:2011-09-26 05:35:43

标签: silverlight azure-storage

您好我正在使用http://silverlightpdf.codeplex.com/代码从我在Windows Azure中托管的silverlight应用程序中打印pdf。

我能够从本地/开发PC保存pdf,但是当我尝试从Azure服务器保存pdf时,它会出现以下错误。

网页错误详情

用户代理:Mozilla / 4.0(兼容; MSIE 8.0; Windows NT 6.1; Trident / 4.0; GTB7.0; EasyBits GO v1.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; FDM) 时间戳:星期五,2011年8月19日04:24:34 UTC

消息:Silverlight应用程序中的未处理错误远程服务器返回错误:NotFound。在System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod,Object state)    在System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)    在InspirED.StudentHome.View.NotesTab.Notes.PrintGetResponse(IAsyncResult asynchronousResult)    在System.Net.Browser.BrowserHttpWebRequest。<> c_ DisplayClassd.b _b(对象state2)    在System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(对象状态)    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean ignoreSyncCtx)    在System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()    在System.Threading.ThreadPoolWorkQueue.Dispatch()    在System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() 线:1 Char:1 代码:0 URI:http://mystorageaccount.cloudapp.net/somappname.studenttestpage.aspx

1 个答案:

答案 0 :(得分:0)

由于您没有发布任何代码,我只能猜出问题是什么。但根据this页面,它可能是由于。

  

删除容器时,至少30秒内无法创建具有相同名称的容器;如果服务仍在处理请求,则容器可能不会超过30秒。在删除容器时,尝试创建同名容器将失败,状态代码为409(Conflict),服务返回指示正在删除容器的其他错误信息。当容器被删除时,所有其他操作(包括容器下任何blob上的操作)都将失败,状态代码为404(Not Found)。

如果没有,请发布您的代码示例。