I just moved from a Windows XP box with Visual Studio 2010 to a Windows 7 box with Visual Studio 2010. I ran the application on my new box and get the following error:

Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

The line of code that it errors on is:
Code:
folderDlg.SelectedPath = System.AppDomain.CurrentDomain.BaseDirectory()
Any thoughts?