Question : write registry on Windows 7 with VB.NET

Hi,
  I have a software in VB 2008 that needs to read/write the registry at start-up. On Windows XP, it works fine. I have migrated to Windows 7 last weekend, and now, it doesn't work anymore, I have an exception thrown at the Write registry line with the error: "Requested registry access is not allowed".

How can I fix this?

I can't modify the source code, because many other programmers uses the same code.

thanks a lot for your time and help

Answer : write registry on Windows 7 with VB.NET

You may need to start Visual Studio to "Run as Administrator..." by right-clicking on the Visual Studio shortcut.  Also make sure the user you're logged in as has write rights to HKLM\Software.

Also consider using Application Settings instead of the registry, if that's even a remote possibility.
Random Solutions  
 
programming4us programming4us