I created a custom.langdef file, saved it in a local directory and tried to load it using the SyntaxEditorHelper class of the SampleBrowser-CSharp2010.
I don't want to use it as a resource as the end user would like to modify it.
When I use the example in the documentation
(SyntaxLanguageDefinitionSerializer serializer = new SyntaxLanguageDefinitionSerializer();
string path = @"C:\ECMAScript.langdef";
ISyntaxLanguage language = serializer.LoadFromFile(path);)
or the SyntaxEditorHelper class,
both with describing the path as @"C:\TestLanguage\custom.langdef"
I get a System.SecurityException "Access to Path not allowed".
When I try to openFileDialog, even debugging the sample in the sample browser, I got a SecurityException as well, that a dialog must be prepared by user....
How can I load the langdef as a File wihout Security Exception?
Thanks for the appreciatet help!
I don't want to use it as a resource as the end user would like to modify it.
When I use the example in the documentation
(SyntaxLanguageDefinitionSerializer serializer = new SyntaxLanguageDefinitionSerializer();
string path = @"C:\ECMAScript.langdef";
ISyntaxLanguage language = serializer.LoadFromFile(path);)
or the SyntaxEditorHelper class,
both with describing the path as @"C:\TestLanguage\custom.langdef"
I get a System.SecurityException "Access to Path not allowed".
When I try to openFileDialog, even debugging the sample in the sample browser, I got a SecurityException as well, that a dialog must be prepared by user....
How can I load the langdef as a File wihout Security Exception?
Thanks for the appreciatet help!