Ed Evans [mailto:[EMAIL PROTECTED] wrote:

> The code below throws a strange exception. You'd expect it to
> complain that FooStuff is inaccessable because it's private,
> but instead it says: "File or assembly name giy710lb.dll, or
> one of its dependencies, was not found." And to confuse the
> matter, the missing assembly in question is different every
> time the exception is thrown.
>
> Any ideas?

Well, the assembly name is different every time because the assembly is
generated by the XmlSerializer architecture using Reflection.Emit based on
your specific object heirarchy.

As far as why you get this error and not a complaint about the private
class, I'd consider that a bug as well. However, since you now realize what
the problem is: Don't do that! ;)

Later,
Drew

[ .NET MVP | weblog: http://dotnetweblogs.com/dmarsh ]

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
You may be interested in Guerrilla .NET, 24 March 2003, in London
http://www.develop.com/courses/gdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to