Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Registry Settings VB.net 2010 on windows 7

Posted on 2011-09-19
2
Medium Priority
?
290 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 2000 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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 …
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

722 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