SolutionProfileReader problem with XmlSerializer

Topics: CAB & Smart Client Software Factory
Jun 21, 2006 at 3:03 AM
originally posted by: jdmoore99

When I run my CAB application in the debugger, I get the following exception:

A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll

Additional information: Could not load file or assembly 'Microsoft.Practices.CompositeUI.XmlSerializers, Version=1.0.51205.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

XmlSerializer serializer = new XmlSerializer(typeof(SolutionProfileElement));

It seems like "Auto generate serializers" is not working - I don't have a Microsoft.Practices.CompositeUI.XmlSerializers.dll in my output directory.

However, when I run my application outside the debugger and watch it with FileMon.exe, I can see that it does the "normal" thing and generates a deserialization assembly on the fly. In the debugger, it doesn't even attempt to generate the temporary assembly.

Anyone know a workaround?

Dave Moore