Solved

Blank page on ASP.NET 4.0 and IIS 7.5

Posted on 2011-03-24
3
1,284 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
ID: 35214097
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
ID: 35234460
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
ID: 35321745
I'd like to close this out...
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 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