Questions tagged as 'web.config'

0
answers

Error sending email by external access. Internal access works

Error sending email. I have a form that sends email with attachments. When run from within the company, it works perfectly. When called from outside, that is, when called by the published project, it generates the error of the image below. We al...
asked by 26.06.2018 / 22:12
2
answers

Restrict access to only one page in the application, leaving the others free

I would like to restrict access by requesting login to only one page in my application. In webconfig I put it like this, but obviously this requires authentication on every page of the application. <authentication mode="Forms"> &l...
asked by 05.05.2017 / 16:28
2
answers

How do I disable Forms Authenitcation for the Web API?

I have an Asp.Net MVC project and inside it has the Api web, when a request sends an invalid token, the forms authentication redirects to the login page, but I need it to only return an Http 401 error as it is an Api Rest. I already tried to use...
asked by 03.02.2017 / 17:24
0
answers

Adapt Web.Config to .htaccess

I need to keep two sites in the same hosting (one I've developed, let's call site 01) and another one which is a Wordpress created by the old company that served the client (We call site 02). The directory structure looks like this: / com...
asked by 19.12.2016 / 20:06
0
answers

Web.config Encryption and RSA Key Container

It has already been discussed how encrypt Web.config , has also been discussed as use encrypted Web.config , however my doubts are as follows: If you are using the default provider Rsa Protected Provider to perform encryption, and if...
asked by 13.10.2016 / 15:44
0
answers

The transport-level error has occurred when receiving results from the server

I have a Asp.Net MVC 4 application (with Entity Framework and SQL Server) that works normally on my application server, but now I had to work with redundancy and load balance with two new servers for the application (discarding the old one). O...
asked by 11.05.2016 / 22:32
1
answer

Configuring the Web.Config file

I wonder if I can leave the recipient's email in web.config, if so, how do I deploy it. I created a variable and gave the value of the email, however if I need to change I will have to compile dnv, if I can put the recipient in web.config and on...
asked by 02.03.2018 / 14:23
2
answers

How to add "www." to a web site with web.config?

I do not have much knowledge in regular expressions and I'm trying to identify if the user entered the site before entering the website before the site name. If it has not typed, I have to add it. But I'm having a bit of trouble doing this in...
asked by 16.08.2016 / 16:57
2
answers

URL redirection through web.config

I need to perform a redirect, from page http://exemplo/comunicacao/ to page http://exemplo/caminho_novo/comunicacao . I'm doing the following in web.config : <?xml version="1.0" encoding="UTF-8"?> <configuration&...
asked by 02.03.2018 / 17:08
1
answer

Doubt web.config

I need you to not show the actual physical address on a link to download a file on my site. The file link I want it to look like this: [UrlSite] / downloads / filename.extension And I'm trying to use the following code in my web.config:...
asked by 09.08.2017 / 16:55