ASP.NET 5 RC1 Deployment for IIS Hangs

I installed RC1 version of ASP.NET 5.0 on a Windows 2012 Server with IIS. After publishing my ASP.NET 5 application on the server, I try to access the default webpage and the web browser freezes (it just works indefinitely). Everything works correctly in Visual Studio. This only happens when I publish it on the IIS server.

I followed the instructions on this tape to publish and deploy to the IIS server: http://docs.asp.net/en/latest/publishing/iis.html .

Has anyone else experienced this and resolved the problem? If so, what did you do to fix it?

+6
source share
2 answers

Joel

Today I faced the same problem trying to deploy ASP.NET 5 applications in IIS on Azure VM.

Perhaps you are not deploying the DNX runtime with your application, or something is preventing / killing the Kestrel or WebListener process. From what I found, the request freezes because Kestrel (or any other listener that you work with on the dnx network) does not start or does not work during the request.

For me, this happened because I did not publish the application properly with the publication of dnu.

Check the .. / approot folder and make sure that it has the following directory structures:

../approot /packages // NuGet Packages /runtimes // DNX lives here /src // Your code 

If you are missing / runtime, you will see the request freezes.

To add them, I used the following command:

 dnu publish --out <output directory> --configuration <build configuration> --wwwroot <web root name> --wwwroot-out <web root output name> --runtime <either "active" or current runtime> --iis-command web 

If this does not solve the problem, something may cause the application process to crash.

+1
source

What helped me run

dnu recovery

after copying files to the server. It turned out that IIS could not start approot \ web.cmd, I found that after starting web.cmd manually. Then I searched for the error and came to this answer

0
source

All Articles