Base solution for your next web application
Open Closed

aspnetzero asp.net core version cann't run on IIS #2080


User avatar
0
trendline created

I published my project which based on aspnetzero with asp.net core on IIS, It cannot run, even ABP already initialed the database, when visit the site it displays 500 error.

After check the logs, I found below exception messages:

Application: Viewtance.SRP.Web.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.ObjectDisposedException at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean ByRef) at System.StubHelpers.StubHelpers.SafeHandleAddRef(System.Runtime.InteropServices.SafeHandle, Boolean ByRef) at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv+NativeMethods.uv_async_send(Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvAsyncHandle) at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.async_send(Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvAsyncHandle) at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelThread.PostCloseHandle(System.Action`1

I searched the web, cannot found any useful info, how to fix?

And, I also published a asp.net core website which come from visual studio scaffold, it works fine with the same hosting environments.

Thanks advance, if you could give me some guides to resolve this trouble issue.


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

    Hi,

    Where did you get this log ? Can you also check Window's Event Viewer logs ?

  • User Avatar
    0
    trendline created

    I got this exception log from windows application logs, but now the issue resolved, but I don't know how it is be fixed. May be it caused by the connection string to database is not correct, but before I update the connection string when the website first running the dataset also be initialed created, so I don't think it is caused by database connection string, really is an outlandish exception, and it cost me a lot of time investigate it.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I'm glad that it's solved. It is not easy to work on azure sometimes.

  • User Avatar
    0
    antonis created

    I got the same error on my uat server. I restarted App pool IIS but still website does not come up. I have even restarted the machine but still the website is dead

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @antonis,

    I'm referencing the github issue in case anyone faces the same problem <a class="postlink" href="https://github.com/aspnet/KestrelHttpServer/issues/2199">https://github.com/aspnet/KestrelHttpServer/issues/2199</a>.