Questions tagged as 'web.config'

1
answer

Block download of files in IIS [duplicate]

I'm trying to block the download of my application's songs. I tried blocking by putting a web.config file in the folder with the songs with the settings below: <?xml version="1.0"?> <configuration> <system.webServ...
asked by 24.06.2015 / 22:37
1
answer

How to publish a WebService using Visual Studio C #?

I'm trying to publish a Webservice with Visual Studio but the connection is failing. Can anyone help me connect to this project? Here is the error message when I try to publish:    Publishing folder / ...   2> Unable to add 'Web.config' t...
asked by 25.09.2017 / 03:28
1
answer

Masking url path on IIS server

I have a question that I need but to show a path in the url that is more friendly to the user, like this: link I wanted to show instead that all this way showed just link Just like this site when clicking on any link in the me...
asked by 01.12.2016 / 15:42
1
answer

Change HTACCESS to Web.config

Hello, Is it possible to convert this HTACCESS code to a Web.config file? RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)\?*$ index.php?route=$1 [L,QSA]     
asked by 26.01.2015 / 13:39
2
answers

How to configure custom Error 500 page?

Good afternoon, I'm starting to write errors. In my web config is installed as follows: Error 404 <customErrors mode="On" defaultRedirect="~/Erro/Error-404.html"> <error statusCode="404" redirect="~/Erro/Error-404.html" /...
asked by 28.09.2018 / 20:47
1
answer

How to use PHP files with custom error page in Web.config

I have a file named error.php , it takes the value GET or an already defined variable and displays the errors in multiple languages and of all types. I use IIS and already tried in Web.config to use PHP pages, but I did not succeed, I...
asked by 26.02.2016 / 20:18
1
answer

How do I resolve site publishing problem using IIS

The site / system will be placed on the local machine for demonstration I published the site in IIS to be used locally on the machine, but it is returning the error: Description: An error occurred while processing a configuration file needed...
asked by 19.12.2017 / 17:04
1
answer

How to set a session timeout in web.config

Personal I need a timeout for my web.config that if the user is not tampering with the system it expires, if it is tampering with the system does not expire time. Is it possible to have something like this? <configuration> <system.w...
asked by 04.04.2017 / 17:04
1
answer

A potentially dangerous Request.Path value was detected from the client

I'm trying to submit an action with a parameter like this: <a href="@Url.Action(@"Create/?reference=01/04/2016", "Cobranca")" But it generates a URL like this: Cobranca/Create/%3freference%3d01/04/2016 And causes the error: A pot...
asked by 02.03.2016 / 14:42
0
answers

Redirect 301 with Webconfig

I use a rule that works the most does not seem right to me. I think it ends up giving two 301 redirect. <!--Forçar https--> <rule name="Https" stopProcessing="true"> <match url="^" ignoreCas...
asked by 17.06.2018 / 04:28