How to User HttpHandler such as .ashx file with IIS7 Integrated Mode, Webfarm Environment

Recently, we've moved our hosting for the Silicon Valley Code Camp to MOSSO, which is a hosted web farm.  In order to run modules and handlers, it seems it's necessary to run in IIS7's integrated mode.  Once this is set, other small issues creep up like for example you can no longer run HttpHandler's from the standard HttpHandler's section in your web.config file (see below) <httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.asmx" validate="false" ... <add verb="*" path="*_AppService.axd" validate="false" ... <add verb="GET,HEAD" … Continue Reading

How to do URL Rewrites with ASP.NET 2.0 3.0 3.5 on IIS6 and IIS7 and What is Wild Card Mapping

The Problem Over the past several years I've found myself running into the same problem over and over so I thought I'd blog the solution so at least I don't waste time figuring it out again.  So, when do you need this?  The answer for me is that I want to be able reference a web site without having to expose the underlying site structure.  For example, on the home page of my business, I want people to be able to type http://73rdstreet.com/Home and be taken to http://www.73rdstreet.com/HomeSite/Home.aspx. The Symptom You may see errors that say something like: Server Error in Application ... HTTP Error 404.0 - Not Found … Continue Reading

How to find your temporary asp.net executing assemblies location

Seems, I keep forgetting where the temporary files asp.net uses. The reason it's nice to know is sometimes you may want to open them with Reflector to see the generated code.  Also, sometimes, you want to delete those files because asp.net is confused and is reusing old ones.  So, here is the magic lines of code you need. … Continue Reading

Using MapPath with WCF Service, Setting aspNetCompatibilityEnabled to true

I'm just starting out using WCF in an application for the first time.  I'm using Visual Studio 2008 sp1 and created an asp.net web site from the standard create project wizard.  I then created a simple AJAX--enabled WCF Service as follows: I then added some code to the service that looks like the following (using MapPath): … Continue Reading

Follow

Get every new post delivered to your Inbox

Join other followers: