我在.net mvc网站上使用ImageResizing库来适应图像的大小
在本地主机上的工作正常,我在拖车服务器上上传了网站
其中之一不起作用
此链接无效:
这是其他主机正常工作: 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>