Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've seen several other posts similar to this (namely http://stackoverflow.com/questions/5237/solutions-for-working-with-multiple-branches-in-asp-net) but there are several issues that I have that seem to be different than other similar posts.

I have an ASP .NET application that uses a virtual directory off of localhost. There are several spots in the code where I need to reference the name of the virtual directory so the virtual directory needs to be in place and named correctly in order for it to work. I'm also using my httpd.conf file to format my URLs to avoid cluttered querystrings.

That being said, I just published my application and now need to create a branched environment for bug-fixes whenever there is a bug in the live code and I don't want to upload the dev code.

The trouble is that I need to be able to easily run my branched code parallel to my dev code without needing to do a bunch of work with IIS and config files every time I want to load in my branched code. The drawbacks are that the parallel environment needs to have the virtual directory in place and work with the same httpd.conf (for URL formatting).

I don't think Cassini would work because I need SSL and of course...the httpd.conf and the virtual directories would need to still be in place.

The perfect solution in my mind would be to run a parallel website to localhost with the same httpd.conf and the same virtual directory...but I'm running XP Pro and they don't "do" multiple websites.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Can you bypass SSL for development? That would allow you to use Cassini for each project.

If you're using IIS on XP (i.e. 1 site only), how about putting each project in a subfolder marked as an application? You'll likely need some modifications to your httpd.conf to accommodate your dev and production environment.

Of course upgrading to Win 7 is another option.

Yet another option is to script an IIS setting swap using adsutil.vbs. As you switch projects, just run a batch file configured to repoint the paths and you'll be good to go.

share|improve this answer
    
Thanks! I ended up going with the last approach you mentioned. But I couldn't find my adsutil (I read that SP3 deletes it) so I wrote a script of my own using this thread as a resource: stackoverflow.com/questions/371207/… –  Adam Nov 23 '09 at 18:23
    
Excellent. Glad you got a working solution. The script on that link is a good one too. –  Scott Forsyth - MVP Nov 23 '09 at 18:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.