Solved

Registry Settings VB.net 2010 on windows 7

Posted on 2011-09-19
2
287 Views
Last Modified: 2012-05-12
In vb.net 2010 using the debugger i get the errror pictured.  If i run if outside vb.net in admin it works fine.  If i turn off UAC it works fine.  How can i get it to run in the debugger as admin?

error.png
0
Comment
Question by:Millkind
2 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 36561731
Start Visual Studio as an administrator, with a right click on the starting shortcut.

Or easier, change the proprieties of the shortcut to always run as Administrator.

When you start Visual Studio as an administrator, the copy of the application that runs in Visual Studio also runs with administrator's privileges.

A possible problem is that your final application will have the problem for all users that are not Admin on their station. Is that application written for admins? if not, be sure to test your application regularly through a regular account however, so that you can pinpoint the security issuses touching regular users as soon as possible.

If it suits your application, write the key in the CurrentUser portion of the registry instead of LocalMachine.
0
 

Author Closing Comment

by:Millkind
ID: 36561986
Perfect answer.  Also the extra bits were great.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question