ImageResizerで作成した小さなテストプロジェクトのデプロイメントに問題があります。ImageResizerデプロイメント統合モード
これは基本的に、いくつかのhtmlページとImageResizerプラグインで使用できる最も単純なバージョンです。
Visual Studio 2013から実行するとローカルで動作しますが、サーバーに公開した後は、詳細エラーメッセージが有効な場合でも500エラーが表示されます。
resizer.debug.ashxのページが表示されないので、これは私が推測するような非常に基本的なセットアップの問題です。
私のweb.configファイルには、(VSで、サーバー上の両方)のようになります。
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="resizer" type="ImageResizer.ResizerSection,ImageResizer" />
</configSections>
<resizer>
<!-- Unless you (a) use Integrated mode, or (b) map all reqeusts to ASP.NET,
you'll need to add .ashx to your image URLs: image.jpg.ashx?width=200&height=20 -->
<pipeline fakeExtensions=".ashx" />
<plugins>
<!-- <add name="DiskCache" /> -->
<!-- <add name="PrettyGifs" /> -->
</plugins>
<!--<sizelimits imageWidth="0" imageHeight="0" totalWidth="4096" totalHeight="4096" totalBehavior="throwexception"/>-->
</resizer>
<system.web>
<compilation debug="true" targetFramework="4.6.1"/>
<httpRuntime targetFramework="4.6.1"/>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<!-- This is for IIS7+ Integrated mode -->
<add name="ImageResizingModule" type="ImageResizer.InterceptModule"/>
</modules>
</system.webServer>
</configuration>
私は4.6.1でサーバー(Windows Server 2012R2)にインストールされていることを確認し、IIS 8.5ことをしていますアプリケーションプールは統合された.net CLRバージョン4.0.30319に設定されています。
クラシックモードでも試してみましたが、動作しません。