Next generation's garbage RSS 2.0
# Friday, November 13, 2009
There appears to be a bug in how Visual Studio does "Add Service Reference" proxy generation for VB.NET projects.

I ran into this issue when trying to add a service reference to Bing Maps and I believe it is not limited to that. I think it stems from it misunderstanding that enum instance variables cannot be tested for equality using .Equals in VB... not sure why.

I think the solution is to simply replace the offending line:
If Me.enumfield.Equals(value) <> true Then
with
If Not Object.Equals(Me.enumfield ,Value) Then

BTW: DO NOT compare boolean results to True or False as they have done!

Use
If boolean_results Then
or
If Not boolean_results Then

Friday, November 13, 2009 4:41:25 PM (US Mountain Standard Time, UTC-07:00)  #    Comments [0] -
.NET Internals | Bing Maps | Visual Studio
# Monday, October 05, 2009
Got the BlackBerry VS9 Plugin running in Visual Studio 2008 running in Windows 7 x64.
Not sure what of these steps are really necessary, but this is what I did:

Copied "Research In Motion" directory from "Program Files (x86)" to "Program Files". This gave me a different error.

Discovered using SysInternal's ProcMon that it was trying to launch RIM.Net.Tools.ScriptHost.exe from the root, so I copied that and all the other stuff in the plugin's bin folder to the root, yes, C:\.

That gave me another error, so then I set VS2008 to run in XP SP3 compatibility mode.

Tada!

Monday, October 05, 2009 3:09:27 PM (US Mountain Standard Time, UTC-07:00)  #    Comments [0] -
Visual Studio | Windows 7
Archive
<March 2010>
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910
All Content © 2010, Hafthor Stefansson - Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way. - Sign In