Questions tagged [web-config]

web.config is an XML file that stores the main settings and configuration files for an IIS server.

Filter by
Sorted by
Tagged with
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 -...
Markku Rintala's user avatar
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 ...
Emery Noel's user avatar
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 "/...
Chris's user avatar
  • 527
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.*....
Jivopis's user avatar
  • 137
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 ...
Must.Tek's user avatar
  • 1,230
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 ...
Victor Amell's user avatar
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 ...
PsCraft's user avatar
  • 620
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 ...
hey hej's user avatar
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 ...
Onthrax's user avatar
  • 122
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'...
chamara's user avatar
  • 12.6k
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 ...
fl13's user avatar
  • 67
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 ...
therealwolf's user avatar
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> ...
simovid's user avatar
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 ...
dirtyw0lf's user avatar
  • 1,808
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 ...
Rohan Khurana's user avatar
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. ...
Siebe Van Hirtum's user avatar
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 ...
meimaymay's user avatar
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=&...
Venoth01's user avatar
-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 { ...
naveen Gitt's user avatar
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 ...
Xeddon's user avatar
  • 429
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> ...
Mabbus's user avatar
  • 50
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 ...
Vikrant Shitole's user avatar
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> ...
Venoth01's user avatar
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 ...
VIjay Jainapure's user avatar
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 ...
Mohadeseh's user avatar
  • 356
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 ...
jason44107's user avatar
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=&...
Majid Mortazavi's user avatar
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. ...
Ram's user avatar
  • 1
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 ...
Pulletikurti Tanmayee Manasa's user avatar
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 ...
mojojojo8's user avatar
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 ...
geoff swartz's user avatar
  • 5,465
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, ...
Miranda Weathers's user avatar
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....
Chris's user avatar
  • 1,457
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 ...
Jeroen Smink's user avatar
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 ...
Kyle Jamieson's user avatar
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....
Gabriel Weidmann's user avatar
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 &...
Heemanshu Bhalla's user avatar
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&...
Сергей Немец's user avatar
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 ...
Mackey's user avatar
  • 1
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 ...
SilverFish's user avatar
  • 1,024
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 ...
Александр Романеев's user avatar
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 ...
Hossein Azad's user avatar
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, ...
farhad kazemipour's user avatar
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/...
JWrightII's user avatar
  • 942
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....
James-VT's user avatar
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="...
Vlado Pandžić's user avatar
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 ...
worz's user avatar
  • 1
-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 ...
David Mason's user avatar
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 ...
M.Y.'s user avatar
  • 569
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....
Ethel Patrick's user avatar

1
2 3 4 5
174