citykid
citykid

Reputation: 11060

How can I deploy an Asp.Net MVC Core application, using .Net Framework (not core) in my local IIS?

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?

Upvotes: 1

Views: 449

Answers (1)

Daboul
Daboul

Reputation: 2733

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.

Upvotes: 1

Related Questions