gpt4 book ai didi

web-services - Azure System.Web.Services.Protocols.SoapException

转载 作者:行者123 更新时间:2023-12-03 04:38:05 35 4
gpt4 key购买 nike

我在服务器上使用 Web 服务,它工作正常。现在我想将我的网站转移到 Azure 服务器。目前,我在 azure 上创建了一个免费网站来测试它。

它是一个 Silverlight 应用程序,调用服务来创建报告。

当我调用此服务时,出现以下错误

错误:

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>System.Web.Services.Protocols.SoapException: Server was unable to process request. ---&gt; System.ArgumentException: Parameter is not valid.
at System.Drawing.Graphics.GetHdc()
at C1.Util.FontSubSet.#e.#cA.#Kn(FontSubSet owner, String tableName)
at C1.Util.FontSubSet.GetFontTableStream(String name)
at C1.Util.FontSubSet.#TDd()
at C1.Util.FontSubSet.Init()
at C1.Util.FontSubSet.GetFontSubSet(FontKey fk)
at C1.C1Preview.C1PrintDocument.#ydd(String s, String fontName, Boolean fontBold, Boolean fontItalic, Boolean updateDocumentFonts)
at C1.C1Preview.C1PrintDocument.#zdd(String s, String fontName, Byte fontCharSet, FontStyle fontStyle)
at C1.C1Preview.RenderText.InternalResolvingFinished()
at C1.C1Preview.RenderObject.ResolvingFinished()
at C1.C1Report.Layout.RenderDirect(ILengthCacheProvider lcp, RenderObject ro, RenderFragment rf, Double x, Double y, Double width, Double height)
at C1.C1Report.Layout.RenderDirect(ILengthCacheProvider lcp, RenderObject ro, RenderFragment rf, RectangleD bounds)
at C1.C1Report.Field.#RLd(ExportFilter export, Layout layout, RectangleD bounds, String str, Boolean rtf, Double lineWidthTw, Int32 firstCharIndex, Int32 length)
at C1.C1Report.Field.Render(Layout layout, Double x, Double y, Boolean measure)
at C1.C1Report.Field.Render(Layout layout, Double x, Double y)
at C1.C1Report.Section.Render(Boolean keepPage, Group ownerGroup)
at C1.C1Report.Layout.#fMd(Section s)
at C1.C1Report.Layout.StartDoc()
at C1.C1Report.C1Report.RenderFirstPass(Boolean releaseDocument)
at C1.C1Report.C1Report.#fNd()
at C1.C1Report.C1Report.#dNd(ExportFilter filter, Boolean reuse)
at C1.C1Report.C1Report.RenderToStream(Stream stream, FileFormatEnum fmt, String idPrefix, String fileName)
at C1.C1Report.C1Report.RenderToStream(Stream stream, FileFormatEnum fmt)
at Gestion1.Web.RapportS.GetReportCommunique()
--- End of inner exception stack trace ---</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope> `

最佳答案

根据提供的堆栈跟踪,您似乎正在尝试从服务器上的 ComponentOne 运行报告工具。

此问题是由于对 Azure 网站实例出于安全和性能原因而限制使用的 API 的访问造成的。 native GDI 渲染方法属于这些受限制的 API 之一。

请参阅 Jim Cheshire 在 this post 末尾发表的帖子。

除非放宽这些限制(也可能不会放宽),否则您的选择是将服务移至云服务实例,或移至不使用 native GDI 方法进行渲染的另一个组件。

关于web-services - Azure System.Web.Services.Protocols.SoapException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15979420/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com