Warning C4564 (method defines unsupported default parameter) when building C++/CLI project that cons

Following is the warning signature:     ReadersManager.cpp(311): warning C4564: method ‘SetNewRecord’ of class ‘System::Data::DataTable’ defines unsupported default parameter ‘action’ 3>          Specify value ‘2’ explicitly when calling the method 3>          This diagnostic occurred while importing type ‘System::Data::DataTable ‘ from assembly ‘System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’. 3>     …

Continue reading →

Strange exception with .NET 4 – ‘SecurityRulesAttribute’ does not exist in the namespace ‘System.Sec

On creating a Base Form in Visual Studio 2008 and adding an additional form for inheritance, I started getting weird errors and was not seeing the Inherited Form.vb [Design] because of errors:TheserviceSystem.Windows.Forms.Design.IEventHandlerService already exists in the service container. Parameter name: serviceType or There is already a command handler for the menu command ‘5efc7975-14bc-11cf-9b2b-00aa00573819 : 17.  I was …

Continue reading →