?
Solved

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

Posted on 2014-07-16
8
Medium Priority
?
389 Views
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.
0
Comment
Question by:dodgerfan
  • 5
  • 3
8 Comments
 
LVL 36

Expert Comment

by:Miguel Oz
ID: 40213008
Hard to tell without looking at some code regarding the PKI changes.
q1. What is the nature of the change?
q2. Is this asp.net 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.
0
 

Author Comment

by:dodgerfan
ID: 40213184
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.
0
 
LVL 36

Expert Comment

by:Miguel Oz
ID: 40213414
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 Asp.net 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.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:dodgerfan
ID: 40214477
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>
<BODY></BODY></HTML>

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.
0
 
LVL 36

Accepted Solution

by:
Miguel Oz earned 2000 total points
ID: 40216093
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.
0
 

Author Comment

by:dodgerfan
ID: 40218159
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.
0
 

Author Comment

by:dodgerfan
ID: 40220767
Found it finally.

http://www.experts-exchange.com/Networking/Protocols/SSL/Q_24461827.html

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
command:

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

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

Author Closing Comment

by:dodgerfan
ID: 40220772
Thanks for the ideas and helping to track it down.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
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.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month15 days, 23 hours left to enroll

850 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