tags:

views:

16

answers:

1

Hi,

I am getting FileNotFoundException when I make the following call:

IsolatedStorageFileStream rootFile = store.CreateFile("abc.txt");

However, if I have a textbox on my page and do:

IsolatedStorageFileStream rootFile = store.CreateFile(textBox1.Text)

then this works.
I am using Silverlight 3.

Any ideas why I get the error?

JD

+1  A: 

Is the FileNotFoundException internal to the CreateFile call? Check here.

Will A
Thanks Will. I turned off exceptions and I still get the error. Only when using the textBox do I not get the error. Yes the exception is internal to CreateFile.
JD
Sorry Will, it looks like it is the exceptions (turning on and off) that was causing it. Thanks.
JD
np - glad to be of assistance.
Will A