Invalid cast when opening file in version 2.5

SyntaxEditor for Windows Forms Forum

Posted 19 years ago by Marianne
Avatar
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.

------------------------------- Marianne

Comments (2)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Definitely try and repro it in the sample application. If you can't, e-mail me the stack track. That might be able to help as well.


Actipro Software Support

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Just looked at the Document.LoadFile code and nothing in there does casting.


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.