Could not load exported type data for assembly...

SyntaxEditor .NET Languages Add-on for Windows Forms Forum

Posted 16 years ago by Chris DiPierro - Director of Software Development, Mi-Co
Avatar
We're a customer of a very old version of ActiPro Syntax Editor, and we're trying to see if v4 /w the .Net extensions is a fit. So far it looks great, but we're having an issue when trying to use the sample where you can load references.

Some of our assemblies load fine, but others report:
Could not load exported type data for assembly '<assmebly name, version, etc.' Please make sure that any referenced assemblies are in the same folder.

Excepting GAC assemblies, all referenced assemblies should be in the directory, so I'm not sure what's going on. Probably something trivial we're overlooking, but any other causes to this?

Comments (2)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
It should work ok if ALL referenced assemblies are in the GAC or in that folder. If you miss one it will still show this message. Does it give any other detail in the message, or perhaps by looking in an inner exception?

If you still can't figure it out, perhaps email us a ZIP of all the assemblies and we can try to load them here in our .NET Reflection QuickStart to see what his happening.


Actipro Software Support

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Chris,

Thanks for the assembly ZIP. The inner exception does pass the issue. You can see it if you debug but we'll change our DotNetReflectionForm to show it in the messagebox as well. You can change the catch code in there in the meantime to this to see it:
string innerExceptionMessage = String.Empty;
if (ex.InnerException != null)
    innerExceptionMessage += "\r\n\r\nInner exception: " + ex.InnerException.Message;
MessageBox.Show(this, "An exception occurred while loading the assembly: " + ex.Message + "\r\n\r\nPlease make sure that any referenced assemblies are in the same folder." + innerExceptionMessage, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
In your scenario it can't find the Microsoft.Ink assembly.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.