Hi,
When I load one of my assemblies with DotNetProjectResolver.AddExternalReference(), I get the following exception:
Since the exception seems to come from Assembly.GetExportedTypes() (seen in a previous topic), is there a way to call another API from .Net framework that doesn't crash?
The assembly which needs to be reflected implements unions fields as below:Any idea for a work around that we could use here? Any sample code to reflect manualy an assembly?
Note: I marked this topic as Bug report to specify syntax editor and framework versions used here.
Regards,
Edward
When I load one of my assemblies with DotNetProjectResolver.AddExternalReference(), I get the following exception:
Quote:
System.ApplicationException was caught
Message="Could not load exported type data for assembly 'Cpt.Wrappers, Version=2.0.2649.24017, Culture=neutral, PublicKeyToken=null'."
Source="ActiproSoftware.SyntaxEditor.Addons.DotNet.Net20"
StackTrace:
at k..ctor(Assembly A_0, String A_1, String A_2, String A_3, Boolean A_4)
at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.AssemblyCodeRepository.a.a(c A_0)
at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.AssemblyCodeRepository.a.a(c A_0)
at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.AssemblyCodeRepository.Add(String assemblyName, DotNetProjectResolver projectResolver)
at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.DotNetProjectResolver.AddExternalReference(String assemblyName)
at TestApplication.QuickStart.DotNetReflectionForm.ExecuteAppAction(AppAction action) in C:\Program Files\Actipro Software\WindowsForms\SyntaxEditor\v4.0.0258\TestApplication-CSharp.Net20\QuickStart\DotNetReflectionForm.cs:line 608
Since the exception seems to come from Assembly.GetExportedTypes() (seen in a previous topic), is there a way to call another API from .Net framework that doesn't crash?
The assembly which needs to be reflected implements unions fields as below:
[System.Runtime.InteropServices.StructLayout(LayoutKind.Explicit)]
public struct d
{
[System.Runtime.InteropServices.FieldOffset(0)] // Offset is 0 for both of the fields to make an union (adviced by the MSDN)
public a ssString;
[System.Runtime.InteropServices.FieldOffset(0)]
public c ussdString;
}
Note: I marked this topic as Bug report to specify syntax editor and framework versions used here.
Regards,
Edward