Locked Error Creating New HTML C# Project

  • Thursday, November 15, 2012 3:19 PM
     
     

    I installed Preview 2 and when I attempt to create an HTML C# project I get the following message...

    ... after pressing the OK button VS 2012 IDE remains greyed out with message in toolbar ... Creating project ...

    I am able create SL C# projects without issue.


    Johnny Larue

All Replies

  • Thursday, November 15, 2012 3:47 PM
     
     

    Hi Johnny,

    Could you please give this a try?

    1) Open an elevated command prompt

    2) Navigate to your Visual Studio 2012\Common7\IDE folder

    3) run "devenv /setup"

    This can fix up project templates that didn't get set up correctly the first time.

    Thanks,

    Chris

  • Thursday, November 15, 2012 4:30 PM
     
     

    Thanks for your quick support.

    I followed your instructions however this did not resolve the issue.

    I did notice though, that the actual folder where 2012 is install is not Visual Studio 2012 folder but rather Visual Studio 2011

    This is likely due to the fact that I had previously installed Visual Studio 2011 Feb 2012 preview as such the install folder did not get fully uninstalled but the old version of Visual Studio was uninstalled.

    Do you think I need to do a complete uninstall of Visual Studio 2012... delete the Visual 2011 folder then reinstall Visual Studio 2012?


    Johnny Larue

  • Thursday, November 15, 2012 5:09 PM
     
     

    Hi Johnny,

    That sounds like a confusing enough setup that uninstalling and reinstalling would probably be my next step.  Hopefully that will clean everything up and get it working for you.  Let us know how it goes.

    Thanks,

    Chris

  • Thursday, November 15, 2012 7:02 PM
     
     

    Hi Chris,

    I have exactly the same problem as Johnny, except that I'm running on a clean test machine that only has VS2012, never had VS2010 installed.

    I can create a regular LS project and add an HTML client, but if I try to create an HTML client project from scratch, I get the same error as Johnny got.

    Any ideas? Thanks


    FREE custom controls for Lightswitch! A collection of useful controls for Lightswitch developers. Download from the Visual Studio Gallery.

    If you're really bored, you could read about my experiments with .NET and some of Microsoft's newer technologies at http://dotnetwhatnot.pixata.co.uk/

  • Thursday, November 15, 2012 7:21 PM
     
     

    That's interesting and yet at the same time does not bode well for my circumstances..  For the last few hours (and counting) I am still in the process of just uninstalling what was otherwise a well running instance of VisualStudio 2012.  Given the number of SDK's and other VisualStudio addins this will cost me at minimum a day of effort to recover.

    I think I was due to re-install anyway after all it was the Visual Studio 2012 RC version was that which left the Visual Studio 2011 folder that the current version installed into.

    It reminds me of when I attempted to install the VM version of the HTML 5 preview 1 .. I setup a separate a new Windows 8 partition followed all the instructions, but in the end couldn't get it to work. After struggling for a day I gave up on that release.  

    I feel as if I am paddling up the river trying to get going with LS HTML 5 .. it's as if the gods are telling me no ... but I am still however very determined to sort this all out and look forward to playing around with the HMTL 5 client. 

    Mr Yossu ..

    I am running on Windows 7 Ultimate SP1 64 Bit, i7 12 GB ..  I recently installed Office 2013 (just prior to running the HTML 5 Preview 2 install).  

    Did you ever have the Visual Studio 2012 RC version installed prior to the Visual Studio 2012 RTM version?

  • Thursday, November 15, 2012 7:22 PM
     
     

    Thanks for the reports Johnny and My Yossu. We have seen a couple of reports of similar issues and are still striving to find a common thread between the reports so I hope you will forgive me if it feels like I am asking a lot of questions. The leading theory that we have is that the templates are getting corrupted somehow during install. To help track that down I was hoping you might be able to help me out by providing some additional info. Specifically:

    1) Did you install from WPI or did you use the direct download links that the feed links to?

    2) How many folders do you have under the Microsoft Visual Studio 11.0\COmmon7\IDE\ProjectTemplatesCache\LightSwitch\1033?

    3) Does creating an HTML Client project in VB yield the same issue as doing it in C#?

    Thanks,

    Kris


    Kris Langohr | LightSwitch QA

  • Thursday, November 15, 2012 7:31 PM
     
     

    Sorry Kris I just completed a complete uninstall of Visual Studio 2012 and am about to re-install..

    I just noticed however that there are two Visual Studio 2011 Beta that are still lingering about that I can't get rid of. This is the screen that pops up when I try ....

    Also do you think I will need to uninstall the two VS 2012 SDK's as well?

  • Thursday, November 15, 2012 7:35 PM
     
     

    Even after a full uninstall that friggen folder is still lingering about ...

  • Thursday, November 15, 2012 7:35 PM
     
     

    Should I delete this folder or what?

  • Thursday, November 15, 2012 7:37 PM
     
     

    Kris ...

    After running a complete VS 2012 uninstall this is what I see in the cache folder ..

  • Thursday, November 15, 2012 7:47 PM
     
     

    Looked through registery and saw VS 2012 Blend Preview hitting same folder so will uninstall it as well.

    Also some Office Tools as well

    It appears that there is a ton of stuff in the registry still pointing to the VS 2011 folder.

    What do you suggest I do to clean this out?

    • Edited by JLarue Thursday, November 15, 2012 7:48 PM
    •  
  • Thursday, November 15, 2012 8:11 PM
     
     

    Whilst trying to uninstall all the bits that were installed as per the Preview two... I hit this exception when trying to uninstall the MS Office Dev Tools... Fun no?

  • Thursday, November 15, 2012 8:27 PM
     
     

    Sorry this is causing so much trouble for you.  Could you paste the log file here?  Setup can also require a restart in between installs/uninstalls so that's also something to try if you haven't already.

    Thanks,

    Chris

  • Thursday, November 15, 2012 8:29 PM
     
     

    I totally understand.. I will restart first then run the uninstall again... I will post the logs if the problem persists. Just uninstalling LS HTML Preview 2 at the present time.

  • Thursday, November 15, 2012 8:50 PM
     
     

    Hi Kris,

    Thanks for the reply. Forgot to mention that when I ran devenv /setup, it said "the operation could not be completed"

    As to your questions...

    1) I installed from WPI

    2) See the following...

    3) Yes I have the same problem when I try to create a VB project.

    In reply to JLarue, and also in case it helps, this machine was a clean install of Win7 Pro x64, with all updates and SP1 installed. I then installed VS2012, SQL Server 2008, and then the HTML Client preview. I also installed some Telerik components, FireFox and Resharper. That's the total.

    Hope this helps


    FREE custom controls for Lightswitch! A collection of useful controls for Lightswitch developers. Download from the Visual Studio Gallery.

    If you're really bored, you could read about my experiments with .NET and some of Microsoft's newer technologies at http://dotnetwhatnot.pixata.co.uk/


    • Edited by Mr Yossu Thursday, November 15, 2012 8:51 PM cropped screen shot as the forum shrank it too small to read the file names
    •  
  • Thursday, November 15, 2012 9:10 PM
     
     

    I too had Telerik and Resharper installed.

    Also after rebooting and running the uninstall of Office Dev Tools for VS 2012 Preview 2 - ENU it actually completed without error this time.

    Still unintalling SDKs as they too were targeting the VS 2011 folder... All of the installs are seemingly reducing the overall file count within the sub folders.


    • Edited by JLarue Thursday, November 15, 2012 9:12 PM
    •  
  • Thursday, November 15, 2012 9:22 PM
     
     

    Thanks for the details guys. Could one of you try the following:

    1) Create a new C# Silverlight LS Project

    2) Open the App Designer (by clicking properties in the solution explorer) and navigate to the extensions tab

    3) Uncheck any of the telerik extensions for both the current projects and any new projects

    4) Restart VS and then create a new HTML Client project

    Thanks,

    Kris


    Kris Langohr | Senior SDET | LightSwitch QA

  • Thursday, November 15, 2012 10:10 PM
     
     

    In step 3) that Kris mentioned above, it would be best to uncheck all extensions except for these two:

    - Lightswitch Cosmopolitan Shell and Theme
    - MIcrosoft Lightswitch Extensions 

    Robert (Microsoft LightSwitch Team)

  • Thursday, November 15, 2012 10:40 PM
     
     

    Hi Kris,

    In my installation, the only extension that is ticked is the cosmo shell and theme. Even the MS LS extensions aren't ticked.

    Telerik don't have any LS-specific extensions, I installed their Silverlight components, as I wanted to try them out in VS2012.

    Hope this doesn't blow your theory :)


    FREE custom controls for Lightswitch! A collection of useful controls for Lightswitch developers. Download from the Visual Studio Gallery.

    If you're really bored, you could read about my experiments with .NET and some of Microsoft's newer technologies at http://dotnetwhatnot.pixata.co.uk/

  • Thursday, November 15, 2012 10:50 PM
     
     

    .. and I have completely uninstalled the entire stack of SDKs and any and all related VS 2012 applications and finally do not have a VS 2011 folder any longer however when I try to re-install VS 2012 again it want's to stick it all back into VS 2011 folder and I can't change this in the setup the Ellispes do not allow me to change this path ..

    Any ideas how to make it so I can install this to a VS 2012 folder??


    Johnny Larue

  • Thursday, November 15, 2012 10:57 PM
     
     

    Microsoft Visual Studio 11.0 is the folder we want to install to, that is equivalent to VS2012. The fact that it won't let you change it is a little strange but there is nothing inherently wrong with that folder name choice. Unfortunately I don't know of any workaround if you want to change the install path and the dialog isn't letting you.

    Thanks,

    Kris


    Kris Langohr | Senior SDET | LightSwitch QA

  • Thursday, November 15, 2012 10:59 PM
     
     

    Well it does invalidate one part of the theory but that is the value of this exercise to see if we can narrow this down for everyone. Resharper is the other variable in this equation relative to what we typically test internally. I am trying to set up an internal repro of the problem so I will try as similar a setup as I can to what you have and see what I find.

    Thanks,

    Kris


    Kris Langohr | Senior SDET | LightSwitch QA

  • Thursday, November 15, 2012 11:42 PM
     
     

    If it helps, I have version 7.1 of R# installed. I had v7.0 before, but upgraded it yesterday. I didn't try creating an HTML client project when I only had v7.0 in, so I don't know if the behaviour was the same.

    Hope this helps.


    FREE custom controls for Lightswitch! A collection of useful controls for Lightswitch developers. Download from the Visual Studio Gallery.

    If you're really bored, you could read about my experiments with .NET and some of Microsoft's newer technologies at http://dotnetwhatnot.pixata.co.uk/

  • Friday, November 16, 2012 12:00 AM
     
     

    I believe that ReSharper is the issue. I was able to repro the problem after installing ReSharper.  Can you try uninstalling ReSharper and see if that helps solve the problem?

    Thanks,

    Kris


    Kris Langohr | Senior SDET | LightSwitch QA

  • Friday, November 16, 2012 12:15 AM
     
     Answered

    We just tried this out internally and uninstalling Resharper should unblock you. Please let me know if that doesn't clear up the issue.

    We are continuing to investigate the exact root cause of why the HTML Client and ReSharper are interacting poorly with each other. Until we sort that out I advise not using ReSharper with the preview.

    Thanks,

    Kris


    Kris Langohr | Senior SDET | LightSwitch QA

  • Friday, November 16, 2012 5:55 PM
     
     

    After a completly unnecessary uninstall of Visual Studio 2012 and re-install of Visual Studio 2012 and reinstall of the HTML 5 Preview I managed to create a simple application which ran but did not function 100%..

    The DeskTop client did work so its likely something I missed.

    Cheers

  • Sunday, November 18, 2012 3:54 PM
     
     
    Just to check in, I can confirm that uninstalling R# removed the error. Hopefully now you've found the cause, you can sort it out before the release. Can't imagine coding without R#!

    FREE custom controls for Lightswitch! A collection of useful controls for Lightswitch developers. Download from the Visual Studio Gallery.

    If you're really bored, you could read about my experiments with .NET and some of Microsoft's newer technologies at http://dotnetwhatnot.pixata.co.uk/