[Remote Debugging – Visual Studio] Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor…


When you try to debug remote server (“Default” transport) you may bump into this error:



“Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named “xxxxx”.
The requested name is valid, but no data of the requested type was found
There is no server by the specified name running on the remote computer.”

Read the rest of this entry »

1 Comment

Posted by on February 26, 2013 in Uncategorized


Tags: , ,

WCF – Serialization – DataContract runtime error – Type ‘myType’ cannot be serialized

My scenario:

(View it on stackoverflow)

Trying to pass “complex” class type that contains primitive types with interfaces and lists of interfaces/classes.

I guess the problematic member is:

public List<IMyInterface> IntrfList

Runtime Error:

An error occurred while receiving the HTTP response to http:/localhost/xxxxxx/xxxxxService.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.

The descriptive error from MS Service Trace Viewer (SvcTraceViewer):

Type ‘myType’ cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

Read the rest of this entry »


Posted by on November 6, 2012 in Uncategorized


How to stop Visual Studio 11 (Preview) from auto check-out your solution on opening

  1. Check out your solution.
  2. Edit the xxxn.sln file with your file editor.
  3. Locate this line:GlobalSection(ExtensibilityGlobals) = postSolution
    BuildVersion_BuildVersioningStyle = None.MonthStamp.DayStamp.Increment
    BuildVersion_ConfigurationName = Release
    BuildVersion_IncrementBeforeBuild = False
    BuildVersion_UpdateAssemblyVersion = False
    BuildVersion_UpdateFileVersion = False
    BuildVersion_UseGlobalSettings = False


  4. Edit it to be:GlobalSection(ExtensibilityGlobals) = postSolution


  5. Check in, and reopen the solution.
Leave a comment

Posted by on June 4, 2012 in Uncategorized


MSI Installation Incomplete, MSBuild Task warning while compiling, “Microsoft.Build.Tasks.GenerateResource” trying to use CLR2


You are trying to build a setup project (msi) within Visual Studio, build runs fine, but when trying to deploy the package, the installation fails with unknown fatal error.

Read the rest of this entry »

Leave a comment

Posted by on March 20, 2012 in Uncategorized


Returning last inserted id in C# using MySql DB provider


As experimenting the integration of MySql database with c# code I came across to a problem that seemed to be a common issue.

Mostly, after executing an INSERT statement you’d like to get back the new ID of the record.
Intuitively, you would think about  creating an output parameter and use  @@IDENTITY or scope_identity() or LAST_INSERT_ID() to assign the value to it.

Unfortunately, it seems that when I use this statement: “SET @newID := @@IDENTITY” I get an exception about sql syntax. Reviewing the exception reveals that somehow it repaced the “@newID” with NULL and therefore not allowing execution. (In my case i used SQL statement and not stored procedure).

As stated here, MySql does not support out parameters in the protocol yet.

All the suggested solutions I found didn’t made this work.

Read the rest of this entry »


Posted by on October 28, 2011 in c#, MySql, SQL, Uncategorized, visual studio 2010


Overcoming WebServices unsupported serialization of Dictionary/Hashtables (Generic Collections)


In a scenario that you intend to use WebService for retrieving collection (list) of data that is a bundled with related objects (Dictionary or Hashtable).
To make the things even more complex, you want that one of the related objects will be generic.
You are likely to face an error indicating that C# cannot serialize IDictionary related classes.

Returning generic classes is not allowed though.

Read the rest of this entry »

Leave a comment

Posted by on October 27, 2011 in Uncategorized


Delegate In Foreach Iteration Bug – Solution


When declaring delegates (anonymous methods) inside of foreach loop, the container only get the last delegate calculated.
The reason is that the foreach loop is designed to reuse declared variables, in our case the delegate is used as a type declared before the loop and reused.

Read the rest of this entry »


Tags: , , , , , ,