Home » Visual Studio

Run As Admin and most recent projects

As a regular user I have opened a bunch of projects on a network mapped folder.

I then close VS 2010  and open it again using "Run as Admin"

When I click on a recent project, VS tells me that it can not find the project or solution.

However if I goto File/Open the network share is still available and I can navigate to it and open it without any problems.

Is this a know issue?

Is there a fix?



4 Answers Found


Answer 1

Hi Michael,

Thank you for your post in MSDN forum!


Some clarification with you

Could you run  this project on other machines?


Based on your description, it seems that your project, which has created as a regular  user account, could be opened  as administrator. According your situation, I attempt to create a project via a regular user  account, and I run this project as administrator, it works well.

You could create a log on your machine. You could type ‘Devenv.exe /log “<the log file’s path in your disk.>”

If it does not work, you could invest the log files, which could help us to solve issues better and exactly.

You could certainly attach your log file in your reply or send your log files to me. (My E-Mail:v-xugong@microsoft.com).

Note: Please attach the link of this post in the mail.

More information about Devenv Command Line and the usages, you could refer the following link.



Look forward for your reply!


Hope this helps you! If you have any doubts and concerns, please feel free to let me know. We are going to continue to follow-up.

Best Regards

Larcolais Gong

Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Answer 2

Hi Michael,

I'm writing to follow-up this post. Did the above suggestions solve your concerns?

I'm marking this post as Answered, if you have any findings and concerns, please feel free to unmark this post.

Have a nice weekend!

Larcolais Gong

Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Answer 3

Hi ... the answer above did not help.


