Tag: vs

visual studio port and firewall interference

visual studio (vwd) keeps saying “unable to launch because the port is in use” no matter what port / whether auto-assign is true. netstat / telnet dont show anything either.

http://stackoverflow.com/questions/607562/visual-studio-development-server-using-wrong-port

explains that a firewall update can make things go awry

On investigating I found it to be related to the Eset personal security (guessing a recent update messed something up). To solve it I excluded VS2008 from the active browser filtering – this is in: setup -> advanced firewall setup -> antivirus & anti spyware -> web access protection -> HTTP -> webbrowsers

Deselecting vsdev in here fixed the problem – interestingly enough disabling the firewall and antivirus / antispyware did not solve the issue, so it is worth looking for a similar setting if you are running different security software

platform target else dll not found

Platform Targets for Unit Test Projects apparently need to be set.

A Unit Test Project that runs fine locally with an x86 machine fails to on a 64 bit Build Machine with an error:

Ensure that the assembly XYZ is located in the application directory or in the Global Assembly Cache.

But its there. Whats missing is a <PlatformTarget>x86</PlatformTarget> tag in the Release / Debug configuration.

Just whip out the proj file and look for:

<PropertyGroup Condition=” ‘$(Configuration)|$(Platform)’ == ‘Release|AnyCPU’ “> (Or Debug) and add this.

Also, if this dll is not used directly in this project, a dummy unit test that explicitly calls some class in the referred dll will also help the UTF prepare a list of dlls needed.