I have a weird problem. I have created an application in VB.NET 2010 on my PC which runs Windows XP Home Edition SP3. Upon testing my application, I found out that my app does not run on Windows Vista and Windows 7. Just to help, I was searching this site when someone had posted that there is a problem with shapes and file system.
By the way, I'm on .NET Framework 4.0
Thanks in advance
Sorry I could'nt answer. It is a Windows XP 32-bit(my development PC) And testing on Windows Vista 32-bit.
Reverend Jim, It says I dont have the permissions to access the directory "C:\Program Files"
And yes cgeier, The testing computer and my dev PC have both Full and Client versions of .NET Framework 4.0 installed. And yes, there is a commented line in the app.manifest file where it asks to uncomment a XML line called "supportedOS" which says it will enable my app to run on Win 7 but it does not work.
Thanks for the response,
Other than installing your program in %ProgramFiles%, you should not be writing to %ProgramFiles% (or HKEY_LOCAL_MACHINE in the registry).
Use one of the following directories to store your data:
Dim userProfileDir As String = Environment.GetEnvironmentVariable("USERPROFILE")
Dim allUsersProfileDir As String = Environment.GetEnvironmentVariable("ALLUSERSPROFILE")
Dim appDataDir As String = Environment.GetEnvironmentVariable("APPDATA")