Good morning! I've recently ran into an issue with a sharing violation using the OpenFileDialog. Basically, we have the ability to import CSV data in our application. When I open Excel and create a CSV file, then save to disk and subsequently open it with Silverlight, I get a sharing violation and an exception is thrown. I only see two options for opening the file: "OpenRead" and "OpenText".
I assume that our hands are tied here and we can't tell the framework to open the file in manner thats safer. For instance, I can open the file with Notepad++ and it doesn't complain. The only difference I see is the options:
SL: Options: Synchronous IO Non-Alert, Non-Directory File, Open No Recall
NOtepad++: Options: Synchronous IO Non-Alert, Non-Directory File
So... does anyone have any experience with this? It seems that since it's a read only file open under ALL circusmtances, we should be able to open this file in this situation..
Cheers!
-Sean