Base solution for your next web application
Open Closed

Visual Studio opens Web.Host project page and exits build #7520


User avatar
0
wizgod created

Greetings Programs!

I am using Angular+Core and when I run Web.Host, Visual Studio opens up the http://localhost:22742 page just fine but then immediately exits from debugging.

The localhost:22742 site is still running in IIS Express and I can run the angular site no problem but I cannot debug the Core application.

I have googled for core applications exiting upon debugging and tried a number suggested solutions but none have worked.

Has anyone experienced this and/or have a solution?

Thanks,

Wg


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @wizgod

    It shouldn't act like that.

    • Do you have any error message in the Logs.txt file under *.Web.Host/App_Data/Logs folder ?
    • Have you renamed your project manually ?
  • User Avatar
    0
    wizgod created

    Hi @ismcagdas!

    So glad it's not supposed to do that; this means it's something to do with my setup.

    I checked the log and it had a bunch of hangfire timeout errors, some invalid token errors and the following error;

    INFO 2019-07-24 19:48:03,573 [4 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 DEBUG http://localhost:22742/ 0 INFO 2019-07-24 19:48:03,573 [8 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/
    ERROR 2019-07-24 19:48:03,952 [8 ] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HLOGK8GPONP5", Request id "0HLOGK8GPONP5:00000001": An unhandled exception was thrown by the application. System.ArgumentNullException: Value cannot be null. Parameter name: values at System.String.Join(String separator, IEnumerable1 values) at Microsoft.Extensions.RazorViews.BaseView.EndWriteAttribute() at Microsoft.AspNetCore.Hosting.Views.ErrorPage.ExecuteAsync() at Microsoft.Extensions.RazorViews.BaseView.ExecuteAsync(HttpContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication1 application)

    I don't want to fight with it so I've grabbed the latest version and will start from it.

    Thanks,

    Wg