Most voted "web.config" questions
It is a special file that configures the behavior of your ASP.NET application and is in XML format and can be easily edited with a common editor, such as notepad.
Learn more…61 questions
Sort by count of
-
9
votes2
answers742
viewsDeny/hide access to files starting with dot, like . git, . svn, . Ds_store, . yml
By default Apache denies access to files whose name begins with .ht, as an example .htaccess: <Files ~ "^\.ht"> Require all denied </Files> But I notice that many files use the prefix .,…
-
8
votes1
answer1863
viewsEncrypt Web.config
I come here with a question about ConnectionStrings of Web.config. Seeing that normally, we inform a form of authentication on ConnectionStrings for the application to access the database. And by…
-
8
votes2
answers1730
viewsTime-out expiring faster than expected - ASP.NET
I am with 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 am…
-
5
votes1
answer1434
viewshtaccess for web.config
I switched my website to the platform Windows Azure and their server is IIS and my old one was Apache so the routes configured in htaccess are not working, need to know how to convert this:…
-
4
votes1
answer1537
viewsDifficulties writing a user friendly (global) web config url
I asked that same question in the English version but I was unsuccessful! I have an application that will be translated into three languages en/en/es. Until then I’ll use Globalresources, I have no…
-
4
votes1
answer1123
viewsRedirect URL on IIS 7.5
When publishing to the server (iis 7.5) the application: Eu tenho isso => http://meuip:8086 Mas preciso disso => http://meuip:8086/portal when or if created the iis directory with the name…
-
3
votes1
answer169
viewsWeb.Config Transformations - What to do with connectionString.config if I don’t use Web Deploy?
My Web.config points to an external connectionString file. <?xml version="1.0"?> <configuration> <connectionStrings configSource="connectionStrings.config"/> </configuration>…
-
3
votes1
answer1498
viewsAsp.Net MVC Project in Medium-Trust
I have a project on 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 publishing the application, even by…
-
3
votes1
answer102
viewsWhat is the difference between the settings properties <Compilation> and <httpRuntime>?
I am going through some problems while learning to work with C#, more specifically with Asp Net MVC. I saw a setup snippet on Web.config that left me a little confused, knowing: <compilation…
-
3
votes2
answers649
viewsProblem with connection between EF and Postgresql
I am trying to make a connection with EF and Postgresql in an Asp.Net Mvc application I am using the following references Entityframework6.Npgsql Npgsql 3.1 .NET Framework 4.5 I have the following…
-
3
votes2
answers1106
viewsBlock direct access to a URL via webconfig
I have an old system in classic ASP and need to do some implementations. I have a file web.config for this application and would like to know if it is possible to block direct access to a video URL.…
-
3
votes2
answers446
viewsRestrict access to only one page in the application, leaving the rest free
I would like to restrict access by requesting login to only one page in my application. In webconfig I put so, but obviously this way requires authentication on all pages of the application.…
-
3
votes3
answers297
viewsWhat is Appsettings for?
I was looking at Web.confg and would like to know what the <appSettings>? What it interferes with our application?
-
2
votes2
answers775
viewsProblems with Web.Config
I am having difficulty using several web.config on my system. In my web.config main i have the following configuration: <configuration> <appSettings> <add key="BASE_URL" value="/mvc/"…
-
2
votes1
answer136
viewsAdditional settings for referencing . NET 4.0?
Today when trying to publish a new version of my application, the following error appeared: Error 26 Mixed mode Assembly is built Against version 'v2.0.50727' of the Runtime and cannot be Loaded in…
-
2
votes1
answer63
viewsHow to display the version of my website on all pages?
I want to display in the footer of all my pages the version on which my site is running. For example: Version 1.0 After I do an update on my website and publish it again would be something like…
-
2
votes2
answers508
viewsWhat’s the difference between App.conf and Web.conf?
What is the difference between the App.conf and the Web.conf?
-
2
votes1
answer157
viewsHow to configure Web.config in Cordova project?
In that question I was recommended to configure the web.config of my project Cordova that uses Ajax. I searched on the subject but found nothing of the kind. Someone can help me?…
-
2
votes1
answer1093
viewsBlock downloading files on IIS
I’m trying to block the download of the songs on my app. I tried to block by putting a file web.config in the music folder with the settings below: <?xml version="1.0"?> <configuration>…
-
2
votes1
answer330
viewsDoes not redirect to Login Page
To authenticate in my system I am using the attribute [Authorize] I put this code down on Web.Config for when the Code 401 which is related to not authenticating it redirects itself to my login…
-
2
votes1
answer579
viewsHow to store passwords in environment variables (and remove them from version control)?
I’m migrating from a local tfs to a private git (probably bitbucket). Today I simply encrypt webconfig, now I will have to take my sensitive data out of version control (Connection string,…
-
2
votes1
answer94
viewsWhat is Membership for?
I was analyzing Web.confg and a question arose, what is the usefulness of the tag membership? What is he?
-
2
votes1
answer337
viewsError when connecting to Sqlserver C# Web.config database
I’m trying to make an application .NET MVC, but when I connect to the bank is giving the following error: An Exception of type 'System.Nullreferenceexception' occurred in Gerarxml.dll but was not…
-
2
votes1
answer637
viewsHow to Change Default Validation Message Language of an ASP Application. NET MVC
I have a model like this: [Display(Name = "Protocolos Abertos")] public int ProtocolosId { get; set; } I use in a Selectlist like value, when I am going to do the Submit of a form the validation…
asp.net-mvc web-application web.config internationalizationasked 7 years, 5 months ago LP. Gonçalves 883 -
1
votes1
answer614
viewsSwitch HTACCESS to Web.config
Hello, It is possible to convert this HTACCESS code to a Web.config file ? RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)\?*$…
-
1
votes2
answers143
viewsHow to disable Forms Authenitcation for the Web API?
I have an Asp.Net MVC project and inside it has the Web Api, when a request sends an invalid token, Forms Authentication redirects to the login page, but I need it to only return an Http 401 error,…
c# asp.net-mvc asp.net-web-api web.config forms-authenticationasked 8 years, 3 months ago Fábio Lima 81 -
1
votes1
answer142
viewsHow to use PHP files with custom error page in Web.config
I have a file called error.php, he takes the value GET or an already defined variable and display errors in multiple languages and of all types. I use IIS and have tried on Web.config to use PHP…
-
1
votes1
answer1494
viewsA 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:…
-
1
votes0
answers973
viewsA transport-level error has occurred when Receiving Results from the server
I have an app Asp.Net MVC 4 (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…
-
1
votes1
answer900
viewsHow to set a session timeout on the web.config
People I need a timeout for my web.config that if the user is not tinkering with the system it expires, if he is tinkering with the system does not expire time. It’s possible to have something like…
-
1
votes0
answers110
viewsHow do I use a web.config key in the controller?
On my web.config I have the following key: <appSettings> <add key="teste" value="teste"/> <appSettings> What I need to do to use this key in my controller?…
-
1
votes0
answers162
viewsWeb.config encryption and RSA key container
It’s been discussed how encrypt Web.config, has also been discussed as use encrypted Web.config, but my doubt is as follows: If you are using the default provider Rsa Protected Provider to perform…
-
1
votes1
answer1846
viewsMask url path on IIS server
I’m having a question in which I need but show a path in the url that is more user friendly, like this: http://hexatasistemas.com.br/sites/mercedita/efetuarlogin.asp I wish instead of showing all…
-
1
votes0
answers236
viewsAdapt Web.Config to . htaccess
need to maintain two sites in the same hosting (one I developed, let’s call site 01) and another that is a Wordpress created by the old company that served the client (We call site 02). The…
-
1
votes2
answers150
viewsHow to configure custom Error 500 page?
Good afternoon, I’m starting to write mistakes. In my web config is installed as follows: Error 404 <customErrors mode="On" defaultRedirect="~/Erro/Error-404.html"> <error statusCode="404"…
-
1
votes1
answer1226
viewsConfigure web.config file for PHP project in subdirectories
I have a website on php in test phase in a directory above the root of the official website. To configure the friendly URL (remove the entension . php) is for web config.. I made a rule that doesn’t…
-
1
votes1
answer479
viewsHow to publish a Webservice using Visual Studio C#?
I’m trying to publish a Webservice with Visual Studio but the connection is failing. Someone can help me connect on this project? Here’s the error message from when I try to publish: Publishing…
-
1
votes1
answer1049
viewsHow to solve site publishing problem usitlizando IIS
The site/system will be placed on the local computer for demonstration I posted the site on IIS to be used locally on the machine, only this returning me the error: Description: Error while…
-
1
votes0
answers125
viewsRedirect 301 with Webconfig
I use a rule that works more does not seem correct. I think it ends up giving two redirect 301. <!--Forçar https--> <rule name="Https" stopProcessing="true"> <match url="^"…
-
1
votes1
answer126
viewsfailed url rewrite slim iis 10
I’m trying to follow the slim tutorial here, but always give page not found when localhost:8080/hello/Alan access. I’m using iis 10. I installed rewrite url 2.0, and my web.config looks like this:…
-
0
votes0
answers13
viewsDo I need to open an aspx in a mvc4 project is possible?
I have a MVC4 project, and I need to open an aspx page, which is a report from Report Viewer. This works by running locally with Visual Studio’s IIS, but going up to the server doesn’t work. What…
-
0
votes2
answers60
viewsHow to add "www." to a website with web.config?
I do not have much knowledge in regular expressions and I am trying to identify if when accessing the site the user typed www before the name of the site. In case he hasn’t typed, I have to add. But…
-
0
votes1
answer641
views413 request Entity Too large
I have a banknote issuing service that was running normally on a VM on Azure. We migrated to a Google VM and now presents this error when the note has many products: 413 request Entity Too large I…
-
0
votes1
answer3947
viewsHow to increase timeout on IIS 7.5
Hello, I’m having trouble executing a feature that runs on MVC3 on an IIS 7.5 server. As the functionality returns many lines, after 30 seconds of execution, it simply aborts, I’ve tried several…
-
0
votes1
answer105
viewsTransform these Web.config rules into . htaccess
Good night, I’m needing to move these parts from a web.config to . htaccess, but I’m having a lot of questions. <rule name="Regla 1-1"> <match url="^camera/pictures/(.*)_small\.png$"…
-
0
votes1
answer432
viewsHide password from database
Good Afternoon, I have some websites whose database password, I store in a connection string, on the web.config. Any programmer who has access to hosting ftp, can read the web.config file and view…
-
0
votes0
answers130
viewsRedirect application on IIS when pool is stopped
I have an ASP.NET C# application that is updated by another application on the server. When I start the process of updating the first application in the second I stop the pool in which the first one…
-
0
votes0
answers566
viewsError with Entityframework preview
This is the message that is returning in the browser The Entity Framework Provider type 'System.Data.Entity.SqlServer.Sqlproviderservices, Entityframework.Sqlserver' Registered in the application…
-
0
votes0
answers45
viewsWeb.Config several domains
I have hosting with several domains, each site has its own route system. In the hosting (httdocs) has my main website where I set the route by web.config, until then everything is working normally.…
-
0
votes0
answers792
viewsCannot load file or Assembly 'Microsoft.Office.Interop.Excel'
I am trying to open an old ASP.NET project on my machine and I am getting the following error when I try to run it to view in the browser: Server Error in '/' Application. Configuration Error…