Category Archives: .Net

XslLoadException: The type or namespace name ‘SecurityRulesAttribute’ does not exist in the namespace ‘System.Security’ (are you missing an assembly reference?)

While porting a project from .Net 3.5 to .Net 4 we got this weird error. The error occurs when loading an XSLT in memory. Here is the failing piece of code (simplified): private static XslCompiledTransform ReadXslt(string fname) { XslCompiledTransform xsl … Continue reading

Posted in .Net, Development | Tagged , , | 1 Comment

Using a TreeView in WPF

Using a tree view in Windows Forms is straightforward, but in WPF the control has undergone a lot of modifications. In this blog I’ll describe how to do some tasks that seem to be easy enough, and describe some caveats. … Continue reading

Posted in .Net, Development | Tagged , , | Leave a comment

Rediscovered the Debug attributes

There are 2 attributes that can easily be applied to your classes / methods to modify the behavior at debugging time. The attributes don’t change the runtime behavior of your code. [DebuggerDisplay] This attribute defines how you’ll see a type … Continue reading

Posted in .Net, Debugging, Development | Tagged , | Leave a comment

Could not load file or assembly ‘System.EnterpriseServices.Wrapper.dll’

I had this error when running a .Net 3.5 app that is using a DB2 connector on a Win XP SP3 machine. The application has always worked until today and is in no way using the referenced assembly (just executing … Continue reading

Posted in .Net, Assembly | Tagged , , , | 2 Comments

FuslogVw–debugging assembly loading

We’ve all had it before: referencing some libraries, recompiling the project and then the variation on the DLL hell: the assembly hell. Suddenly one of your assemblies (or on of its dependent assemblies) doesn’t load anymore. Debugging this can be … Continue reading

Posted in .Net, Assembly, Development | Tagged | Leave a comment