Postsharp 未处理的异常只需添加引用即可
我开始使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已回答 http://www.sharpcrafters.com/forum/Topic4817- 18-1.aspx。
I have answered on http://www.sharpcrafters.com/forum/Topic4817-18-1.aspx.