请问vs2015 的mvc web.config怎样配置handlers
请问有哪位知道 mvc5 web.config怎样添加handlers
按网上的资料我在web.config 添加了
<system.webServer>
<handlers>
<add name="UploadImage" verb="*" path="/UploadImage.aspx" type="WebApplication7.Handlers.UploadImage,WebApplication7" />
</handlers>
</system.webServer>
已经添加了
namespace WebApplication7.Handlers
{
public class UploadImage: IHttpHandler
{
public bool IsReusable
{
get { return false; }
}
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
context.Response.Write("OK");
}
}
}
输入网址 http://localhost:5921/uploadimage.aspx,提示没找到相关资源,请问还要哪步操作?