Top "Web-config" questions

web.

web.config redirect non-www to www

I need to redirect non-www urls to www url for both http and https urls. I tried following rules in …

iis url-rewriting web-config
allowDefinition='MachineToApplication' msbuild error

We have a ASP.NET MVC with 4-5 different build configurations. Whenever we change the build configuration, we need to …

msbuild web-config
[A]System.Web.WebPages.Razor.Configuration.HostSection cannot be cast to... web.config issue

I am getting the following error: [A]System.Web.WebPages.Razor.Configuration.HostSection cannot be cast to [B]System.Web.…

c# web-config nuget nuget-package nuget-package-restore
Difference between <system.web> and <system.webServer>?

Every time I have to add a handler or module for ASP.NET with IIS7, the instructions always tell me …

asp.net iis-7 web-config
How to enable SSL for SmtpClient in Web.config

Is there a way to set the EnableSSL from the web.config? I could set this property in code, but …

asp.net .net web-config smtpclient
maxReceivedMessageSize not fixing 413: Request Entity Too Large

My call to my WCF web service is failing with System.Net.WebException: The request failed with HTTP status 413: Request …

wcf iis .net-4.0 web-config wcf-binding
This site can’t provide a secure connection

When I added the URL rewrite code in web.config and then publish it into azure. it will automatically redirects …

asp.net security azure url-rewriting web-config
Web Config Transform not working

In a .NET MVC 3.0 Application I have the following configuration in appSettings: web.config <appSettings> <add key="…

asp.net asp.net-mvc web-config slowcheetah web-config-transform
How to read values from custom section in web.config

I have added a custom section called secureAppSettings to my web.config file: <configuration> <configSections> <…

c# .net web-config .net-2.0
How to read system.net/mailSettings/smtp from Web.config

This is my web.config mail settings: <system.net> <mailSettings> <smtp deliveryMethod="Network" from="smthg@…

c# web-config smtp sendmail