Problem
FileStream
stream = new FileStream(@"C:\File.file", FileMode.Create, FileAccess.ReadWrite);
History
This snippet of code, of course, works perfectly fine in Windows XP. In the move to Windows Vista securityexceptions are a problem now. Also, telling a client to "Run as administrator" is not an option. It should work off the bat.
Question
What do I need to add/do to my code to prevent security problems in Windows Vista applications?