Debugging .NET Serialization Code


Just what is your XmlSerializer doing? You can find out by debugging the serialization code which is generated automatically at runtime; 1. Modify your .config file to include the following snippet 2. Rebuild your code and set a breakpoint on or just after where you create an instance of the XmlSerializer, but before you call … Continue reading Debugging .NET Serialization Code

Showing an Assemblies Fully Qualified Name


To show the fully qualified name of an assembly you can use Lutz Roeders Reflector, or you can write a simple console application to do the same thing. namespace showtypeinfo {    class Program    {       static void Main(string[] args)       {          if (args.Length < 1) {             return;          }          Assembly … Continue reading Showing an Assemblies Fully Qualified Name

Load InfoPath Forms with Managed Code from Sharepoint


When loading an InfoPath form from a Sharepoint document library, you may be presented with a policy error message indicating that (Internet) forms with managed code cannot be loaded. This can be a pain in the neck while developing, but can be circumvented by making the following registry change; HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\InfoPath\Security:RunManagedCodeFromInternet(DWORD) = 1