none
Problem creating new projects in VB (infinite loading)

    Question

  • I had an issue with Visual Studio 2015 Express where it could not create a new project with visual basic. After the form asking directory, name, etc comes up and clicking "OK", it will just infinitely (as far as I know) hang at 'creating project xxx...' At first I tried updating it. That didn't go smoothly so I just reinstalled it. After a couple tries, and hours later I finally reopen it to the same exact problem occurring. There were a few features that it said didn't work but none I deemed very important and I forget them now (maybe they were?). Anyway, creating c++ projects seems to work fine. Opening already made VB projects appears to infinitely load too. I'm using Windows 7 Pro with SP1 64 bit. Not sure how to create error logs and I'm unsure if they would be of particular use anyway since the IDE doesn't seem to ever recognize that there is an error. To close it I have to end it in task manager. One of my solutions throws an error because "one or more documents failed to load correctly or something along those lines, while another solution infinitely loads. That is by double clicking the .sln file and trying to open it that way. It also occasionally complains that it is busy and to report the problem to Microsoft (yeah, not paying them to report an error). Any help appreciated!

    VS 2013 Express same issue

    VS 2010 works though!
    • Edited by sp97 Friday, July 22, 2016 6:26 PM
    Friday, July 22, 2016 5:06 PM

Answers

All replies

  • Hi sp97,

    Thank you for your post.

    VB template is default installed with VS.

    You can try the following steps to restore missing templates:

    Please open Windows Explorer, and navigate to  <Visual Studio Installation Path>\Common7\IDE (by default is C:\Program Files \Microsoft Visual Studio 14.0\Common7\IDE);

    1.Delete the ItemTemplatesCache, ProjectTemplatesCache folder;

    2.Open Visual Studio Command Prompt  under Start menu -> All Programs -> Microsoft Visual Studio 2015 -> Visual Studio Tools (run it with Administrator privilege: right-click the program -> Run as administrator);

    3.Run the devenv /InstallVSTemplates switch;

    4.Run the devenv /Setup switch

    Please refer to:

    https://msdn.microsoft.com/en-us/library/ms247116(v=vs.100).aspx

    >>Not sure how to create error logs  

    If the error persists,  then you may try to running devenv.exe /log <log path> in Command Prompt, the log files will be generated in the <log path>.

    Then you can check and analyze the log file to see if there are anything incorrect.
    Besides, Please use http://aka.ms/vscollect   to gather the installation logs. After using it, you will find vslogs.zip from %temp% folder.
    Please upload the file to https://onedrive.live.com/   and share the link with us.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

    Click HERE to participate the survey.

    Monday, July 25, 2016 2:00 AM
    Moderator
  • Hi, thank you for replying. "'devenv' is not recognized as an internal or external command..." I visited the link and tried 'VBExpress' /installvstemplates however that ended the same way. Tried with both VS 2013 and 2015 with same result.
    Tuesday, July 26, 2016 11:33 PM

  • Hi sp97,

    >>'devenv' is not recognized as aninternal or external command..."

    Did you run the command as administrator?


    You must run devenvas an adminstratorin order to use the /Setup (devenv.exe)and /InstallVSTemplates(devenv.exe)switches

    For more detailed information, please refer to:

    https://msdn.microsoft.com/en-us/library/xee0c8y7.aspx

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

    Click HERE to participate the survey.

    Wednesday, July 27, 2016 1:48 AM
    Moderator
  • Thank you again. It was run as administrator with the same result. A search for devenv.exe in the visual studio folder turned up nothing. 

    VS is on my A: drive, not the usual C: drive. Could this be causing it?

    Wednesday, July 27, 2016 4:25 PM
  • Hi sp97,

    If there is some problem with your Visual Studio 2015 Express. I suggest you could use VS2015 Community instead.

    VS2015 Community is a free and  fully-featured IDE, you can download it in the site below:

    https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx

    Best Regards,

    Lake Xiao

    Thursday, July 28, 2016 7:41 AM
    Moderator
  • Thanks. I believe I tried that  too as I already have the installer, but I'll try again.

    VS community was bad. It crashed a bunch the first few times I started it up. It also will not create projects for either C# or VB. 

    Also tried the devenv commands again. devenv was found this time and apparently the commands ran, however it didn't solve the problem. 

    It looks like it creates the solution file but doesn't add any components of the project like the VB form.


    • Edited by sp97 Thursday, July 28, 2016 5:36 PM
    Thursday, July 28, 2016 4:38 PM
  • Hi sp97,

    From your description, It seems that you didn't install the VS 2015 community well on your computer. 

    Some packages could be missing or corrupted.

    Besides, you didn’t mention in which way you installed VS, web installer or iso image,

    To eliminate internet variables, I suggest that you download the ISO, verify the SHA-1 to ensure the ISO is not corrupt, then use it to repair:

    VS 2015 iso Microsoft official download link:
    https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx
    VS 2015 iso files SHA-1 Values link:
    https://www.visualstudio.com/en-us/downloads/visual-studio-2015-iso-sha1-vs.aspx

    PS: To make sure whether your package is corrupted or not,
    please use FCIV.exe http://support.microsoft.com/kb/841290  to verify hash of the ISO.
    Any discrepancy would indicate that the file was corrupted. Here is a blog for how to use it, you can refer to it.

    Please make sure you’ve followed these tips:  http://social.msdn.microsoft.com/Forums/en/vssetup/thread/60f71a54-506e-4c70-be98-e993ce6d1ddf

     Best Regards,

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

    Click HERE to participate the survey.

    Friday, July 29, 2016 2:00 AM
    Moderator