Skip to content
This repository has been archived by the owner on Nov 1, 2018. It is now read-only.

Internal Server Error when hosting ASP.NET Core on IIS #434

Closed
saf-itpro opened this issue Oct 2, 2017 · 1 comment
Closed

Internal Server Error when hosting ASP.NET Core on IIS #434

saf-itpro opened this issue Oct 2, 2017 · 1 comment

Comments

@saf-itpro
Copy link

Deployed ASP.NET MVC Core 1.1.1 on Windows 2012 Server R2. Followed this ASP.NET article (installed DotNetCore.1.0.5_1.1.2-WindowsHosting bundle etc). App runs fine as localhost on the server if we follow the following steps:

  1. In cmd from root dir of the app, ran: dotnet MyWebapplication.dll
  2. Noticed that application is running and waiting for responses on localhost:5000.
  3. Opened the browser on the host server and navigated to: http://localhost:5000
  4. Home page opened as expected
    But when we navigate to the http://IP Address/MyWebapplication on a different desktop on the same network, we get the 500 - Internal Server Error

NOTE: We tested that if we host a simple web app (not ASP.NET Core) with just one Index.html page on IIS, we can access the app from another machine on the same network via, say, http://IP Address/MySimpleHtmlApp. So issue seems to be related to something on ASP.NET Core deployment on IIS. Question: What we may be missing and how to resolve it?

@saf-itpro
Copy link
Author

saf-itpro commented Oct 2, 2017

Resolved. The issue was that although I had installed DotNetCore.1.0.5_1.1.2-WindowsHosting bundle but the ASPNETCore was not showing up in IIS->Modules. So, I uninstalled the bundle and the restarted the machine, installed the bundle again, restarted the machine (as precaution).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant