Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors restoring packages on VS2015 Update 3 #1

Closed
james-yin opened this issue Jun 28, 2016 · 15 comments
Closed

errors restoring packages on VS2015 Update 3 #1

james-yin opened this issue Jun 28, 2016 · 15 comments
Labels

Comments

@james-yin
Copy link

I just updated my VS2015 to Update 3. The ReactWebPack.CoreRC2 project is having problem restoring packages on my machine. The following is the screenshot (or http://imgur.com/M1N5Zg8):

image 1

The other projects loaded fine in the solution.

@JonPSmith
Copy link
Owner

Hi @james-yin,

My first thought is that you haven't installed the Visual Studio official MSI Installer with Visual Studio tooling mentioned in the 1. Make sure computer is set up properly of the Readme file. Did you do that? If you did then its some other problem.

In case anyone else reads this then in future this might not work, as Core 1 is released and RC2 may go away. Currently (i.e. on 29th June 2016) the MSI Installer with Visual Studio tooling links to review2 so it should work. However that will change soon.

@Van-Dame
Copy link

In case installing Visual Studio Tooling doesn't work, try running dotnet restore in the project directory from cmdline. Visual Studio sometimes gets hung up on cached packages and doesn't restore from nuget.

@JonPSmith
Copy link
Owner

Thanks @Van-Dame. Helpful suggestion.

@james-yin
Copy link
Author

@JonPSmith I did install the VS tooling as suggested in the readme.

@Van-Dame I tried dotnet restore, but I got a bunch of errors about failed to download packages due to timeouts. I used the VS developer command line and have no problems with other package managers like npm.

log : Failed to download package from 'https://api.nuget.org/v3-flatcontainer/m icrosoft.extensions.configuration.fileextensions/1.0.0-rc2-final/microsoft.exten sions.configuration.fileextensions.1.0.0-rc2-final.nupkg'.
log : The HTTP request to 'GET https://api.nuget.org/v3-flatcontainer/microsoft .extensions.configuration.fileextensions/1.0.0-rc2-final/microsoft.extensions.co nfiguration.fileextensions.1.0.0-rc2-final.nupkg' has timed out after 100000ms.

@JonPSmith
Copy link
Owner

Hi @james-yin,

I wanted to rule out that the new Core 1.0.0 hasn't changed anything. I therefore checked that I could see a ...rc2-final.nupkg for the first packages, Microsoft.AspNetCore.Diagnostics, by right-clicking the References directory and selecting Manage NuGet Packages and searching for Microsoft.AspNetCore.Diagnostics and it is definitely available.

There have been quite a few clones of this solution and no one else has reported a problem so having ruled out problems cause by the release of Core 1.0.0 then it must be something else.

As @Van-Dame said ASP.Net Core can be funny with restore. I remember having a problem at the start but I can't remember what I did. Maybe try a restart of VS2015 and then do a rebuild on the ReactWebPack.CoreRC2 project.

Sorry I don't have a solution for you. If you are just interested in the build toolchain then you can allways look at the ReactWebPack.MVC5 version.

@JonPSmith
Copy link
Owner

Hi @james-yin,

Did you fix your problem?

I updated my VS2015 to Update 3 and added the preview 2 tooling update. I then took a new clone of ASpNetReactSamples and did a compile, which forces a restore. The restore of the NuGet packages worked fine for me and ReactWebPack.CoreRC2 ran properly.

@james-yin
Copy link
Author

Hi @JonPSmith ,

Thanks for checking in with me.

I did a fresh clone and tried the build again. The dotnet core stuff got restored correctly, but there's now complaint about "npm - not installed" under the wwwroot folder:

image 2

I do have the proper node and npm installed on my machine:
image 3

The "dev-build" in my Task Runner Explorer for the CoreRC2 project built with no errors, but when I launched the CoreRC2 project with F5, I get errors and exited immediately:
The program '[14328] dotnet.exe' has exited with code -2147450749 (0x80008083).
The program '[5928] iisexpress.exe: Program Trace' has exited with code 0 (0x0).
The program '[5928] iisexpress.exe' has exited with code 0 (0x0).

Any other suggestions please? Thanks.

@JonPSmith
Copy link
Owner

Hi @james-yin,

Glad you got the restore going.

The npm - not installed issue is a known problem in the aspnet tooling. I have a note about this in the readme file under the 2. Set up the specific project.

I have no idea on the CoreRC2 exiting on running using F5. I built and ran CoreRC2 successfully in my new cloned version. Have you tried creating a brand new ASP.NET Core web site and trying to run it?

@JonPSmith
Copy link
Owner

Hi @james-yin, Did you get anywhere on getting ReactWebPack.CoreRC2 going?

@amithegde
Copy link

I get same error:
npm

However, I am able to run the application and it works fine..!

@JonPSmith
Copy link
Owner

Hi @amithegde,

Glad it worked for you. On the npm - not installed issue this is a known problem in the aspnet tooling and I have note about this in the readme file under the 2. Set up the specific project.

Jon

@MarkPieszak
Copy link

Same happening here for me with VS2015 update 3. (Windows 7)
Exception: Call to Node module failed with error: To use prerendering, you must install the 'aspnet-prerendering' NPM package.

The project will also not run, gets an Internal Server error.

@JonPSmith
Copy link
Owner

Hi @MarkPieszak,

OK, I'm going to need your help on debugging this as I can't reproduce it. I am on a Windows 10 laptop running Visual Studio Professional Update 3 and tried the following:

  1. Downloaded a new clone of AspNetReactSamples.
  2. Compiled it with F6 (which takes a lot of time as it downloads all the NPM libraries for ReactWebPack.CoreRC2).
  3. Set ReactWebPack.CoreRC2 as the startup project.
  4. Pressed F5 to start it in debug mode.

That work for me, but it clearly doesn't work for you, and something quite different didn't work for @james-yin (@james-yin - any update on getting it to work or have you just given up on it?). However it did work for @amithegde.

I am contemplating changing ReactWebPack.CoreRC2 over to RTM 1.0.0, but as I don't know what is going wrong then I'm not even sure that will work.

Have you any ideas @MarkPieszak? I did notice that a new ASP.NET Core 1.0.0 web project has a entry for "BundlerMinifier.Core": "2.0.238", in the tools section of the project.json file which isn't in the RC2 version. As your error is about prerendering then it might matter. Can you try adding that and see if it changes anything.

Failing that I could create a branch with ReactWebPack.CoreRC2 changed to RTM 1.0.0 for you to try if you like. Let me know.

@JonPSmith JonPSmith added the bug label Jul 19, 2016
@JonPSmith
Copy link
Owner

Hi @MarkPieszak, @james-yin and all watchers,

I have created a new branch called CoreRC2ToRTM where I have converted the ASP.NET Core project from the RC2 release to the current release, 1.0.0. It works for me, but I would really like you guys to check it and see if it helps sort out your problems.

Therefore, could the people who had a problem, and any others watching this project, please check the CoreRC2ToRTM branch and let me know if it works. Once I know it works for you I will merge this into the master branch. Thanks.


List of changes:

  1. Change the various NuGet packages from 1.0.0-rc2 to 1.0.0 (plus a few other changes needed).
  2. Changed over to using the "Microsoft.AspNetCore.Razor.Tools" version "1.0.0-preview2-final"
  3. Removed Gulp and swapped over to the new Core 1.0.0 Bundler and Minifier
  4. Changed the namespace from ReactWebPack.CoreRC2 to ReactWebPack.Core
  5. Changed some text in the razor layout files to remove RC2.
  6. Changed the Readme file to refer to ReactWebPack.Core

NOTE: I have NOT changed the folder name as that would invalidate all the links I have to the project from my articles.

@JonPSmith
Copy link
Owner

Hi all,

I have combined the CoreRC2ToRTM branch into master so that the ReactWebPack.Core is now at Core 1.0.0 level. I have also updated the article on my web site http://www.thereformedprogrammer.net to refer to ReactWebPack.Core, not ReactWebPack.CoreRC2.

NOTE: I have changed the project's namespace to ReactWebPack.Core, but not the directory name is still ReactWebPack.CoreRC2, as change that causes all sorts of problems to the VS project, and invalidates any links.

I am therefore closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants