Solved

Blank page on ASP.NET 4.0 and IIS 7.5

Posted on 2011-03-24
3
1,310 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

724 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