Application Cannot Start in Visual Studio 2010 in administrator mode

Answered Application Cannot Start in Visual Studio 2010 in administrator mode

  • Wednesday, February 16, 2011 6:56 PM
     
     

    I am evaluating Visual Studio Profession 2010 for use in Creating Sharepoint 2010 BDCSs,

    I downloaded and registered a trial copy of VS2010 and tried to create a BDC.  The IDE started up OK and allowed me to select a BDC project but then told me it had to be run as an administrator.  So I restarted teh IDE as an administrator at which point I got the message "the application cannot start".  I can now always run as a non-administrator but never as an administartor.

    I have tried devenv /restuserdata which succeeds but does not fix the problem.

    I am using Windows 7 professional (64bit).

     

All Replies

  • Friday, February 18, 2011 11:14 AM
    Moderator
     
     Answered

    Hi ama,

    Welcome to the MSDN Forum.

    First, there is one thing I would like to clarify with you:

    • Does your Windows user account has the Administrator privilege?

    If your user account do not have Administrator privilege, would you please switch to the Administrator accout and try again?

    To develop SharePoint solutions in Visual Studio on Windows Vista and Windows 7 systems, UAC requires that you run Visual Studio as a system administrator. Right-click the Visual Studio shortcut on the desktop and then click Run as administrator.

    To configure the desktop shortcut to always run as administrator, right-click the shortcut, click Properties, click the Advanced button, and then select Run as administrator.

    For more information, please see: http://msdn.microsoft.com/en-us/library/ee231582.aspx

    I hope this helps.

    Best Regards,


    Andrew Wu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Friday, November 18, 2011 11:29 AM
     
     Proposed Answer

    Hi ama,

    Welcome to the MSDN Forum.

    First, there is one thing I would like to clarify with you:

    • Does your Windows user account has the Administrator privilege?

    If your user account do not have Administrator privilege, would you please switch to the Administrator accout and try again?

    To develop SharePoint solutions in Visual Studio on Windows Vista and Windows 7 systems, UAC requires that you run Visual Studio as a system administrator. Right-click the Visual Studio shortcut on the desktop and then click Run as administrator.

    To configure the desktop shortcut to always run as administrator, right-click the shortcut, click Properties, click the Advanced button, and then select Run as administrator.

    For more information, please see: http://msdn.microsoft.com/en-us/library/ee231582.aspx

    I hope this helps.

    Best Regards,


    Andrew Wu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    This it NOT a correct answer, the moderator didn't even bother to TRY to UNDERSTAND the question. I am having this same issue and answers like this marked as correct really spoils this forum's credibility.

     

    The fix that worked for me is:

    Copy the following files from "C:\Program Files\Common Files\Microsoft Shared\MSEnv\" to "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE \" 

    dte80.olb 
    dte80a.olb 
    dte90.olb 
    dte90a.old
    dte100.old 

    And then register them all in that location and the application now should works as both administrator and as a regular user.

    • Edited by Pedro Lima Friday, November 18, 2011 11:45 AM
    • Proposed As Answer by Pedro Lima Friday, November 18, 2011 11:45 AM
    •  
  • Thursday, December 29, 2011 5:18 AM
     
     

    Did this thing worked for you because I am getting the same error of VS not getting started in administrator mode. I have tried a couple of more things like setting the user data to default value and resetting the settings of VS but non of them had made any difference to the outcome.

    Thanks,

    Ashutosh

  • Thursday, December 29, 2011 6:47 AM
     
     

    Hi Pedro Lima,

    Can you please provide the source from where you got this information. It would be helpful for me to understand the thing more closely.

     


    Ashu
  • Tuesday, January 10, 2012 6:17 PM
     
     
    the files you show that need to be copied do not even show in my c:/program files/common files/microsoft shared....... directory
  • Sunday, February 19, 2012 9:14 PM
     
     
    This solved my problem exactly.
  • Tuesday, April 10, 2012 12:20 PM
     
     

    Thanks, worked great!

    I am just gettings started with Azure development, and you need to run in elevated mode to get the emulator to run from Visual Studio.

    In my case, I needed to copy the files to "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE \"

    I run Windows 7 64-bit

  • Saturday, May 05, 2012 8:52 PM
     
     

    Hi Pedro...I had a big headache after installing VS 2010 on my Win 7 64 bit. On Win 7 32 bit it started and worked without problem but on 64 bit version there was a mess. First I had to resolve "The Applicaton Data folder for Visual Studio could not find". This problem was really in admistrator privileges in the folders C:\Documents&Settings\"owner"\AppData\Roaming\Microsoft\Visual Studio ... and VSA. Both these directories and all inside them must change to administrator (here "owner") privileges. Then as administrator run "devenv /setup" first.

    Then appeared "Application cannot start" problem. And this really was solved with changing administartor privileges of mentioned 5 .olb files and copied them to  "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE \" .

    Now the Visual Studio stats without problems.

    Thanks a lot Pedro.

    Libor Berka


    Libor Berka

  • Wednesday, February 20, 2013 12:11 PM
     
     

    Copying the olb-files worked fine for me, thank you!

    Using Visual Studio 2012 on Windows 7 my folder paths are:

    copy "C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\dte*.olb" "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE"