2

Jasperserver に保存されているレポートをダウンロードして表示する MVC2 .Net Web アプリを構築しています。Jasperserver Web サービスにアクセスするための 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 を変更する必要がありますか?

どんな助けでも大歓迎です!

4

1 に答える 1

2

はい、MVC アプリの web.config に構成を追加する必要があります。

リンクされた投稿を読み直し、いくつかの実験を行った後、主にコピー/貼り付けに関連する問題が発生しました。

私のライブラリの app.config の関連部分は次のとおりです。

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>        
        <section name="microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </configSections>
  <microsoft.web.services2>
    <messaging>
      <maxRequestLength>-1</maxRequestLength>
    </messaging>
  </microsoft.web.services2>
</configuration>

そして、MVC アプリの web.config の関連部分:

<?xml version="1.0"?>
<configuration>
      <configSections>
        <section name="microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      </configSections>

      <microsoft.web.services2>
        <messaging>
          <maxRequestLength>-1</maxRequestLength>
        </messaging>
      </microsoft.web.services2>
    </configuration>
于 2011-01-14T01:45:23.933 に答える