SharpCrafters Forum – PS 1.5.6.761 | Unhandled excp: System.InvalidCastException:

SharpCrafters Support Forum

        


PS 1.5.6.761 | Unhandled excp:... Expand / Collapse
Author
Message
Posted 2/5/2010 9:17:06 AM


Community Member
Error 13 Unhandled exception: System.InvalidCastException: [A]UUU.VVV.Trace.TraceAttribute cannot be cast to [B]UUU.VVV.Trace.TraceAttribute. Type A originates from 'UUU.VVV.Trace, Version=1.5.3687.31428, Culture=neutral, PublicKeyToken=null' in the context 'LoadNeither' at location 'C:\UUU.VVV.Trace\bin\debug\UUU.VVV.Trace.dll'. Type B originates from 'UUU.VVV.Trace, Version=1.5.3687.31428, Culture=neutral, PublicKeyToken=null' in the context 'LoadFrom' at location 'C:< Integrated Project>\bin\Debug\UUU.VVV.Trace.dll'.
  at UUU.VVV.Trace.TraceTask.ProvideAdvices(Weaver codeWeaver) in c:\UUU.VVV.Trace.Weaver\TraceTask.cs:line 326
  at PostSharp.CodeWeaver.WeaverTask.Execute() in c:\Users\gael.000\svn\postsharp\branches\1.5\Core\PostSharp.Core\CodeWeaver\WeaverTask.cs:line 45
  at PostSharp.Extensibility.Project.ExecutePhase(String phase) in c:\Users\gael.000\svn\postsharp\branches\1.5\Core\PostSharp.Core\Extensibility\Project.cs:line 1230
  at PostSharp.Extensibility.Project.Execute() in c:\Users\gael.000\svn\postsharp\branches\1.5\Core\PostSharp.Core\Extensibility\Project.cs:line 1273
  at PostSharp.Extensibility.PostSharpObject.ExecuteProjects() in c:\Users\gael.000\svn\postsharp\branches\1.5\Core\PostSharp.Core\Extensibility\PostSharpObject.cs:line 616
  at PostSharp.Extensibility.PostSharpObject.InvokeProject(ProjectInvocation projectInvocation) in c:\Users\gael.000\svn\postsharp\branches\1.5\Core\PostSharp.Core\Extensibility\PostSharpObject.cs:line 547
  at PostSharp.MSBuild.PostSharpRemoteTask.Execute(PostSharpTaskParameters parameters, TaskLoggingHelper log) in c:\Users\gael.000\svn\postsharp\branches\1.5\Core\PostSharp.MSBuild\PostSharpRemoteTask.cs:line 113
<Integrated Project Name>



Is there a  workaround available for this ?

Thx
Anil
Post #694
Posted 2/8/2010 6:53:31 AM


Community Member
Hi Gael,
        Are there any updates/workarounds to the above exception ?

Thx
Anil
Post #695
Posted 2/9/2010 7:48:27 AM


Gael Fraiteur

SharpCrafters
This kind of errors generally occur because the CLR "finds" an assembly differently than PostSharp. More debugging is needed to know the concrete reason in your particular case (run the debug build of PostSharp, enable relevant trace categories...).

The problem must have been resolved in PostSharp 2.0, since PostSharp fully controls the way how the CLR finds assemblies.

-gael
Post #696
Posted 2/10/2010 6:14:59 AM


Community Member
As PS 1.5.6.761 was considered to be most stable release since inception, does that mean PS 1.5 Release  still lags the component for CLR handling("find") of assemblies ?
As moving to new Release depletes mitigation of risks and increase side effects of software integration,do you plan to release a patch update for PS 1.5 with the solution to above or PS 2.0 is the only way to go ?


Thx
Anil
Post #697
Posted 2/10/2010 3:51:51 PM


Gael Fraiteur

SharpCrafters
There is no way to make this patch, since the new CLR finding component was made possible by a major change in the architecture.

You could probably find a workaround, but you would need to see why and when the CLR loads the conflicting DLL, why it has been found on this location. You can do that only by running the debug build and enabling the right trace categories (Domain, ProjectLoader, AssemblyBinder).

For PostSharp 1.5, it is quite difficult to collect these traces; it is described in <!-- m --><a class="postlink" href="http://doc.postsharp.net/1.5/#PostSharp.HxS/UserGuide/Platform/Debugging.html">http://doc.postsharp.net/1.5/#PostSharp ... gging.html</a><!-- m -->. It has been improved in PostSharp 2.0.
Post #698
« Prev Topic | Next Topic »


All times are GMT +1:00, Time now is 11:41am

Powered By InstantForum.NET v4.1.4 © 2010
Execution: 0.063. 8 queries. Compression Disabled.