IE8 Protected Mode prevents file reads from user's ApplicationData folder?

Add-in Express™ Support Service
That's what is more important than anything else

IE8 Protected Mode prevents file reads from user's ApplicationData folder?
 
Chris Harris




Posts: 32
Joined: 2008-08-14
Hi guys,

I have a C# WinForms app that writes some config data into a file within the user's ApplicationData folder.

I've built an IE Add-in using ADX for IE 5.2.261, which reads the app's config file, get's the app's font size and then displays some text using the same font size as the app. This works well when IE8's protected mode is off!

With protected mode on, the font reverts to its base size, regardless of the app setting. It's as though a default config file is being used.

My question is this: does protected mode prevent file reads from non-IE folders (I know it prevents writes), is this ADX related (doubtful), or am I missing something?

Thanks

Chris
Posted 18 Jun, 2010 06:52:50 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hi Chris,

As far as I know Protected mode doesn't prevent reads. I've just tested this in a sample add-in: it allowed me to read a file locadet on the D drive:

System.Windows.Forms.MessageBox.Show("!!! " + System.IO.File.OpenRead(@"D:MyFile.txt").Length.ToString());



Andrei Smolin
Add-in Express Team Leader
Posted 21 Jun, 2010 07:55:40 Top