How to restrict download of specified file types
I want to restrict my web app so that .txt files can not be downloaded/shown.
Is this something I can set up in my web.config file?
I want to restrict my web app so that .txt files can not be downloaded/shown.
Is this something I can set up in my web.config file?
I have a webserver from where users can download files that are specific for each user. To be sure each user can only download its own files they must authenticate via Basic-Authentication. So for each user there is a windows-account on the server that has read permissions to the user specific folder.
What is the use of the <clear/> in the web.config file?
I’ve got the following configuration in web.config:
I noticed that we always just are like:
I have an ASP.NET site which uses a 3rd party activeX control. I have to pass a few parameters to the OBJECT tag in the HTML page. If i hardcode these parameters into the HTML everything works.
I would like to register an HttpHandler to include all subfolders of a root folder regardless of how far down they are nested. I would have expected the behavior with the below code to do just that but in fact it only includes items directly in the root folder.
Is there a way to apply VS 2010 Web.Config transformations outside of web deployment, say during debugging? It would give me a great boost to be able to freely switch between different environments.
I tried to install BugNET on IIS7 with .net 4.5
I’m trying to reference some common config settings between a Windows Service and an ASP.NET MVC website. I am doing this by using the file attribute on appSettings in either the App.config or Web.config (respectively). The file (named common.config) that is being referenced is a linked file in a separate project in the same solution. That common.config is set to Content with Copy Always in both projects.