web-config

VS 2010 configuration transformation produces unwanted white space during deployment

I use the new VS 2010 configuration transformations to deploy websites. To replace a single setting of my ApplicationSettings I use the following configuration transformation: <setting name="TempPath" serializeAs="String" xdt:Transform="Replace" xdt:Locator="Match(name)"> <value>C:\TEMP</value> </setting> Remark: There is no white...

Changing where XmlSerializer Outputs Temporary Assemblies

Hi I am trying to change where XmlSerializer Outputs Temporary Assemblies so I am following this sort of tutorial http://www.hanselman.com/blog/ChangingWhereXmlSerializerOutputsTemporaryAssemblies.aspx yet when I add <system.xml.serialization> <xmlSerializer tempFilesLocation="c:\\foo"/> </system.xml.serialization> I get temp...

How can I use Web.debug.config in the built-in visual studio debugger server?

How can I merge and make use of Web.debug.config in visual studio 2010 built-in debugger? ...

How to create a barebones HttpApplication for ASP.Net (without Webforms or MVC)

Ok I am wanting to learn more about how ASP.Net works under the hood. I mean beneath MVC or Webforms and other such frameworks. Basically I want to know how those frameworks are wired onto ASP.Net so that they work with IIS. What would be the bare minimum for creating a simple HttpApplication which worked with IIS and used neither MVC o...

Local access only for ASP.NET web page

Is it possible to configure web.config to authorize a page to be only read locally (similar in concept to the RemoteOnly feature for error messages). ...

How to handle Non English Characters in web.config?

I have some non English characters being stored in my web.config file. I am able to save, close and reopen the file in notepad and everything looks good. When I try run the app, I get this error: Configuration file is not well-formed XML. How can I store non English characters in web.config? ...

External Config Files with elmah

I am using elmah (v1.1.11517.0) and am trying to move the config to an external source. My config currently looks like this: <?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="elmah"> <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/> ...

ASP.NET routing and physical paths in web.config

I use ASP.NET routing to rename the full paths of my URLs (ie. /page1/page2/file.aspx would just become /file.aspx). This doesn't work with web.config authorization, because that uses physical path/folder names. Is there a fix for this? ...

What is WebResource.axd?

I have troubles with blowery web and WebResource.axd. What is WebResource.axd? ...

ASP.Net - How to determine if web request is to a resource that allows anonymous users or not

I have denied anonymous access to the entire application using the following Web.Config setting: <authorization> <deny users="?" /> </authorization> Then, for various paths, I have allowed anonymous access using Web.Config settings such as this: <location path="Home/ShowLogin"> <system.web> <authorization> <allow users="*"/>...

ASP MVC 2 in Sharepoint 2007 Security Exception

Hello Everyone, I am trying to configure ASP MVC 2 Framework to run within a SharePoint 2007 install on IIS 6.0. I have managed to get the two web.config setups together, and made GAC and global.asax changes. When I try to access the MVC application within the SharePoint domain (http://Sharepoint.com/MVCApp), I get a security exceptio...

Controlling access with web.config

Hello, I am trying to control access to my website with windows integrated. <?xml version="1.0"?> <configuration> <system.web> <authentication mode="Windows"/> <authorization> <deny users="?"/> <allow roles="DOMAIN\The_group_that_can_access_it"/> </authorization> ... </system.web> </configuration> Except that, ...

share configuration between console application and asp.net web application

Hi all, I have a web.config file defined in my asp.net web application. I have many different settings configured there. I have another project, this time a console application. I'd like to read several configurations from my web.config file. How can this be done? Thank you ...

ASP.NET Session won't expire

Hey all I have the following in the web.config <sessionState cookieName="ASP.NET_SessionId" cookieless="false" mode="InProc" timeout="1" regenerateExpiredSessionId="true"/> however, after 1 min, the session won't expire. what can cause this? thanks ...

Is there a way to not use the traditional .config files for ASP.NET?

I find Web.config xml pretty verbose. Do you know any initiative made in the way to enable cleaner config files, using YAML, or .rb files, anything that could suck less? EDIT: I already know that FubuMVC web framework, built on top of ASP.NET, tries to reduce a lot the amount of XML you need to put in that file in order to work properl...

How to convert Untiy Configuration from 1.2.* to 2.0.*

In Unity 1.2, I had this text in web.config <type type="IRouteRegistry" mapTo="TownHall.Mvc.Routing.TownHallRoutes,TownHall.Mvc"> <typeConfig extensionType="Microsoft.Practices.Unity.Configuration.TypeInjectionElement,Microsoft.Practices.Unity.Configuration"> <constructor> <param name="routes" parame...

Java Webapp: catch 22 regarding dev/prod builds for a .war

There's something I just don't get regarding config files and dev or prod environments. If you have a .war and want to use the same .war in dev and prod (because the point of the dev environment being, well, to test that the .war is working fine, hence you don't want to test that .war and then deploy another .war right!?), then where do...

Exclude web.config from server when publishing website (not WAP) VS2005

Hi, How do I exclude Web.config from server when publishing website (not web application project) in Visual Studio 2005 I can see information how to add setting to the Web.Config but in this instance the Web.config is fine on the servers; so I do not want the problem of introducing possible faulty Web.config to a live environment. ...

Calling a .NET component from classic ASP - web.config not found

I have a classic ASP website (yes they still exist) that needs to call a .NET DLL registered for COM interop. A simple VBScript test indicates the component is properly installed. When the .asp page runs, it creates the component properly, but when a method is called there's an application-specific error message that leads me to believ...

webhost4life web.config mysql asp.net

I've gotten all kinds of connection strings from webhost4life. It really seems like they don't have people trained well enough to resolve technical issues beyond certain obvious things. I've tried more then 10 versions of this web.config file ,, custom errors off/remoteonly, authentication form/windows & password/pwd(as per support...