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...
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 merge and make use of Web.debug.config in visual studio 2010 built-in debugger?
...
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...
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).
...
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?
...
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"/>
...
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?
...
I have troubles with blowery web and WebResource.axd.
What is WebResource.axd?
...
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="*"/>...
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...
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, ...
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
...
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
...
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...
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...
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...
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.
...
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...
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...