I found the answer in a KB (http://technet.microsoft.com/en-us/library/ee844140(WS.10).aspx) about Network shares and Run As needing to be able to share logon tokens.

Michael Tissington

Answer 4

Hi Michael,

Well Done!!!

I'm glad to hear your good news!

Thank you for sharing your experience in MSDN forum!

Have a good nice!

Larcolais Gong



We are using visual studio 2008 on Windows server 2008 but client is not ready to provide admin privileges for Windows. Is there any alternative to run VS alone with admin privileges to work on IIS.

In case of Windows 2003 and VS2008 , we have a batch file which will run VS as admin without asking any password. How can we simulate same work around on windows 2008? 


Any points would be really appreciated.





I create a Shell Isolated Project[VS 2010], then I enabled the Satart Page, and add a Start Page.


When I create a new project(Named Test1) in the Shell Isolated, Test1 displays in the "Recent Project" section of the Start Page.


I clicked "Test1", I got a error said: "Test1 could not be opened.Do you want remove the reference to it from the Recent list".


But I can open "Test1" from the Menu,  File=>"Recent project and solution"=> "C:\......\Test1\Test1.testsln"


Did I miss something important? and what should I do to debug & fix this issue?








When I try to run any Cloud Service web role project I recieve the error message "The Development Fabric must be run elevated". According to other posts, this occurs becuase the user I am running Visual Studio under is not an admin. However, this is not the case. My user account is a member of the local administrators group and I still get the message. Please help.

I'm running Windows 7 x64 with Visual Studio 2008 SP1, .Net 3.5 x64 SP2, Windows Azure SDK x64 and Windows Azure Tools.



Can you prevent a user with project admin or project collection admin rights from updating a project's work item definition or its project template?

Basically we have a TFS instance with multiple projects and project collections. We want to ensure we have one template and work item definition across all of them so any updates should happen across all project\project collections.


p.s. we do this since we are interfacing with another system and if a new, required field is added it will cause issues.


 I have not had a chance to install the early look at Vis Studio 2010..  however something that has been a wish for many of the Visual Studio releases -

I would like much better, manageable recent project management on the Open Menu and on the Start Page.  

I often work with multiple projects from multiple clients.  I also have clients who provide multiple versions of a project with the same name; as well I may have a few test variations of a project.  Think about ways to improve this experience.

For example, It would be good to be able to more easily identify target directory when selecting a recent project at a glance (more than mouseover).    It would be good to make certain projects persistent on the list.  The Windows 'Start' list may be a good model.  It would also be good to extend the list so that one can juggle 5, 10 active projects.



The Projects List on my Start Page is not being populated with the Projects I open.  It's empty.

Does anyone know what could be the problem?  I can see the entries being recorded in the Registry key:


But VS isn't reading them in for some reason.

I'm running Visual Studio 2005 Professional.



Usually, when you open a project or solution, it moves to the top of the Recent Projects list. Recently, it stopped working for me. I'd click on (for example) the 5th project in the list, and it stays as position 5. I went into the registry and removed everything from the list to start clean. Opening a solution adds it to the list at the top. Then opening (for example) the 5th solution in the list, it stays as position 5.

I'm not certain, but it may have started when I moved my development environment into a virtual machine, and my projects to a SAMBA server.

MSVS is Version 9.0.30729.1 SP

Any ideas?



I have the Premium edition of Visual Studio 2010 and for some reason the recent projects I open are being duplicated in the File -> Recent Projects and Solutions list. There are matching duplicate values in the HKCU\Software\Microsoft\Visual Studio\10.0\ProjectMRUList key in the registry, but what differentiates them is one includes a GUID, like so:

D:\Dev2005\Internal Applications\LDAP\LDAP.vbproj||False
D:\Dev2005\Internal Applications\LDAP\LDAP.vbproj|{F184B08F-C81C-45F6-A57F-5ABD9991F28F}|False

If I had to guess, I'd say the ones with the GUIDs are for the jump list for VS 2010 under Windows 7, which is what I have. Does anybody know why the dupes are created and how to make it so they don't show up in the Recent Projects list?


I'm having an interesting issue in VS2010 where my start page now fails to come up on VS2010 load, and I can't pull it up from the view menu either.

In addition, the recent projects list is now always blank, and if i go into the tools->options menu all the start up projects options are blank and if i set them to anything else they will not appear when i open the options again.

Very odd.  I'm sure something is conflicting, tried disabling all extensions and uninstalling resharper and doing a cean install of vs2010 but problem persists.  Any thoughts on troubleshooting/fixing?


How do I set the number of Most Recent Projects displayed.  I have tried the obvious -- Tools-Options..... but I cannot see it.



This is a really minor, annoying problem, but if anyone has an easy answer, I'd love to know it.

I'm pretty much a newbie and have been using Visual Web Developer for about a year.  I've switched to using VWD 2010 Express this year when I upgraded to Windows 7.  Almost all of the websites that I've created show up on the Start Page in the Recent Projects section -- except for one!  I can go to "Open Web Site" and find it, but it never appears in the Recent Projects.  This is one that I'd love to put a pushpin in (one of my favorite features!), but I can't figure out why it won't show up. 


Any ideas?

Is there a way to expand the size of the Recent Projects pane in Visual Studio? I'm a BI developer and it's impossible to see enough of the SSIS solution names in the Recent Projects list to choose the correct one.
Is there a way to expand the size of the Recent Projects pane in Visual Studio on the start page? I'm a BI developer and it's impossible to see enough of the SSIS solution names in the Recent Projects list to choose the correct one.
I don't want to remove the pane or clear it's contents. I want to know how to make it wider so I can actually see what's there.


Dear All,

I'm trying to run some automated test using a batch file. I have written all these test cases in VSTS 2008. When I run these test cases using VS IDE, it ran succesfully. But once I try to run my test case using a batch file, it throws error "System.ComponentModel.Win32Exception: The requested operation requires elevation."

As per my understanding if we can run the VS command prompt as admin, this will solve my problem. So could you please help me "how I can run the VS cmd as admin from a batch file". I have already used this runas /user:\username cmd but it doesn't solve my problem.





I get the below message after my package starts loading data and has run for few minutes

"Unable to prepare the SSIS bulk insert for data insertion"

My package has Multiple Data flow component running in parallel and dumping data into different table

I get the same error even when

·     I run it as administrator

·     Added myself self under Local Policies -> create global objects.


Also tired troubleshooting using a profiler, but I see the no significant error message which is captured.


I have run into this issue after quite a few successful execution of the package and now the package just doesn’t execute successfully




Hi There,

I would like to have a program fire up when a user logs in, but I would like the program to be run by an admin level to prevent the user killing the process.

I know this would generally be annoying but I am trying to develop an app that monitors a users usage of a computer and locks them out if they go over a time limit.

If I fire the program up on a login it shows up in task manager as being run by the user and can therefore be killed by hitting end process (I have prevented them closing the program manually by a form close event).

I think I may need to run the program from a service, but I can't figure out how to get a windows service to detect that a user has logged onto a machine.

Any ideas appreciated,


This weekend, I ran installed the Automatic updates that had been collecting on my Sharepoint server for quite a while.  This morning users said that Sharepoint was down.  When I try to connect to Central Admin, I get this:

  Server Error in '/' Application.
Another component has already added an HttpSessionState to the context. Please make sure only one session state module should be registered.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Another component has already added an HttpSessionState to the context. Please make sure only one session state module should be registered.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Another component has already added an HttpSessionState to the context. Please make sure only one session state module should be registered.]
   System.Web.SessionState.SessionStateUtility.AddHttpSessionStateToContext(HttpContext context, IHttpSessionState container) +129
   System.Web.SessionState.SessionStateModule.InitStateStoreItem(Boolean addToContext) +280
   System.Web.SessionState.SessionStateModule.CompleteAcquireState() +78
   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +504
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +66
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

