我开始玩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()