ImageResizing在服务器上不起作用

时间:2018-06-26 07:20:34

标签: asp.net-mvc image-resizing imageresizer

我在.net mvc网站上使用ImageResizing库来适应图像的大小

在本地主机上的工作正常,我在拖车服务器上上传了网站

其中之一不起作用

此链接无效:

Image not work as expected

这是其他主机正常工作: Image Correct size

我确认dll文件已上传

这是Web配置中所需的脚本:

<system.web>
<customErrors mode="Off"></customErrors>
<authentication mode="None" />
<compilation targetFramework="4.0" />
<httpRuntime targetFramework="4.0" />
<httpModules>
  <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
  <add name="ImageResizingModule" type="ImageResizer.InterceptModule" />
</httpModules>
</system.web>
<system.webServer>
<modules>
  <remove name="FormsAuthentication" />
  <remove name="ApplicationInsightsWebTracking" />
  <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
  <add name="ImageResizingModule" type="ImageResizer.InterceptModule" />
</modules>
<validation validateIntegratedModeConfiguration="false" />
</system.webServer>

0 个答案:

没有答案