Questions tagged [web-config]
web.config is an XML file that stores the main settings and configuration files for an IIS server.
8,668
questions
0
votes
1
answer
49
views
Changing web.config containing namespace in configuration tag with Inno Setup
I would like to set a new attribute for a node in a web.config file with installation package created with Inno Setup.
To set this attribute I'm using procedure SaveAttributeValueToXML.
My web.config -...
0
votes
0
answers
19
views
Why does updating a NuGet package with no dependencies cause web.config binding redirect changes (.NET Framework)?
I am looking for some clarification on why a "no dependencies" NuGet package upgrade in 1 project in a SLN is triggering multiple .config file changes across the entire solution.
Due to a ...
0
votes
1
answer
20
views
Set-WebConfigurationProperty throws a NullReferenceException
We sometimes experience an exception while setting properties on an IIS Website.
In this particular instance the line of code leading to the error was
Set-WebConfigurationProperty -filter "/...
0
votes
0
answers
9
views
Issue when web.config with build action None copied to deploy package
I have a legacy web api project with next project's configuration:
Web.config
|- Web.Debug.config
|- Web.Release.config
|- Web.Sandbox.config
|- Web.Staging.config
Configuration of each web.*....
0
votes
0
answers
34
views
How to timeout hanging requests in ASP.NET Web API 2.2
I have ASP.NET Web API 2.2 application which is running on IIS 10. When i was monitor request on IIS then realized some requests hanging forever. I tried following ways to timeout these requests after ...
0
votes
0
answers
14
views
Use different providers in Web.Config - Devart to ODP.NET
I was using Devart in my Web.Config. I have migrated to ODP 12.2.11 and I am trying to use a role and membership manager provider different from the ODP provider since it changes my tables and ...
0
votes
0
answers
6
views
Set programmatically sessionState and httpCookies properties
Our project has two elements in web.config: httpCookies and sessionState. We would like to have more controll on them and set them programmatically. The reason of this is for some specific requests we ...
0
votes
1
answer
27
views
How to add another reportviewercontrolhandler with different version on web.config
I was planning on adding another handler in my webconfig to make my reportviewer and updatepanel works
this is my current web.config
<system.webServer>
<handlers>
<!-- another ...
0
votes
2
answers
66
views
How to I add a MIME type for a single specific file without extension in IIS?
I've been getting a lot of 404 notifications on the .well-known/traffic-advice location on my server. After doing some research it turns out the Chrome Privacy Preserving Prefetch Proxy tries to find ...
0
votes
1
answer
52
views
ASP.NET MVC Url Rewrite - WWW redirect
I'm trying to add a iis url rewrite rule in web.config. The rule should be as follows.
If the url does not contain www, then redirect to www
However, if the Host contains, 'svha-prd-as-careservices-01'...
1
vote
1
answer
39
views
Transfer a string from one ASP.NET MVC project to a different project (two different solutions) hosted on same IIS WebServer
Looking for advice or a solution on this problem.
I have 2 projects. If you click on Project A's URL, it should redirect you to Project B (which is a login form), and then once you successfully enter ...
0
votes
1
answer
55
views
URL Rewrite from web.config in Azure Application does not work
I want to redirect my users from "https://mywebsite.azurewebsites.net/Spa/de/#/.." to "https://mywebsite.azurewebsites.net/Spa/en/#/.." using url rewrite in web.config but it is ...
0
votes
0
answers
9
views
Web.config File Removes .html extension from URL but site is not accessible from plain URL
I'm currently using the following Web.config file which successfuly removes the .html extension from the URL.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
...
0
votes
1
answer
42
views
Report builder 3.0 : Maximum request length exceeded
I run a report on the SSRS hosted website on MS2019 server and it works. It is larger than 4MB.
When I download the file, and try to open it after downloading and installing Report Builder 3.0, the ...
0
votes
0
answers
89
views
Could not load file or assembly 'System.Memory, Version=4.0.1.1?
How to fix this error?
System.TypeInitializationException: The type initializer for 'ServiceStack.Text.JsConfig' threw an
exception. ---> System.IO.FileNotFoundException: Could ...
0
votes
1
answer
42
views
ASP.NET - The Web server is configured to not list the contents of this directory
I am trying to deploy a website on a server, I tried making a blank website but I keep getting this error.
I looked it up and found many solutions involving the web.config, none of them worked for me.
...
0
votes
1
answer
21
views
Why @EnableWebMvc causes failure in finding static resources (o.s.web.servlet.PageNotFound: No mapping for GET)
I am using Spring Boot and Redis to write a user login page. If I add @EnableWebMvc in my webConfig, I will get the following errors and the localhost is not able to find the static resources. If I ...
0
votes
1
answer
25
views
How to restrict the directory search using URL rewrite
I have used the following code in my web config under system.webServer, This is working as expected
<rewrite>
<rules>
<rule name="RequestBlockingRule" stopProcessing=&...
-1
votes
1
answer
65
views
Spring Security version 6 .permitAll() method
@Configuration
@EnableWebSecurity
public class SecurityConfig {
@Bean
public SecurityFilterChain securityFilterchain(HttpSecurity httpSecurity) throws Exception {
...
0
votes
1
answer
41
views
Simple folder password protection on windows server website
Is there an easy way to protect a directory or an entire website without root rights (with only FTP access) on a Windows server such as Linux with htaccess files?
Only one user needs to be able to log ...
0
votes
1
answer
54
views
Add header in web.config conditionally
Is there any way to make exceptions from a custom headers rule in web.config?
I have the header X-Frame-Options in web.config, which adds it for all files.
<httpProtocol>
<customHeaders>
...
0
votes
0
answers
30
views
It is possible to determine for hacker whether a directory in the project exists or not in IIS. How I can avoid this?
It is possible to determine hacker whether a directory in the project exists or not.
If I disabled directory browsing in IIS, this link throws a different error which is enough to discover whether the ...
1
vote
0
answers
66
views
How to hide the folders dynamically on web.config
I want to hide the following directories, added the following in my web.config to issue a "404 - Not Found" response status code instead of "403 - Forbidden"
<security>
...
0
votes
0
answers
37
views
How can I disable error messages in SSRS (SQL Server Reporting Services)?
Struggling with unfriendly SSRS error messages. Tried various web solutions, but no luck. Seeking help to customize error handling and display user-friendly pages for report not found & other ...
0
votes
1
answer
76
views
Custom error not working in ASP.NET on IIS 10
I use IIS 10. In web.config I have these settings for default errors:
<system.web>
<compilation debug="true" targetFramework="4.5.2" />
<httpRuntime ...
0
votes
0
answers
19
views
Change Web Site to use x86 platform, VS2019, Visual Studio 2019
My question is similar to these two:
Change Web Site to use x86 platform
Visual Studio 2010: how to force ASP.NET website to use x86 instead of "Any CPU"?
The difference is I'm using ...
0
votes
1
answer
34
views
Jenkins CI/CD pipeline for java project with context in server.xml
I have a java application that run with Apache tomcat 9. this app need an oracle database connection pool. this is my context in server.xml file.
<Context path="/app-develop" docBase=&...
0
votes
0
answers
18
views
Encrypt config file values
I have a web.config file, in that file I just want to encrypt only "connectionStrings" value, for that I am able to do it in manually by using below command in command prompt as Admin mode.
...
0
votes
0
answers
14
views
web.config file to generate and not generate in the ms build arguments
I have a requirement in my project that i need to do some modification in the web.config file in the flag to generate and not generate web.config file depending on the new parameter
I am getting the ...
0
votes
1
answer
61
views
301 Redirect - Two Azure Web Apps
I have an application running on old-example-app.azurewebsites.net. I want to setup a redirect from that application to another one in Azure that is new-example-app.azurewebsites.net. I want to ...
0
votes
0
answers
16
views
How to fix web.config redirect that doesn't work
I'm trying to get a redirect working with a web.config file. The httpRedirect rule works fine but the rewrite rule doesn't. I get a 500 error. If I go to the IIS HTTP Redirect section I get what ...
0
votes
0
answers
13
views
Rewrite rule to remove trailing %20 whitespace in URLs / Umbraco 404 page doesn't show for these urls
Using an Umbraco custom 404 page works for bad/nonexistent paths EXCEPT those ending in %# for example %20, %2, any number or just % alone.
I'm trying to make a redirect rewrite rule in web.config, ...
0
votes
0
answers
16
views
Changes of "lifetime" under "system.runtime.remoting" in Web.config are not being applied
According to this article, the LifetimeServices properties (LeaseTime, RenewOnCallTime etc.) can be changed in the application configuration like this:
<configuration>
<system.runtime....
0
votes
0
answers
34
views
DotNetCoreCLI@2 Azure DevOps Task not adding handlers to web.config unless zipAfterPublish is true
I'm currently working with an ASP.NET Core application and setting up a CI/CD pipeline using Azure DevOps. As part of my deployment strategy, I'm trying to generate a web.config file with the correct ...
0
votes
0
answers
82
views
My ASP.NET Core (.NET 7) web application deployed on my company's intranet asks for my domain credentials when i launch it. I need to suppress it
I have deployed a ASP.NET core (.NET 7) web application (uses windows authentication) on my company's local intranet (IIS Server).
When i launch the application using chrome browser, I get a pop that ...
0
votes
1
answer
59
views
How to overwrite a web.config file with custom content in ASP.NET Core?
I'm trying to extend my web.config file with custom server configuration that is necessary for IIS. But I'm not sure how to do this as there is already a web.config file auto-generated at publish time....
0
votes
0
answers
6
views
How to Rewrite example.com/index.cfm/some-text/some-more-text/ to example.com/some-text/some-more-text/ IIS web.config
I need to remove index.cfm in my url. I'm using below code. it works to remove index.cfm from last of url like .com/index.cfm is resolving to .com/ but not anything after index.cfm.
CODE I'm Using
&...
0
votes
0
answers
128
views
Run Python asgi on IIS
tell me please how to properly configure the web config to run asgi on the iis server?
so, now i have next web.config
<?xml version="1.0" encoding="utf-8"?>
<configuration&...
0
votes
1
answer
114
views
Folder structure/setup/config questions, RE: hosting React app with express API backend in Azure
I've been working to deploy a nodejs/react application to Azure but I seem to be having some issues getting things up and running. I have tried lots of different approaches (see below) but I just ...
0
votes
0
answers
40
views
Encrypt credentials in App.config in Visual Studio 2019 using aspnet_regiis
encrypt credentials in App.config in Visual Studio 2019
I need to Encrypt API credentials in my App.config in c# console application. I'm using .Net framework 4.7.2. I'm using aspnet_regiis.exe ...
0
votes
0
answers
46
views
Installed plugin fails to load, looks like web pack doesn't see it ReferenceError: HtmlWebpackPlugin is not defined at Object.<anonymous>
In essense, I am tring to set react with Webpack
used this command:
npm install --save-dev html-webpack-plugin
here is webpack.config.js
const path = require("path");
const HtmlWebpackPlugin ...
0
votes
1
answer
141
views
error TS2769: No overload matches this call. The last overload gave the following error
I use Redis and Connfig with this code
// 1. Create Session
redisClient.set(`${user.id}`, JSON.stringify(user), {
EX: config.get<any>('redisCacheExpiresIn') * 60,
});
and give error ...
0
votes
1
answer
33
views
redirect page a in domain x to page b in domain y
I know it may be duplicate in some cases but I couldn't find an exact answer for this.
I've changed my website url and I created all pages in new format, now I want to redirect old urls to new one, ...
0
votes
0
answers
26
views
Difference between a defined machineKey or just AutoGenerate without IsolateApps?
We have an single iis website setup, and inside this website there are three child applications - a rest api, a client, and a background job server (i.e. the path looks like Server/Sites/Web Site/...
0
votes
0
answers
18
views
Why does my Web.config file delete my custom assembly reference?
I'm currently getting an exception on a few React components. If it helps, I'm using .NET 4.6.2 and am new to working with .NET and a lot else on this inherited project. The error is this:
**System.IO....
0
votes
0
answers
14
views
Rewrite rule is only working when there is dot, i.e when file has some extension
Here is my rewrite rule:
<rule name="Rewrite blog" stopProcessing="true">
<match url="^blog/(.*)" />
<action type="...
0
votes
0
answers
38
views
Nginx Caching Content Config
I have to serve .mp4 files through Nginx on a portable Jetson machine. .mp4 files are fragmented MP4 that grow over time (recordings).
I would like to be able to serve them with byte-range download ...
-1
votes
1
answer
70
views
Azure App service: Redirect all domains to the same .com Domain
I am hosting a website in Azure App service.
I registered many domains to point all to the same IP Address:
example.com
example.ch
example.de
example.asia
...
I want that all Domains will ...
0
votes
2
answers
205
views
url rewriting in IIS causes css and images files not to get loaded in browser
I have tried to solve the issue of not getting css and images files loaded in browser after url rewriting in IIS for classic asp app. I have found the solution which shows in developer tool's network ...
0
votes
0
answers
45
views
Connection String for Database First does not work when retrieving data
I have the following connection string to generate my Database First Model connectionString="metadata=res://*/Models.AirInvoicing.csdl|res://*/Models.AirInvoicing.ssdl|res://*/Models.AirInvoicing....