Solved

Registry Settings VB.net 2010 on windows 7

Posted on 2011-09-19
2
285 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

861 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now