0

I have an older ASP.NET web-application using framework 2.0 based on Dot Net Nuke. The web-application used to compile and run but recently it compiles fine but instead of the application running in the browser, source code appears. What could be causing this type of behavior? Thank you.

2
  • 1
    Are you talking about white-yellow error page with error line and the stack trace? Commented May 16, 2017 at 22:32
  • No. It's the actual asp.net code markup. It's returning the code behind in visible text. I cannot get the web-application to render with text boxes and such to appear--just the code for the text boxes appear. Commented May 16, 2017 at 22:53

1 Answer 1

2

Sounds to me like IIS is treating your .aspx files as static content.

Open IIS admin and make sure the .aspx extensions are mapped to PageHandlerFactory. Make sure the pages exist in an application (and not just a virtual directory). Easiest thing to do is open up IIS in a known good environment and compare the setup.

Also, make sure you have run aspnet_regiis with the appropriate .NET version.

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

1 Comment

aspnet_regiis isn't the thing to use on newer Windows releases, learn.microsoft.com/en-us/iis/application-frameworks/…

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.