ASP.Net web page giving blank page on postback since PKI enablement

Posted on 2014-07-16
Last Modified: 2014-07-25
Ok, I thought I had this solved with an earlier question, but we are still experiencing it. I recently implemented PKI with my ASP.Net web application (C# code behind), within the past week. Since then, I get users continually telling me that when they go to save something, they get back a blank page. This appears to be happening on PostBacks. It does not happen every time, but it does happen often and continually. Before enabling PKI, this never happened. This app has been running smooth for over 2 years. It always happens on a postback, when the user clicks save or selects something from a dropdown list. Any ideas what is happening? I've experienced it many times, too.
Question by:dodgerfan
    LVL 35

    Expert Comment

    by:Miguel Oz
    Hard to tell without looking at some code regarding the PKI changes.
    q1. What is the nature of the change?
    q2. Is this MVC or web form? .NET version?
    q3.  Does the change introduce post back controls?
    q4. Does the change create conditions that may affect page rendering?

    I will look whether the changes are not executing any rendering page code especially if  page contains some dynamic content.
    If company policies do not allow to post code then you need to contract a consultant to have a look at your code before/after change to find out what the issue is.

    Author Comment

    We put in the PKI infrastructure, making the required changes to IIS6. I also added a function in my default page to capture the PKI cert data of each user, which I later use to authenticate users so they do not have to use a username and password anymore.
    This is ASP.Net, 2.0, written with VS 2008, C# code behind, SQL Server 2005 DB.
    The postbacks occur on Saving by clicking a button or making a selection from a drop down list. The code behind does not execute. If you do what you need within a minute of opening the page, it will execute. If you wait past 1 minute, you get the blank page. I have thought about sessions and timeouts, but none of it seems to have an effect.
    LVL 35

    Expert Comment

    by:Miguel Oz
    Where is the minute (timer in C# or JavaScript) interval defined?
    Sometimes problem could be solved if you delete the browser cache and all temporary files.
    Again, without code it is hard to check or help, Imagine a patient telling a doctor I have a tummy ache without providing details about diet, last meal, medicines being taken, etc.

    Author Comment

    I tested the code myself, just timing it by clock. I deleted the browser cache and temp files, but I still get it.
    The code behind does not execute, either. It does the same thing on IE (version 8) and Firefox. A view source of the blank page shows just these lines:

    <!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD><META content="IE=7.0000" http-equiv="X-UA-Compatible">

    <META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>

    I am hampered by the environment I have. I can't post code easily, if at all. And I do not have many tools available. I do not have fiddler, for example. Again thanks for the help and any insight or ideas to chase is appreciated.
    LVL 35

    Accepted Solution

    content="IE=7.0000" means your page is forced to run as IE7 even if you are using IE8, Is this correct?

    Again, your previous post is not helpful, it only tells me the page is blank but not how the page is generated or PKI is loaded,
    If you can not post code, you should:
    - Rollback your code to your original working code.
    - Capture the produce html.
    - Start introducing the new code little by little until the web site breaks. Check page events like Page_load, etc.

    Author Comment

    Thanks for the input and ideas. Yes, I am forcing IE 8 to run as IE 7. I took that out, but it made no difference. I took out my code that grabs the Certificate data and tried it without it. I still get the white screen. However, if I uncheck (in IIS, I'm using IIS6), the Require secure channel (SSL) checkbox and check the Ignore client certificates option, everything runs as expected and the code executes. No white page. When I turn PKI back on by checking the Require secure channel (SSL) checkbox and check either of the Accept or Require client certificate options, the blank page returns. I'm still at a loss, and do not know what to do yet.

    Author Comment

    Found it finally.

    It turns out that we needed to issue the following 2 statements from
    the c:\inetpub\adminscripts directory to solve the problem:

    cscript adsutil.vbs set w3svc/site#/uploadreadaheadsize 200000

    and set the SSLAlwaysNegoClientCert value by issuing the following

    cscript adsutil.vbs set w3svc/site#/SSLAlwaysNegoClientCert true

    where site# is the identifier number associated with the website.

    Author Closing Comment

    Thanks for the ideas and helping to track it down.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    728 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

    18 Experts available now in Live!

    Get 1:1 Help Now