ASP.NET MVC Routing vs. Reserved Filenames in Windows

前端 未结 4 918
谎友^
谎友^ 2020-12-04 22:03

In our ASP.NET MVC application, we\'ve noticed that we cannot have The Forbidden DOS File Names—COM1 through COM9, LPT1 through

4条回答
  •  旧巷少年郎
    2020-12-04 22:30

    This has been addressed in ASP.NET 4. http://haacked.com/archive/2010/04/29/allowing-reserved-filenames-in-URLs.aspx

    You can apply a setting in web.config that relaxes this restriction.

    
      
        
    
        
      
    
    

    Hope that helps.

提交回复
热议问题