Solved

Registry Settings VB.net 2010 on windows 7

Posted on 2011-09-19
2
288 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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 …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

752 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