What does High Performance Mean?

Over my years in PFE and Microsoft as a whole I have worked on some REALLY cool websites and applications that are used around the world and drive a lot of business.  Getting work on these cool projects is one of the main reasons that I love what I do.  Getting to see what cool…

0

Passing a Managed Function Pointer to Unmanaged Code

I was working with a customer a while back and they had a situation where they wanted to be able to register a managed callback function with a native API.  This is not a big problem and the sample that I extended did this already.  The question that arose was – How do I pass…

0

Best Practice – Workflow and Anonymous Delegates

Best Practice Recommendation In your Workflow application (more exactly in the host of your workflow application) never use anonymous delegate like that : AutoResetEvent waitHandle = new AutoResetEvent(false); . . . workflowRuntime.WorkflowTerminated += delegate(object sender, WorkflowTerminatedEventArgs e) { waitHandle.Set(); }; Details The code above is very common and works correctly at least most of the…

2

.NET Framework 2.0 Service Pack 2

I have worked with several customers that want .NET Framework 2.0 SP2 but do not want to either require their customers to install .NET Framework 3.5 w/ SP1 or do not want to do it themselves. Well due to the way it was packaged up until this point that was the only way to get…

1

Best Practice – WCF and Exceptions

Best Practice Recommendation In your WCF service, never let an exception propagate outside the service boundary without managing it. 2 Alternatives then : Either you manage the exception inside the service boundary and never propagate it outside Or you convert the .Net typed exception in your exception manager as a FaultException before propagating it. Details…

1

Best Practice – <GeneratePublisherEvidence> in ASPNET.CONFIG

Best Practice Recommendation Add the following line to your ASPNET.CONFIG or APP.CONFIG file: <?xml version="1.0" encoding="utf-8"?> <configuration> <runtime> <generatePublisherEvidence enabled="false"/> </runtime> </configuration> Note the ASPNET.CONFIG file is located in Framework Directory for the version of the Framework you are using.  For example for a 64-bit ASP.NET application it would be: c:\Windows\Microsoft.NET\Framework64\v2.0.50727 For a 32-bit application…

2

$(SolutionDir) and MSBUILD

A while back I was working with a customer that was moving from doing all of their builds with the devenv command line to using MSBUILD.  However we ran into a hiccup that did not make sense at first.  Basically when they tried to build their solution using MSBUILD some of the custom build steps…

2

Investigate High CPU for a Process: Part 1

Hello World! This is my 1st ever blog and I hope there is more to come after this. So my name is Leo Leong and I am one of among many in the field that goes out to attend situations when there is a dev issue. In many ways, I’ve always thought that we are…

0

WinDBG and Hangs When Debugging Managed Dumps

Because this is my first post on this blog, let me introduce myself.  My name is John Allen.  I’ve been on the PFE team for 5 years and been with Microsoft for 9 years.  All of those years I’ve been debugging and troubleshooting all kinds of customer applications.   I focus on all developer technologies and…

0