Working with Visual Studio Web Development Server and IE6 in XP Mode on Windows 7

Posted by Igor Milovanovic on Geeks with Blogs See other posts from Geeks with Blogs or by Igor Milovanovic
Published on Mon, 26 Apr 2010 21:39:49 GMT Indexed on 2010/04/26 21:53 UTC
Read the original article Hit count: 557

Filed under:

 

(Brian Reiter from  thoughtful computing has described this setup in this StackOverflow thread. The credit for the idea is entirely his, I have just extended it with some step by step descriptions and added some links and screenhots.)

 

If you are forced  to still support Internet Explorer 6, you can setup following combination on your machine to make the development for it less painful. A common problem if you are developing on Windows 7 is that you can’t install IE6 on your machine. (Not that you want that anyway). So you will probably end up working locally with IE8 and FF, and test your IE6 compatibility on a separate machine. This can get quite annoying, because you will have to maintain two different development environments, not have all the tools available, etc.

 

You can help yourself by installing IE6 in a Windows 7 XP Mode, which is basically just an Windows XP running in a virtual machine.

 

[1] Windows XP Mode installation

 

After you have installed and configured your XP mode (remember the security settings like Windows Update and antivirus software), you can add the shortcut to the IE6 in the virtual machine to the “all users” start menu. This shortcut will be replicated to your windows 7 XP mode start menu, and you will be able to seamlessly start your IE 6 as a normal window on your Windows 7 desktop.

 

[2] Configure IE6 for the Windows 7 installation

 

If you configure your XP – Mode to use (Shared Networking)  NAT, you can now use IE6 to browse the sites in the internet. (add proxy settings to IE6 if necessary)

 

image

 

 

 

 

 

 

 

 

 

 

The problem now is that you can’t connect to the webdev server which is running on your local machine. This is because web development server is crippled to allow only local connections for security reasons.

 

In order to trick webdev in believing that the requests are coming from local machine itself you can use a light weight proxy like privoxy on your host (windows 7) machine and configure the IE6 running in the virtual host.

 

The first step is to make the host machine (running windows 7) reachable from the virtual machine (running XP). In order to do that, you can install the loopback adapter, and configure it to use an IP which is routable from the virtual machine. In example screenshot (192.168.1.66).

 

[3] How to install loopback adapter in Windows 7

 

After installation you can assign a static IP which is routable from the virtual machine (in example 192.168.1.66)

image

 

 

 

 

 

 

 

 

 

 

The next step is to configure privoxy to listen on that IP address (using some not used port, in example, the default port 8118)

 

Change following line in config.txt:

 

#
#      Suppose you are running Privoxy on an IPv6-capable machine and
#      you want it to listen on the IPv6 address of the loopback device:
#
#        listen-address [::1]:8118
#
#
listen-address  192.168.1.66:8118

 

The last step is to configure the IE6 to use Privoxy which is running on your Windows 7 host machine as proxy for all addresses (including localhost)

 

image

 

 

 

 

 

 

 

 

 

 

 

 

 

And now you can use your Windows7 XP Mode IE6 to connect to your Visual Studio’s webdev web server.

 

image

 

 

 

 

 

 

 

 

 

 

 

[4] http://stackoverflow.com/questions/683151/connect-remotely-to-webdev-webserver-exe

© Geeks with Blogs or respective owner