Solved

Registry Settings VB.net 2010 on windows 7

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 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

11 Experts available now in Live!

Get 1:1 Help Now