【问题标题】:save pdf problem with Silverlight from Windows Azure从 Windows Azure 使用 Silverlight 保存 pdf 问题
【发布时间】:2011-09-26 05:35:42
【问题描述】:

您好,我正在使用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;媒体中心 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,对象状态) 在 System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult) 在 InspireED.StudentHome.View.NotesTab.Notes.PrintGetResponse(IAsyncResult asynchronousResult) 在 System.Net.Browser.BrowserHttpWebRequest.c_DisplayClassd.b_b(Object state2) 在 System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(对象状态) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback 回调,对象状态,布尔 ignoreSyncCtx) 在 System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() 在 System.Threading.ThreadPoolWorkQueue.Dispatch() 在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() 线路:1 字符:1 代码:0 网址:http://mystorageaccount.cloudapp.net/somappname.studenttestpage.aspx

【问题讨论】:

    标签: silverlight azure-storage


    【解决方案1】:

    由于您没有发布任何代码,我只能猜测问题所在。但根据this 页面,这可能是由于。

    删除容器时,至少30秒内不能创建同名容器;如果服务仍在处理请求,则容器可能不可用超过 30 秒。在删除容器时,尝试创建同名容器将失败,状态码为 409(冲突),服务返回指示容器正在被删除的附加错误信息。删除容器时,所有其他操作(包括对容器下的任何 blob 的操作)都将失败并返回状态码 404(未找到)。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-08-19
      • 1970-01-01
      • 2012-09-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-05
      相关资源
      最近更新 更多