How do I restrict access to files with specific extensions in ASP.NET?

后端 未结 2 672
一整个雨季
一整个雨季 2020-12-16 18:48

I have in my web application an ADO.NET Entity-Framework *.edmx file.

When I browse in the browser (when the application is running) to an edmx file, it doesn\'t sho

2条回答
  •  旧巷少年郎
    2020-12-16 19:25

    You can do this two ways; firstly in the web.config or secondly in IIS

    
        
            
        
    
    

    Here's a link to a microsoft support page that details how to do it in the web config and IIS.

    http://support.microsoft.com/kb/815152

提交回复
热议问题