开发者

Linker error 348: Compilation failed. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information

开发者 https://www.devze.com 2023-01-12 13:36 出处:网络
Greetings everyone.I am hitting a road block on a very strange linker error and I thought I would throw it out here in the community to see if anyone has any thoughts (or better yet has seen it before

Greetings everyone. I am hitting a road block on a very strange linker error and I thought I would throw it out here in the community to see if anyone has any thoughts (or better yet has seen it before).

The error is this: error 348: Compilation failed. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

The scenario is this: I have 3 class library assemblies (Li开发者_JAVA百科b1, LibCommon, Lib2) and as you might have guessed, LibCommon is referenced by both Lib1 and Lib2. The error seems to occur when I add a new class to LibCommon and then use it in Lib2 (using it in Lib1 is never a problem).

Environment: Windows Server 2003 Visual Studio 2008 SP1 .NET 3.5 SP1 C#

Any thoughts?


I came across this error by trying to use the [OnDeserializing] attribute on a method with the incorrect method signature. Fixing the method signature resolved the error.

0

精彩评论

暂无评论...
验证码 换一张
取 消