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.
-
1Are you talking about white-yellow error page with error line and the stack trace?Andrei– Andrei2017-05-16 22:32:34 +00:00Commented 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.Lakeshore– Lakeshore2017-05-16 22:53:46 +00:00Commented May 16, 2017 at 22:53
Add a comment
|
1 Answer
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.
1 Comment
Lex Li
aspnet_regiis isn't the thing to use on newer Windows releases, learn.microsoft.com/en-us/iis/application-frameworks/…