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
Solved

Blank page on ASP.NET 4.0 and IIS 7.5

Posted on 2011-03-24
3
1,291 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

792 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