TypeLoadException at startup of WCF

Posted by Kelly on Stack Overflow See other posts from Stack Overflow or by Kelly
Published on 2010-04-23T21:43:30Z Indexed on 2010/04/24 8:13 UTC
Read the original article Hit count: 773

Filed under:

I get the following error long before I hit the breakpoint at Main().

System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) at System.Reflection.Assembly.GetTypes() at Microsoft.Tools.SvcHost.ServiceHostHelper.LoadServiceAssembly(String svcAssemblyPath)

There is a suggestion that it might be a configuration error, but I don't see it when comparing to a similar, working example.

How do I "Retrieve the LoaderExceptions property" when it happens this early?

Thanks!

© Stack Overflow or respective owner

Related posts about wcfservice