-1

I have a asp.net web application that I am trying to deploy to IIS on Windows Server 2016. I first ran the application on Visual Studio 2017 and it loads and runs perfectly fine but on IIS when I run it on localhost it loads up but with the code headers on it and no functionality.

Code headers loading on website

There are no errors thrown from the browser perspective or event logs so I don't know how to troubleshoot specifically. Most of the research I have done on this issue points to not having HTTP activation feature enabled but I have installed everything and still this issue has not been resolved. Most of the suggestions and answers I have tried were for the old IIS 7.5 or 8 not IIS 10.0 which I am using. The application runs fine on visual studio so I'm guessing that it is not a problem with the code but with my IIS configuration. I'm hoping someone can help me or at least point me in the right direction. This is my first question ever so I'm not sure what else is needed (i.e code, specifics) for me to get a proper answer. I will provide what is needed. Thank you

phuzi
  • 12,078
  • 3
  • 26
  • 50
cflasrado
  • 11
  • 2
  • Those aren't "code headers". It's just raw ASPX files, without having been rendered to HTML. You'll need to research why that can happen. – mason Mar 02 '18 at 14:27
  • did you Publish the project or just copy the solution to IIS? – Crowcoder Mar 02 '18 at 14:28
  • Search for questions like "IIS not serving ASPX files" (or perhaps "not parsing"). Tons of different things it could be. – McGuireV10 Mar 02 '18 at 16:35

1 Answers1

1

Thanks for your comments guys. After searching for solutions using the framing of the question as "IIS not serving ASPX files" I found a solution which worked which was to go IIS -> select your website -> go to handler mapping and then press revert to parent option. Apparently my handler mapping for the website were incorrect or not configured properly but everything works now. Thanks for your help.

cflasrado
  • 11
  • 2