Posted 20 years ago
by Marianne
Just moved over to 2.5 and now am unable to open any file inside my application. When executing the line:
editor.Document.LoadFile(filePath)
where filePath is a valid string containing the path to the file to open, I get the result:
"Specified cast is not valid"
Cannot reproduce the error in the sample application and when trying to repro the error in a simple example, it doesn't create an error but no file is loaded into the control. Are you aware of any conditions that might cause this? On my end, there is no casting that is going on, maybe something that loadfile is doing internally?
I'll continue trying to recreate a small example of the problem. Any additional help would be greatly appreciated.
Thanks.
editor.Document.LoadFile(filePath)
where filePath is a valid string containing the path to the file to open, I get the result:
"Specified cast is not valid"
Cannot reproduce the error in the sample application and when trying to repro the error in a simple example, it doesn't create an error but no file is loaded into the control. Are you aware of any conditions that might cause this? On my end, there is no casting that is going on, maybe something that loadfile is doing internally?
I'll continue trying to recreate a small example of the problem. Any additional help would be greatly appreciated.
Thanks.
------------------------------- Marianne