VS2013 .net application fails to run on Windows XP

Do you run into following error when trying to run a VS2013 .net application on Windows XP? Error: Not a valid Win32 application! This happens because the application is targeting .net framework 4.5 which is not supported on Windows XP. Target a lower framework to get your application working on XP.
Continue reading…

 

TRACKER : error TRK0002: Failed to execute command

Had a customer who a opened a ticket for help on this error. The project built fine on Windows 8 but after upgrading to Windows 8.1 he started seeing above error on compilation using a 64 bit toolset. After much troubleshooting we found the issue to be caused by a pre-release version of WDK installed […]
Continue reading…

 

The Great C Runtime (CRT) Refactoring

The C Runtime is being refactored… Note CRT is being refactored. The implementation is split into different modules. Read more here: http://blogs.msdn.com/b/vcblog/archive/2014/06/10/the-great-crt-refactoring.aspx  Relevant excerpt from above blog post: In order to unify these different CRTs, we have split the CRT into three pieces: VCRuntime (vcruntime140.dll): This DLL contains all of the runtime functionality required for […]
Continue reading…

 

System.DateTime Custom Formatters

Problem Recently a customer opened a ticket thinking that there is an issue with the DateTime formatting function. They had the following piece of code. namespace DateTimeDefect{    class Test    {            static void Main(string[] args)            {                DateTime dt = DateTime.Now;                 Console.WriteLine(dt.ToString(“f”));                Console.WriteLine(dt.ToString(“ff”));                Console.WriteLine(dt.ToString(“fff”));                 Console.ReadLine();            }    }} Except for dt.ToString(“f”) the other two were returning […]
Continue reading…

 

A new look for .NET Reference Source

Just saw this… (totally cool) J http://referencesource.microsoft.com/ Channel nine video: http://channel9.msdn.com/Series/NET-Framework/How-to-browse-the-NET-Reference-Source Further details on our blog: http://blogs.msdn.com/b/dotnet/archive/2014/02/24/a-new-look-for-net-reference-source.aspx
Continue reading…

 

Troubleshooting side by side issues using sxstrace

Side by side errors are troublesome to troubleshoot. You run an MFC/CRT application on customer machine and you run into error dialogs similar to the one shown below… Don’t get overawed by the error. Its quite easy to troubleshoot, hmm well. As the error message suggests let use sxstrace.exe. The usage of sxstrace is pretty […]
Continue reading…

 

Error when application run from a network share: That assembly does not allow partially trusted callers!

Recently had a customer who faced this issue when his application is run from a network share. The exception information is as follows … ************** Exception Text ************** System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for dataConfiguration: That assembly does not allow partially trusted callers. (G:SystemBackofficeCitrix2008MediaExplorerRev2008ProdMfm.MediaExplorer.exe.Config line 28) —> System.Security.SecurityException: That assembly does […]
Continue reading…

 

Using Visual Basic PowerPack DataRepeater control in Visual Studio 2013

DataRepeater is great control to display data from a table/view, as the name says repeats bunch of fields from a dataset on every row. Follow these simple steps to get started working with this control… Step 1: Add a reference to the PowerPack library as shown here: http://ntcoder.com/bab/2013/12/20/visualbasic-powerpack-missing-from-visual-studio-2013/ Step 2: Make sure you’ve got the […]
Continue reading…

 

[Interop] Call into .net/managed code from native/unmanaged code

Introduction I’ve got a native console application which would like to call into a piece of managed code written in C#. This is the how the C# function “Sum” looks like… My solution explorer looks as follows… CSharpModule is a CSharp library while TestManagedCall is a native/unmanaged project. My requirement is as follows: call Class1.Sum […]
Continue reading…

 

Interesting read: Microsoft Intermediate Language (MSIL) instructions

Taken from MSDN: http://msdn.microsoft.com/en-us/library/system.reflection.emit.opcodes_fields(v=vs.120).aspx  AddAdds two values and pushes the result onto the evaluation stack. Add_OvfAdds two integers, performs an overflow check, and pushes the result onto the evaluation stack. Add_Ovf_UnAdds two unsigned integer values, performs an overflow check, and pushes the result onto the evaluation stack. AndComputes the bitwise AND of two values and […]
Continue reading…