Questions tagged as 'web.config'

2
answers

Deny / hide access to files that start with dot, such as .git, .svn, .DS_Store, .yml

By default Apache denies access to files whose name begins with .ht , such as .htaccess : <Files ~ "^\.ht"> Require all denied </Files> But I notice that many files use the prefix . , like .gitignore...
asked by 03.05.2017 / 17:54
1
answer

Encrypt Web.config

I come here with a question regarding ConnectionStrings of Web.config . Seeing that we normally report a form of authentication on ConnectionStrings for the application to access the database. By default, anyone accessing...
asked by 19.03.2015 / 15:06
2
answers

Time-out expiring faster than expected - ASP.NET

I have an application that is working ok, however, when I spend a little time without interacting with the page the user authentication drops and the system returns to the login screen. I'm trying to set that time for 20 minutes in web config bu...
asked by 09.07.2015 / 21:20
1
answer

htaccess for web.config

I moved my site to the Windows Azure platform and their server is IIS and my old one was apache so the routes configured in htaccess are not working, I need to know how to convert this: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-...
asked by 27.06.2014 / 15:34
1
answer

Redirect URL in IIS 7.5

When posting to the server (iis 7.5) the application: Eu tenho isso => http://meuip:8086 Mas preciso disso => http://meuip:8086/portal When you create the directory in iis with the name "portal" and converted to an application, a...
asked by 04.05.2018 / 21:25
1
answer

Difficulties writing a friendly url (global) in web config

I asked the same question in the English version but I did not succeed! I have an application that will be translated into three languages pt / en / es. So far I'm going to use GlobalResources, I have no problems with this, but I'm having a l...
asked by 18.07.2014 / 16:09
2
answers

Block direct access to a URL via webconfig

I have an old system in classic ASP and need to do some implementations. I have a web.config file for this application and would like to know if it is possible to block direct access to a video URL. For example: If the user has access...
asked by 29.03.2017 / 19:20
2
answers

Problem with connection between EF and PostgreSQL

I'm trying to make a connection to EF and PostgreSQL in an Asp.Net Mvc application I'm using the following references EntityFramework6.Npgsql Npgsql 3.1 .NET Framework 4.5 I have the following classes: public class Categoria {...
asked by 18.02.2017 / 18:48
1
answer

Asp.Net MVC Project in Medium-Trust

I have a project in Asp.Net MVC using .NET Framework 4.5, but my host is shared and has a security policy that only allows Medium-Trust (save Locaweb). When you publish the application, even if you change the Web.config to Medium-Trust, the a...
asked by 10.11.2015 / 11:43
1
answer

What is the difference between compilation and httpRuntime configuration properties?

I'm going through some problems while learning to work with C #, more specifically with Asp Net MVC. I saw a configuration snippet in Web.config that left me a bit confused, namely: <compilation debug="true" targetFramework="4.6.2...
asked by 21.07.2018 / 15:44