Hi all
I try to load a Language file from a embedded Resource !The stream contains data, but I get this Error :
An error occurred while loading the DynamicSyntaxLanguage '{Unknown}':
The syntax language type 'TestApplication.XmlDynamicSyntaxLanguage, TestApplication' could not be loaded. Please see the 'Troubleshooting' topic in the documentation for details on how to resolve this error.
The problem occurred near line 1, position 2
in Unknown Stream.
Any idea whats wrong here ?
Kind Regards
Peter
I try to load a Language file from a embedded Resource !
namespace XTOOLZ.EDMX.Visualizer.Controls
{
public partial class xmlViewer : UserControl
{
public string entitySetName { get; set; }
public EntityStorageModel model { get; set; }
private const string DYNAMIC_LEXERS_PATH = "XTOOLZ.EDMX.Visualizer.Lexer.ActiproSoftware.XML.xml";
public xmlViewer()
{
InitializeComponent();
var stream = (System.Reflection.Assembly.GetExecutingAssembly()).GetManifestResourceStream(DYNAMIC_LEXERS_PATH );
if (stream != null)
{
xmlEditor.Document.LoadLanguageFromXml(stream, 0);
xmlEditor.Document.Outlining.Mode = OutliningMode.Automatic;
xmlEditor.Document.SemanticParsingEnabled = true;
xmlEditor.Document.LexicalParsingEnabled = true;
}
}
public void fill(string xmlText)
{
xmlEditor.Document.Text = "<XToolz.EDMX.Viewer>" + xmlText + "</XToolz.EDMX.Viewer>";
}
}
}
An error occurred while loading the DynamicSyntaxLanguage '{Unknown}':
The syntax language type 'TestApplication.XmlDynamicSyntaxLanguage, TestApplication' could not be loaded. Please see the 'Troubleshooting' topic in the documentation for details on how to resolve this error.
The problem occurred near line 1, position 2
in Unknown Stream.
Any idea whats wrong here ?
Kind Regards
Peter