How to Prevent direct access to files and folders in asp.net?

前端 未结 4 1449

I have deployed a web application on IIS7 and the application has mail attachment files saved on webserver\'s Attachments folder and it\'s working fine when the

4条回答
  •  借酒劲吻你
    2020-12-12 04:44

    I think the easiest thing to do is add the runAllManagedModulesForAllRequests attribute to your modules section in web.config, like so:

    
         
    
    

提交回复
热议问题