Plus (+) in MVC Argument causes 404 on IIS 7.0

前端 未结 4 694
面向向阳花
面向向阳花 2020-12-14 06:54

I have an MVC route that is giving me hell on a staging server running IIS. I am running Visual Studio 2010\'s development server locally.

Here is a sample URL that

4条回答
  •  伪装坚强ぢ
    2020-12-14 07:20

    This is an IIS security setting. There is a standard request filter that rejects URLs containing + (plus) characters.

    You can disable it for your web, adding this to your web.config:

    
       ...
       
          ...
          
              
          
        
        ...
    
    

提交回复
热议问题