web-config

Mono XSP ignores <location> directive in Web.Config

I'm porting my ASP.NET application to Mono. I built it from SVN trunk under Debian 5.0. I allow anonymous access to Logout.aspx and styles.css using Web.config directives: <location path="Logout.aspx"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location> <locati...

divide web.config

I am developing a asp.net project and I dont have very long web.config file yet(more then 400 lines). but with this nhibernate log4net and urlrewrites. its getting bigger and bigger. is there a proper way to divide web.config into pieces. like nhibernate.config and log4net.config ofcourse urlrewrite.config thanks in advance ...

Use a dynamically generated file as configSource in web.config

Is there a way to use a generated file as a configSource for a web.config section? In web.config, I tried a simple: <webParts configSource="webpartsConfig.aspx" /> where webpartsConfig.aspx just spits out XML when accessed normally, but not as a configSource. (The literal source code is included as-is, giving an error.) Any solutions...

ASP.NET MVC Default URL View

I'm trying to set the Default URL of my MVC application to a view within an area of my application. The area is called "Common", the controller "Home" and the view "Index". I've tried setting the defaultUrl in the forms section of web.config to "~/Common/Home/Index" with no success. I've also tried mapping a new route in global.asax, ...

Known Issues about having multiple web.config files and visual studio 2005/2008 SP1

Hello all, I seem to be having a problem with my visual studio 2005/2008 installation or something because it isn't providing any IntelliSense whatsoever for controls registered on web.config files in folders different from the root, but it isn't showing any errors neither. Is this behavior normal? I have access only to the folder of m...

500.19 Internal Server Error - RequestFilteringModule config error

I'm working on a site built on the Telligent Community platform. It comes with a zip of the site that I need to setup and build from. I've setup the site and have been working on it, except the default web.config has one thing that breaks the site, unless I comment it out. The line is <requestFiltering allowDoubleEscaping="true" /> in th...

AJAX toolkit and web config security

Hey everyone, I'm using ASP.NET and the AJAX toolkit and was wondering if there are any security aspects I should be concerned about. I've never used the AJAX toolkit before, and usually from standard controls, there are postbacks which I use to validate input. I assume this is the same with the AJAX controls, but are there any extra ...

How to programmatically retrieve smtp server details from web.config

I have the following SMTP details stored in web.config <system.net> <mailSettings> <smtp from="[email protected]"> <network host="mail.domain.com" port="25" userName="username" password="password" defaultCredentials="true"/> </smtp> </mailSettings> </system.net> How can I retrieve these values from within a...

CookiesSupported in WebClient,

Hi, I am using a web client to allow cookie support. public class MyWeb : WebClient { private CookieContainer cookies = new CookieContainer(); protected override WebRequest GetWebRequest(Uri address) { WebRequest request = base.GetWebRequest(address); if (request is HttpWebRequest) (request as H...

ASP.NET Web.config - runAllManagedModulesForAllRequests = "true" killing windows authentication in IIS7

We have windows authentication set up on our staging server for our clients to help prevent google from indexing our staging URLs. We recently found out that one of our sites is seemingly ignoring our IIS settings (anonymous authentication is disabled, windows authentication is enabled). We ended up figuring out that removing the setti...

In VS 2005 How do I generate the connection strings for web.config?

I thought that VS 2005 automatically generated the connection strings in the web.config, however I can't for the life of me remember how. ...

pageBaseType in Web.config on IIS6

I am currently defining a base class for my views which itself inherits System.Web.UI.Page. This new class exposes new properties to be defined through the @Page directives. On IIS 7 (.NET 4), registering this new base class in web.config as <page pageBaseType="newPageClass"> works very well, though on IIS 5.1 (XP, .NET 3.5) it fails...

Is that a way to set the name of the application in the log journal using the IIS web.config ?

Hi, I use the following code in the web.config file of my WCF application: <source name="System.ServiceModel" switchValue="Error, Warning, Information"> <listeners> <add name="LogInApplication" type="System.Diagnostics.EventLogTraceListener" initializeData="Application" /> ...

Checked install components

How can I check third-party components that is property installed before the web page start in web.config. And throw error before start. ...

WCF - One OperationContract sees Web.config, another doesn't

I have a WCF service with two methods, Ping and PutAddress. Ping works fine, but PutAddress was failing to initialize NHibernate correctly. Narrowing down the issue, I realized that the relevant settings from Web.config were not being read by PutAddress. Strangely, Ping does have access to the settings from Web.config. I removed al...

Location inheritInChildApplications kill debugger?

Hi I am wondering is this normal when you add this into your web.config <location path="." inheritInChildApplications="false"> </location> The debugger should stop working. Like when I add this to my site and try to run in debug mode it won't activate any of my debug points nor will it lock up Visual studios 2008. I can have it runn...

Error "Failed to decrypt using provider 'DataProtectionConfigurationProvider'... The RSA key container could not be opened." when trying to use encrypted system.web/identity on web service

Hi there, I'm receiving the following error when trying to access a web service that is using (for temporary reasons) an encrypted system.web/identity entry: Failed to decrypt using provider 'DataProtectionConfigurationProvider'. Error message from the provider: The RSA key container could not be opened. I've followed the steps found ...

What is the effect of <authentication mode="windows"> in versions of IIS?

I am wondering what the effect of setting <authentication mode="windows"> in the web.config is in different version of IIS. I believe that in IIS 5, it has little to no effect, as all of that is integrated and controlled by the web server. On IIS 6 and 7, I believe that I can set the web server to Anonymous access and then each hosted ...

Reference DLLs in ASP.NET without \Bin or GAC

I have an ASP.NET project under source control (Subversion). For various reasons, I don't want to add the \Bin directory or its contents to source control, so I have it svn:ignored. DLLs are loaded into here during a Visual Studio build, and I can start with a clean directory and/or delete all the contents of this directory and still hav...

Encrypting config files info

I have many ASP.NET applications running on server and i want to encrypt the web.config file for each. Is there a way I can encrypt all config files using single class/app or do i have to write separate code under each solution/project to encrypt config? I have idea how to do one file in a project using http://davidhayden.com/blog/dave/...