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

Windows Error Reporting (WER) Web Service

I have long thought that one of the coolest features of the Windows OS for developers is the Windows Error Reporting infrastructure (with roots in Dr. Watson).  You can have your application upload dumps to the WinQual portal – http://winqual.microsoft.com. One of the problems though has always been getting those dumps off of the WER…

0

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…

3

A Few TFS 2008 Pre & Post Installation things you need to know

The PFE Dev team would like to welcome Micheal Learned to the blog.  Here is a bit about Mike: My name Is Micheal Learned, and I’ve been working for Microsoft for over a year now with some of our Premier customers across the US, and helping them support a variety of .NET related systems and…

1

Why is my Window Grayed Out?

Starting back in Windows 2000, if I recall correctly, the OS added a feature to try and handle unresponsive windows.  The idea is that if an application hangs we do not want the window that is associated with that application to block other stuff that the user is trying to do.  This feature has been…

1

SN.EXE and Empty Temp Files in %TEMP%

If you have a build server and are doing delay signing this is probably of interest to you.  When delay signing the final step is to post build run the following command: sn -R myAssembly.dll sgKey.snk I have seen build setups that basically output all binaries to one folder and then run a loop across…

0

Debugging Large ViewState

This week I have been working with a customer that had pretty large ViewStates that were getting pushed up and down between the client and the server.  The application was moving about 200+ KB of ViewState between the client and server.  This is something we picked out quickly as a scale issue. Now Tess has…

1

$(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

All the Ways to Capture a Dump…

Frequently when troubleshooting a problem we capture a memory dump.  Memory dumps are a great tool because they are a complete snapshot of what a process is doing at the time the dump is captured.  It can be a great forensic tool.  There are however an abundance of tools to capture memory dumps (*.dmp).  In…

6