1

Using Visual Studio 2017 the most obvious way to me is to publish to IIS using file system. When I host the folder that comes outof this publishing in IIS I use an App Pool with .Net 4.5.1 (I also use .Net 4.5.1 for my app). When I access the web page with the browser, static content works, but dynamic content returns HTTP 501 without further information.

In the events viewer I see no entries.

How can I diagnose this? Should I try another way to get the app running in the local IIS and later on an inhouse server using IIS?

7
  • 1
    As described here learn.microsoft.com/en-us/aspnet/core/publishing/iis "Set the .NET CLR version to No Managed Code." your IIS application pool shoudln't be running .Net and should be set to No Managed Code. Commented Apr 2, 2017 at 17:32
  • "No Managed Code", would never have thought about that. will try, thx Commented Apr 2, 2017 at 17:37
  • Yeah, it's a little bit strange at first. In that scenario, IIS is just acting as a reverse proxy, forwarding your request to the self hosting ASP.NET Core module that is also an autonomous application that will be using a .Net runtime. Commented Apr 2, 2017 at 17:41
  • woiking, thx. do you know if this proxy scenario performs well? at the moment i use it for dev only, but would be interested if iis-kestrel is recommended or should better be avoided. Commented Apr 2, 2017 at 18:02
  • 1
    Regarding the performance, you can find information here and there: stackoverflow.com/questions/34440649/… I wouldn't worry, because MS worked wrote a lot of thing from scratch to build ASP.NET Core, and they wouldn't have released something less performant. Commented Apr 2, 2017 at 18:10

1 Answer 1

1

As described here http://learn.microsoft.com/en-us/aspnet/core/publishing/iis "Set the .NET CLR version to No Managed Code." your IIS application pool shoudln't be running .Net and should be set to No Managed Code.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.