Deploying an ASP.NET 5 (vNext) Site for IIS 8

I am trying to deploy an ASPNET vNext site on IIS 8.

The site works fine in development - I can run it using "web" or IISExpress, and it creates for all types of runtimes (coreclr and clr). I can also run the same site on my Mac.

However, when I deploy it to IIS, as soon as I try to get to the site, I get a 500 error. The actions that I perform to deploy:

  • Publishing a site to a local drive. I am doing this through Visual Studio. Again, if I run the "web.bat" file created as part of the publication, it works fine (on this computer).
  • Then I copy the published files to my IIS host.
  • I point the website to the wwwroot folder. (This is next to the folder of the appropriate address.) I believe that this works to such an extent because I once forgot to copy this approach, and at least I got an error about it. So ... something is happening.
  • Then I try to click the URL ... and I get 500.

I have ASP.NET 4.5.2 installed. IIS has ASP.NET 4.5 + Extensions installed as a function. When I ran the quick Index.html page in my web endpoint, it displayed, so I believe that IIS at least posts the information.

I provided some links to the information I could find on this issue. So far, nothing is working, and it's quite complicated. I would appreciate any guidance in the right direction.

+4
source share
1 answer

Using the additional information provided by Aristos from this answer , I was able to get better error messages from IIS. Ultimately, I found out that I needed to deploy coreclr, not clr, with my application.

However, over time, I ended up not using IIS at all, since Kestrel was better / easier for this particular situation (and, damn it, a lot easier to handle).

0
source

All Articles