Postsharp 未处理的异常只需添加引用即可

发布于 2024-09-07 00:41:00 字数 1707 浏览 2 评论 0原文

我开始使用 Postsharp,但无法迈出第一步。其他人在他们的论坛上进行了报道 http://www.sharpcrafters.com/forum /Topic4817-18-1.aspx 但想知道是否有人遇到过这个问题并且也许有解决方案。

我使用VS2008并安装了.net3.5SP1。

(在这里发帖是因为这里的活动比他们的论坛更多)。

POSTSHARP : postsharp error : error: Unhandled exception (2.0.6.1236, 32 bit, CLR 2.0, 
Release): Object type cannot be converted to target type. See below for details.
POSTSHARP : postsharp error : System.ArgumentException: Object type cannot be  converted to target type.
POSTSHARP : postsharp error :    at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
POSTSHARP : postsharp error :    at PostSharp.Hosting.PostSharpDomainManager.CreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup appDomainInfo)
POSTSHARP : postsharp error :    at System.AppDomain.CreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup info)
POSTSHARP : postsharp error :    at System.AppDomain.CreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup info, PermissionSet grantSet, StrongName[] fullTrustAssemblies)
POSTSHARP : postsharp error :    at PostSharp.Hosting.DotNet.DotNetPlatform.CreateAppDomain(String _0, Evidence _1, AppDomainSetup _2, PermissionSet _3)
POSTSHARP : postsharp error :    at PostSharp.Hosting.PostSharpObject.CreateInstanceInPrivateAppDomain(PostSharpObjectSettings settings, IPostSharpHost host)
POSTSHARP : postsharp error :    at PostSharp.Hosting.PostSharpObject.CreateInstance(PostSharpObjectSettings settings, IPostSharpHost host)
POSTSHARP : postsharp error :    at PostSharp.Hosting.Program.ExecuteImpl()

I started playing with Postsharp but cannot get past the first step. Someone else reported on their forums at http://www.sharpcrafters.com/forum/Topic4817-18-1.aspx but was wondering if anyone has come across this and perhaps have a solution.

Am using VS2008 and have .net3.5SP1 installed.

(Posting here as there is more activity than their forum).

POSTSHARP : postsharp error : error: Unhandled exception (2.0.6.1236, 32 bit, CLR 2.0, 
Release): Object type cannot be converted to target type. See below for details.
POSTSHARP : postsharp error : System.ArgumentException: Object type cannot be  converted to target type.
POSTSHARP : postsharp error :    at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
POSTSHARP : postsharp error :    at PostSharp.Hosting.PostSharpDomainManager.CreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup appDomainInfo)
POSTSHARP : postsharp error :    at System.AppDomain.CreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup info)
POSTSHARP : postsharp error :    at System.AppDomain.CreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup info, PermissionSet grantSet, StrongName[] fullTrustAssemblies)
POSTSHARP : postsharp error :    at PostSharp.Hosting.DotNet.DotNetPlatform.CreateAppDomain(String _0, Evidence _1, AppDomainSetup _2, PermissionSet _3)
POSTSHARP : postsharp error :    at PostSharp.Hosting.PostSharpObject.CreateInstanceInPrivateAppDomain(PostSharpObjectSettings settings, IPostSharpHost host)
POSTSHARP : postsharp error :    at PostSharp.Hosting.PostSharpObject.CreateInstance(PostSharpObjectSettings settings, IPostSharpHost host)
POSTSHARP : postsharp error :    at PostSharp.Hosting.Program.ExecuteImpl()

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文