Vb.net 在另一个项目中对类的引用是无效的,但设置属性不会导致异常

Vb.net 在另一个项目中对类的引用是无效的,但设置属性不会导致异常,vb.net,debugging,visual-studio-2013,Vb.net,Debugging,Visual Studio 2013,我有一个VB.Net,里面有3个项目:2个迁移的vb6项目(主应用程序和闪屏)和一个C#项目 我正试图从3.5升级到Framework4.5,我看到了一件非常奇怪的事情:当我试图实例化SplashScreen类时,什么都没有发生。分配给它的变量显示为null,当我设置属性时,我没有得到异常,当我读取属性时,分配没有任何作用 我在代码后面会遇到安全异常: 33459681: Attempt by security transparent method 'XXX.UpgradeSupport..cc

我有一个VB.Net,里面有3个项目:2个迁移的vb6项目(主应用程序和闪屏)和一个C#项目

我正试图从3.5升级到Framework4.5,我看到了一件非常奇怪的事情:当我试图实例化SplashScreen类时,什么都没有发生。分配给它的变量显示为null,当我设置属性时,我没有得到异常,当我读取属性时,分配没有任何作用

我在代码后面会遇到安全异常:

33459681: Attempt by security transparent method 'XXX.UpgradeSupport..cctor()' to access security critical method 'SecondProject.classname..ctor()' failed.

 Assembly 'XXX, Version=3.57.5653.27754, Culture=neutral, PublicKeyToken=null' is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model.  Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may be the cause of this exception.
我确信这些都是相关的,但我不明白怎么回事——我没有看到任何描述这种行为的东西