8,680 questions
0
votes
1
answer
107
views
How to access values in appsettings.json similiarly to accessing values in web.confi
Inn the way the web.config file can be accessed through using System.Configuration.ConfigurationManager in asp.net, is there a way to access values in the appsettings.json file like so, without the ...
0
votes
1
answer
86
views
Dynamically update log4net configuration section in web.config file
I've been looking into this for a few hours already, and it seems like it can't be done, but I was thinking of trying here as well.
For consistency purposes, I want to create a method that updates ...
0
votes
0
answers
54
views
301 redirect from old domains url to new domains new url
URL redirections are not happening. I have 2 different url(old/new)
old: https://olddomain.com/oldarticlecategory/
new: https://newdomain.com/newurlcategory/
Note: I've already created a rule that ...
0
votes
1
answer
74
views
WCF implement IErrorHandler run into registered for extension 'enforceGreetingFaults' could not be loaded
I have an old WCF project that receives xml type of post-call.
Recently, the caller says they are facing 500 while calling our endpoint.
But when we checked the log, there was no record related to the ...
0
votes
1
answer
76
views
disable caching in IIS only for one particular app on the website
Is it possible to disable caching of aspx, ashx, and javascript files only on one particular app on the website, not for the website globally? Can it be done in the app's local web.config?
0
votes
1
answer
1k
views
Web.config in the root directory and in my subfolder. How to define the file in my subfolder as the main one for my application?
I have an application in my subfolder within wwwroot (Finance), which worked fine, but someone else installed another application not in a subfolder but in wwwrooot.
So there is a web.config in the ...
0
votes
0
answers
73
views
IIS Rewrite rule conditions is not working
We are going to redirect a sites language to one information page during a transition period. This redirect rule have conditions in it that should be allowing some URLs to still be accessible.
These ...
0
votes
1
answer
75
views
SMTP configuration in web.config
My web app can no longer connect to my mail service because they have change the connecting setting from using the Username & Password Authentication to IP based authentication. Im fairly new to ...
0
votes
1
answer
126
views
Changing web.config containing namespace in configuration tag with Inno Setup [duplicate]
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
1
answer
369
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 "/...
1
vote
0
answers
69
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
1
answer
66
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'...
0
votes
1
answer
539
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
2k
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
488
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
713
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
0
answers
44
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 ...
0
votes
1
answer
930
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
1
answer
376
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
351
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
0
answers
764
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
0
answers
635
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
1
answer
45
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
2
answers
1k
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
1
answer
177
views
My websites html files does not open because of Web API web.config file
My websites html files does not open because of Web API web.config file.
I am trying to host my website on Plesk. I put my frontend (HTML CSS JS) files in the httpdocs folder and there was no problem ...