2016-08-25 29 views
0

通过imageresizing.net/docsImageResizer 404错误与查询参数

resizer.debug.ashx做工精细安装所有。

,当我去的URL像http://localhost:58663/images/blank_obj_img.png我下载我的形象,但是当我查询参数添加什么样的?宽度= 50 &高度= 50我得到404页

谁知道跆拳道?调试页面显示我的所有是好的,我可以下载图像,但不能调整

+0

试试你的URL看起来像宽img.png.ashx = 50&高度= 50? –

+0

用于设置图像高度和宽度的命令可能被当作查询字符串处理,可能需要在action方法中包含字符串参数值以传递查询字符串。 –

+0

与.ashx错误也是 – ProSardar

回答

0

你可以需要遵循这样的:

<!-- Unless you (a) use Integrated mode, or (b) map all requests to ASP.NET, 
you'll need to add .ashx to your image URLs: image.jpg.ashx?width=200&height=20 --> 

<pipeline fakeExtensions=".ashx" defaultCommands="autorotate.default=true"/> 
+0

此设置包含在和.ashx在url不起作用 – ProSardar

+0

尝试添加到web.config –

+0

的处理程序不能再工作,我把我的项目更改为http://imageprocessor.org这一个,只需从nuget安装并运行项目。这是完美的工作! – ProSardar