作成日: 2024/11/01 最終更新日: 2025/11/12
文書種別
不具合
状況
修正済み
詳細
Web.configファイルに以下の設定が含まれる場合、WebViewerを表示できません。
<globalization responseEncoding="Shift_JIS" />
ブラウザの開発者ツールのコンソールに以下のエラーが表示されます。
Uncaught SyntaxError: Invalid regular expression flags
Uncaught ReferenceError: GrapeCity is not defined
回避方法
SP2 (18.2.0.0) で修正済み
※以前の回避方法
<configuration>の配下に<location>を追加し、WebViewerを配置しているWebフォームのみ設定を変更してください。
<configuration>
<system.web>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.8" />
<httpRuntime targetFramework="4.8" />
<globalization responseEncoding="Shift_JIS" />
</system.web>
<location path="WebForm1.aspx">
<system.web>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
</system.web>
</location>
~省略~
</configuration>