I have searched for this error and not found anything helpful. 

I also was getting an error browsing to our regular Sharepoint sites, but fixed that by rolling the web.config file to before the update.

Any help would be appreciated.


On all the Workflows I've used in SharePoint 2010 - OOT and SharePoint Designer workflows - I noticed that when the workflow is associated to the "item created" event on a list the workflow never runs if the administrator creates a new item in the list, but it runs if a "normal" user creates an item

Is this by design?


I'm creating an ActiveX which is embedded in HTML page.
I would like to install/run this ActiveX in non-admin mode
I saw that there is an option to attach an "inf" file for my activeX in IE8 (http://msdn.microsoft.com/en-us/library/dd433049(VS.85).aspx) which enables registration in current HKCU.
is there a way to do the same with IE7? IE6?
Which OS support this? only Vista?

if there is such way, can you please direct me to the corresponding article or provide an example?


I have build an installer by using wix, that includes custom actions that need administrative rights.

At the moment this installer only works, when it is executed by the buildin administrator account. In this case, no UAC prompt is shown.
If the installer is executed by any other member of the local administrators group, the UAC prompt is shown. Though I allow to do changes to my computer, the windows api functions in my custom actions return errors like "missing privilege", ...

I have tried to let the custom actions execute deferred and not impersonated, but this did not help.

My installer creates a user by using util:user in WiX. In my custom action, I want to call functions like LogonUser and LoadUserProfile (All these functions require special token privileges). Because the user is created when the install script is executed and the custom action must run after the user is created, I ran my custom actions deferred with Impersonate="no".

After this I created the user in my own custom action and tried to execute the custom actions "immediate". As far as I understood, they should run with the account of the executing user. Though the user is member of the administrators group, this also do not work.

As far as I know the install script is executed by the LocalSystem account. As it seems (look http://msdn.microsoft.com/en-us/library/ms684190 ) several privileges are disabled in this account. For example SE_BACKUP_NAME is DISABLED and this one is needed to call LoadUserProfile.

I have already experimented with AdjustTokenPrivileges API function but without success. Does the LocalSystem account have the TOKEN_ADJUST_PRIVILEGES? I don't know the related SE_XXXXXX_NAME privilege.


I'm running out of ideas, so your help will be very welcome. If this is the wrong forum, please point me to the right one.





<< Previous      Next >>

Microsoft   |   Windows   |   Visual Studio   |   Sharepoint   |   Azure