PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, March 5, 2022

[FIXED] Mamp and aspx file shows source code only

 March 05, 2022     asp.net, mamp, server     No comments   

Issue

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?


Solution

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).



Answered By - Quentin
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing