Outside Connections With Cassini (VS2010)

52 sec read

Cassini is the little baby version of IIS that is built into Visual Studio. It makes debugging wonderful and is very light weight. Unfortunately it does not accept outside connections, say from another computer on your network. This is a real bummer when you want to demo some software or debug it on another device.

So it'd be pretty sweet if Visual Studio websites let us connect from other devices on the network, but is that even possible? It is, but it took people way smarter than me to figure it out. You can read a discussion about Connecting Remotely to WebDev.WebServer.exe (Stack Overflow).

Disclaimer 1: Cassini is absolutely not intended to be used in any type of production environment and I'm not advocating anything like that. If you use it in production, you will quickly see many performance and security issues.

Disclaimer 2: Messing with assemblies might mess stuff up, so be aware that this could end badly.

How to enable outside connections

Here's how you install in Windows 7:

  1. Download and extract this zip: Patched_DevServer.zip

  2. Copy everything from the unzipped folders DevServer_10_20 and DevServer_10_40 to C:Program FilesCommon Filesmicrosoft sharedDevServer10.0

  3. Register the WebHost assemblies… so open your command prompt as an admin and run:

    C:Program FilesMicrosoft SDKsWindowsv7.0AbinNETFX 4.0 Toolsgacutil.exe" /i "C:Program FilesCommon Filesmicrosoft sharedDevServer10.0WebDev.WebHost20.dll
    C:Program FilesMicrosoft SDKsWindowsv7.0AbinNETFX 4.0 Toolsgacutil.exe" /i "C:Program FilesCommon Filesmicrosoft sharedDevServer10.0WebDev.WebHost40.dll

Leave a Reply

Your email address will not be published. Required fields are marked *