fullstackproltd / AspNetCoreSpa

Asp.Net 7.0 & Angular 15 SPA Fullstack application with plenty of examples. Live demo:
https://aspnetcorespa.fullstackpro.co.uk
MIT License
1.48k stars 465 forks source link

Project doesn't run #53

Closed j-nord closed 7 years ago

j-nord commented 7 years ago

We get follow error: The program '[13320] dotnet.exe' has exited with code -2147450751 (0x80008081).

and where we can find the database: Data Source=AspNetCoreSpa.db ?

We have done everything according to instructions.

asadsahi commented 7 years ago

@j-nord are you using Visual studio IDE or VS code? You just need to do F5 in these two.

If you are using commandline you need to first set dev environment:

set ASPNETCORE_ENVIRONMENT=Development

then do dotnet run

j-nord commented 7 years ago

We use Visual Studio 2015.

asadsahi commented 7 years ago

Never seen this issue, can you let me know environment details?

dotnet info ?

node -v npm -v

j-nord commented 7 years ago

PM> node -v v7.5.0 PM> npm -v 4.1.2

asadsahi commented 7 years ago

Try with latest 6.x node version as state in readme. haven't tried this under node v7.x.

askpt commented 7 years ago

It's working on my machine with that node version... So probably could be something related with the dotnet installation.

asadsahi commented 7 years ago

@j-nord can you attach some screenshot or further details for this issue as I am unable to guess any reason for above issue.

j-nord commented 7 years ago

In Visual Studio we get follow error in Output:

The program '[20928] dotnet.exe' has exited with code -2147450751 (0x80008081). The program '[8000] iisexpress.exe' has exited with code 0 (0x0).

In the event-log of windows:

Failed to start process with commandline '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\ProjectSystem\VSIISExeLauncher.exe" -debug -p "C:\Program Files\dotnet\dotnet.exe" -a "E:\Users\Juergen\Documents\Visual Studio 2015\Projects\AspNetCoreSpa-master\bin\Debug\netcoreapp1.1\AspNetCoreSpa-master.dll" -pidFile "C:\Users\Juergen\AppData\Local\Temp\tmpD954.tmp" -wd "E:\Users\Juergen\Documents\Visual Studio 2015\Projects\AspNetCoreSpa-master"', ErrorCode = '0x80004005'.

We have found a perfect example which work's fine without any problems from chsakell:

https://github.com/chsakell/aspnet5-angular2-typescript

asadsahi commented 7 years ago

@j-nord I can see project running under following visual studio IDE without any error.

image

It could be your particular environment. Have you tried switching to node 6.9,x? You can use NVM to easily switch between different versions of nodejs.

Also, .net SDK that this project requires is :

"sdk": {
    "version": "1.0.0-preview2-1-003177"
}

This is so that project is compatable with project.json based structure.

maksir commented 7 years ago

@j-nord if you download project as *.zipfile, try to follow steps:

  1. Close VS
  2. Rename folder from 'AspNetCoreSpa-master' -> 'AspNetCoreSpa'
  3. Remove 'node_modules' folder
  4. Open VS and wait when 'restore dependencies' completed
  5. F5

I helped it. But after run I see only 'fa-spinner', no errors in chrome console, no errors in VS. I try past /home url, /registration url.... but see only spinner, it's all.

BitFlipp3r commented 7 years ago

@maksir Its probably an unnecessary question, but just in case: Do you have JS enabled?

maksir commented 7 years ago

@BitFlipp3r yes. I have many a angular2 projects, all works OK, exclude this project

maksir commented 7 years ago

after command 'npm run clean:dist' and F5 again all work now.