通过 C# DLL 从 JasperServer Web 服务下载大型 DIME 附件的配置
我正在构建一个 MVC2 .Net Web 应用程序来下载和查看存储在 Jasperserver 上的报告。我构建了一个 Web 服务客户端库来访问 Jasperserver Web 服务。 Jasper 使用 DIME 附件,因此我使用 Microsoft.Web.Services2。
我的 MVC2 应用程序可以很好地处理较小的报告,但是当我尝试下拉 html 格式的 90 页报告(~9mb)时,我遇到了此错误:
WSE352: The size of the record exceed its limit.
帖子 此处 显示了我的 app.config 设置的以下内容客户端应用程序:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebSer vicesConfiguration, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</sectionGroup>
</configSections>
<applicationSettings>
...
</applicationSettings>
<microsoft.web.services2>
<messaging>
<maxRequestLength>-1</maxRequestLength>
</messaging>
</microsoft.web.services2>
</configuration>
进行这些更改后,我仍然遇到相同的错误“WSE352”。我的问题是,上述对我的库的 app.config 更改是否足以让我的 MVC 应用程序下载大型报告?或者我是否需要更改 MVC 应用程序的 web.config?
任何帮助将不胜感激!
I'm building a MVC2 .Net web app to download and view reports stored on Jasperserver. I've built a web service client library to access the Jasperserver web service. Jasper works with DIME attachments so I'm using Microsoft.Web.Services2.
My MVC2 app works fine with smaller reports but when I try and pull down a 90 page report in html (~9mb) I run into this error:
WSE352: The size of the record exceed its limit.
The post here shows the following for app.config settings of my client app:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebSer vicesConfiguration, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</sectionGroup>
</configSections>
<applicationSettings>
...
</applicationSettings>
<microsoft.web.services2>
<messaging>
<maxRequestLength>-1</maxRequestLength>
</messaging>
</microsoft.web.services2>
</configuration>
After making these changes I'm still running into the same error "WSE352". My question is should the above app.config changes to my library be sufficient for my MVC app to download large reports? Or do I need to make changes to the web.config of my MVC app?
Any help would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您确实需要将配置添加到 MVC 应用程序的 web.config 中!
重新阅读链接的帖子并做了一些实验后,我的问题主要与复制/粘贴相关。
以下是我的库中 app.config 的相关部分:
以及 MVC 应用程序的 web.config 的相关部分:
Yes, you do need to add configurations to the web.config of your MVC app!
After re-reading the linked post and doing some experiments my problems where mostly copy/paste related.
Here is the relevent parts of the app.config in my library:
And the relevant parts of web.config of the MVC app: