Mamp and aspx file shows source code only

时间:2015-12-14 17:55:09

标签: asp.net server mamp

I'm trying to live preview my site using brackets and Mamp, however the site I am working on has .aspx files and the preview only shows me the files source code. What can I do to get it to show correctly?

1 个答案:

答案 0 :(得分:1)

From the ASP.NET documentation:

Because ASP.NET 5 has completely decoupled ASP.NET applications from IIS or any other web server, it’s now possible to host ASP.NET applications on any number of different servers. ASP.NET supports three: IIS, WebListener, and Kestrel, which provide two great options for Windows environments and a third, open-source option that can be used on several different operating systems.

Ditch Apache (which doesn't appear to support ASP.NET) and install Kestrel (but note its limitations and consider if you really want to use the combination of ASP.NET and not-Windows).