web-config

How do I set up smtp on Vista so I can use System.Net.Mail from local picup directory?

I've tried using the below solution (also found here: http://stackoverflow.com/questions/701887/how-do-i-set-up-smtp-on-vista-so-i-can-use-system-net-mail/701926#701926) but I receive "Cannot get IIS pickup directory". I know I am pointing to an existing directory and my web.config are set up correctly, are there permissions I need to se...

ASP.NET 4 web.config transformation MSBUILD

Hi, I want to use the newly introduced web.config transformation options in VS2010. But I'm not using the Deploy option of VS2010, i'm using Web Deployment Projects with MSBUILD tasks. Can I apply the transformation with an MSBUILD task? ...

URLMapping works on Local, but not on Server

Hey! I'm using VS2010 and on my local machine, using web.config to map one url to another works fine, using the tag. However, as soon as I upload to the IIS6 server it doesn't work at all! Is there something about IIS6 that doesn't support this feature? Thanks, any help would be massively appreciated. ...

IIS ignores system.webServer staticContent section

UDPATE On a whim, I decided to upload the 4 fonts files to an font converter. I converted the fontsfrom ttf to ttf and then tried it. Everything works fine: the Content-Type is set correctly and the X-Powered-By header is removed. Weird. I am trying to change the mime type (Content Type header) of a .ttf file in web.config on IIS7. ...

Windows "forms" authentication - <deny users="?"> redirecting to foreign page!

Like the title states - I have a web.config file that looks like, <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> <authentication mode="Forms"> <forms name="login" protection="All" timeout="30" loginUrl="login" defaultUrl="~/"> <cr...

What is a good resource for understanding web.config in asp.net?

I modify web.config when I HAVE TO :-) Debugging setting, session state setting, etc. But in those cases, some tutorial or error message has been explicit: "Open web.config and do XYZ". What I wonder is, what else can it do? What things that I do now in other ways would be better done in web.config. Is there a good primer or even a ...

Configure Webmatrix for Windows Users

I create asp .net page and i have use windows user to authenticate. <authentication mode="Windows" /> I create simply page with one label and display information. if (Page.User.Identity.IsAuthenticated) { Label1.Text = "Authenticated = 'TRUE'<br/>"; Label1.Text = Page.User.Identity.Name; } else { Label1.T...

HttpHandler in IIS7 and Visual Studio 2010

Hello, I'm trying to run an httphandler (ashx) in a asp.net 4 website. When I call it from Visual Studio integrated server, it returns a 404 error. It works if I call it on the site configured into the local IIS. Someone could help? ...

web.config changes in installer and based on targeted environment

Need some assistance with my Visual Studio projects and in particular with release process. To release my web application, I use a web deployment project to deploy my web application. I have split my connection strings and app settings into a seperate config files, with a config file for each environment I might be creating the msi for ...

How to tell C# which config file to use?

Possible Duplicate: Reading dll.config (not app.config!) from a plugin module. I have two different projects, say A and B. I need to use some classes of A in B. So I added a reference to A in B. When I tried to run the application, I stated getting Object reference set to null exception. On investigation, I found that when I a...

Encrypting custom sections of a web.config

I used the article Creating a Flexible Configuration Section Handler to create a Flexible Configuration Section Handler in my application. I also saw this article entitled Encrypting Custom Configuration Sections on the OdeToCode blog, on how to encrypt portions of a web.config file. From the first article, we have this web.config code...

How do I send email to files in ASP.NET?

I remember reading somewhere that it's possible to configure your web.config to send email to files, instead of setting up a real SMTP server for development. How is this done? ...

Settings.Designer.cs vs Web.config

I have just joined a project that has a connection string which is defined in the Settings.Designer.cs file and also defined in the web.config file. When I need to look at a different instance of my DB I have to modify both values. I am unfamilier with why the Settings.Designer.cs file is being used. What is the value of using Setting...

Do web.config transformations work during build/develop cycle not just during publish?

Hi, I'm trying to develop my first web application using Web.Config transformations. Trying to run the app (building with the "Dev" build configuration)in the Asp.Net Debugging web server built into VS the site doesn't seem to work - the "Web.Dev.config" configuration doesn't appear to be seen by the application. Is this to be expecte...

Should I clean *.vshost.exe and *.vshost.exe.config from release directories?

I have found a number of vshost files in production deployment folders. I know what these are for and that they don't belong here. My question is, do they do any harm? Is it worth me spending the time checking all of the deployment folders for 100+ applications to make sure that they are removed, or is this a waste of time? I would have...

How do I read a settings value from the web.config file in an ASP.NET application?

I'm trying to use the following command: Dim xmlFilePath As String = _ System.Configuration.ConfigurationManager.AppSettings("XmlFilePath") to retrieve the following setting: <applicationSettings> <MySolution.WebProject.My.MySettings> <setting name="XmlFilePath" serializeAs="String"> <value>C:\ASP.NET\Fold...

How do I get HTTP Handlers in a .NET 4.0 application to work under IIS 6?

This is related to another question specific to getting the Silverlight Pivot Server application running on IIS 6. Do I have to manually add the handlers via IIS? ...

ASP.NET connection strings and DSN connections

Hello, I have a dBase file that I want to set up as a database. I was thinking of setting up an ODBC DSN system connection and connect using this. How do I set this up in an asp.net web.config file and use it <connectionStrings configSource="MyFolder\database.config" /> Inside Database file <connectionStrings> My Connection Here???<...

Custom Config file with subelements instead of attributes

I am working on making a custom section of my app.config and web.config to read a configuration in. I'm following the code at http://consultingblogs.emc.com/pauloreichert/archive/2005/05/31/1514.aspx for my sample. The problem is, my config file generates as follows: <configSections> <section name="BizDays" type="Holidays.BizDaysS...

What is the best way to handle multiple mail servers in the mailSettings section of the web.config?

I have an application that sends 500K+ transactional emails a month. Some are more important than others. I need the important emails to go out using a high-delivery email solution with tracking (read more expensive) and the less important emails using an ordinary mail server. Is there a way setup multiple smtp sections in mailSettings ...