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

webapplication does not appear. #37

Closed
niufwshd opened this Issue Nov 4, 2017 · 7 comments

Comments

Projects
None yet
3 participants
@niufwshd

niufwshd commented Nov 4, 2017

os: win10 64bit .net core 2.0.2 vs2017 15.4

i followed the readme's step,finally the console window appear:
Start Electron Desktop Application...
Microsoft Windows [版本 10.0.14393]
(c) 2016 Microsoft Corporation。保留所有权利。

C:\Users\Think\Documents\Visual Studio 2017\Projects\WebApplication1\ASPNETCORE2>dotnet publish -r win10-x64 --output "C:\Users\Think\Documents\Visual Studio 2017\Projects\WebApplication1\ASPNETCORE2\obj\Host\bin"
用于 .NET Core 的 Microsoft (R) 生成引擎版本 15.4.8.50001
版权所有(C) Microsoft Corporation。保留所有权利。

ASPNETCORE2 -> C:\Users\Think\Documents\Visual Studio 2017\Projects\WebApplication1\ASPNETCORE2\bin\Debug\netcoreapp2.0\win10-x64\ASPNETCORE2.dll
ASPNETCORE2 -> C:\Users\Think\Documents\Visual Studio 2017\Projects\WebApplication1\ASPNETCORE2\obj\Host\bin\

C:\Users\Think\Documents\Visual Studio 2017\Projects\WebApplication1\ASPNETCORE2>

Start npm install...
Microsoft Windows [版本 10.0.14393]
(c) 2016 Microsoft Corporation。保留所有权利。

C:\Users\Think\Documents\Visual Studio 2017\Projects\WebApplication1\ASPNETCORE2\obj\Host>npm install

electron@1.7.8 postinstall C:\Users\Think\Documents\Visual Studio 2017\Projects\WebApplication1\ASPNETCORE2\obj\Host\node_modules\electron
> node install.js

and hanged.
then I switch to visual stuido and pressed f5
a console weindow appeared:
info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
User profile is available. Using 'C:\Users\Think\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
Hosting environment: Production
Content root path: C:\Users\Think\Documents\Visual Studio 2017\Projects\WebApplication1\ASPNETCORE2\bin\Debug\netcoreapp2.0\win10-x64
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost:5000/home/index
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 313.9332ms 404
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost:5000/
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 2.569ms 404
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost:5000/
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.4535ms 404
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost:5000/home
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2ms 404
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost:5000/
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.7621ms 404

then I open chrome and input "http://localhost:5000" ,the browser return "HTTP ERROR 404",
I don't know why, perhaps some of my operations are wrong?. please help, thank you!

@robertmuehsig

This comment has been minimized.

Show comment
Hide comment
@robertmuehsig

robertmuehsig Nov 4, 2017

Collaborator

Mhh - do you have node.js installed? If yes, which version?

Collaborator

robertmuehsig commented Nov 4, 2017

Mhh - do you have node.js installed? If yes, which version?

@robertmuehsig robertmuehsig added the bug label Nov 4, 2017

@niufwshd

This comment has been minimized.

Show comment
Hide comment
@niufwshd

niufwshd Nov 5, 2017

@robertmuehsig ,thank you for your quickly answer first! yes node version 8.9.0 and npm version: 5.3.0

niufwshd commented Nov 5, 2017

@robertmuehsig ,thank you for your quickly answer first! yes node version 8.9.0 and npm version: 5.3.0

@robertmuehsig

This comment has been minimized.

Show comment
Hide comment
@robertmuehsig

robertmuehsig Nov 5, 2017

Collaborator

Could you share our project on GitHub?

Collaborator

robertmuehsig commented Nov 5, 2017

Could you share our project on GitHub?

@GregorBiswanger

This comment has been minimized.

Show comment
Hide comment
@GregorBiswanger

GregorBiswanger Nov 6, 2017

Member

@niufwshd try to attach the process with visual studio and debug your startup code.. (See the steps on readme.md)

For debug startup code, you need currenty a Thread.Sleep() on begin the startup.

Member

GregorBiswanger commented Nov 6, 2017

@niufwshd try to attach the process with visual studio and debug your startup code.. (See the steps on readme.md)

For debug startup code, you need currenty a Thread.Sleep() on begin the startup.

@GregorBiswanger

This comment has been minimized.

Show comment
Hide comment
@GregorBiswanger

GregorBiswanger Nov 10, 2017

Member

@niufwshd Did you find the problem?

Member

GregorBiswanger commented Nov 10, 2017

@niufwshd Did you find the problem?

@niufwshd

This comment has been minimized.

Show comment
Hide comment
@niufwshd

niufwshd Nov 12, 2017

@robertmuehsig ,GregorBiswanger,sorry for my later reply. Today I saw https://www.youtube.com/watch?v=nuM6AojRFHk guide video. then I found my Fault. I am not very famailar with the .net core or my carelessness, In the program.cs I put this "UseElectron(args)" before "UseStartup()", and followed the Video, I switch their order,and execute dotnet restore, dotnet electronize init,and dotnet electronize start, at last I saw the miracle,desktop window appeared! very excited ! thank you very much!

niufwshd commented Nov 12, 2017

@robertmuehsig ,GregorBiswanger,sorry for my later reply. Today I saw https://www.youtube.com/watch?v=nuM6AojRFHk guide video. then I found my Fault. I am not very famailar with the .net core or my carelessness, In the program.cs I put this "UseElectron(args)" before "UseStartup()", and followed the Video, I switch their order,and execute dotnet restore, dotnet electronize init,and dotnet electronize start, at last I saw the miracle,desktop window appeared! very excited ! thank you very much!

@robertmuehsig

This comment has been minimized.

Show comment
Hide comment
@robertmuehsig

robertmuehsig Nov 12, 2017

Collaborator

If you have any questions left, just open a new issue. The order is quite important - not only for Electron, but for other ASP.NET Core packages as well. Glad Gregors video helped!

Collaborator

robertmuehsig commented Nov 12, 2017

If you have any questions left, just open a new issue. The order is quite important - not only for Electron, but for other ASP.NET Core packages as well. Glad Gregors video helped!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment