Solved

Blank page on ASP.NET 4.0 and IIS 7.5

Posted on 2011-03-24
3
1,272 Views
Last Modified: 2012-05-11
I have an ASP.NET 4.0 webapp that runs fine locally on IIS 7.5 and Windows 7. But when I deploy it to a Windows Server 2008 R2 server and try to hit a page, all I get is blank. When I view source I get this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>
<BODY></BODY></HTML>

Open in new window


I tried creating and hitting a simple html page in the root of the webapp. Same result: blank.
I tried hitting a nonexistent page, just shows blank--no 'page not found' error or similar.
At first I had a web.config error, and that error was displayed through the page. Once I fixed that config error, I just get the blank page.

Here's what I've already verified:
IIS 7.5 is installed and running
ASP.NET & static content server is installed
Friendly HTTP error messages are disabled, so I should see real error messages from server
custom errors are disabled via web.config
permissions are wide open on the folder containing the asp.net files

Any ideas?
0
Comment
Question by:SweatCoder
  • 2
3 Comments
 
LVL 15

Expert Comment

by:pcsmitpra
Comment Utility
ASP.NET 2.0 and ASP.NET 4.0 should be installed on the server. Also the application pool for website should be running with ASP.NET 2.
0
 
LVL 11

Accepted Solution

by:
SweatCoder earned 0 total points
Comment Utility
I'm running asp.net 4.0. Why would I want the app pool to run on 2.0 when it can run on 4.0?

I jerked around with this a bunch more and finally got it working. I think it was related to Windows Auth in IIS being disabled, and I needed it enabled. Very strange symptom for this: blank page.

Anyway, I think I may just request this be closed.
0
 
LVL 11

Author Closing Comment

by:SweatCoder
Comment Utility
I'd like to close this out...
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now