I am trying to get value from HTTP server in aspx page load : Request.ServerVariables("HTTP_ENTRUST_CLIENT") and getting the following error: Request is not available in this context Description: An unhandled exception occurred during the execution of the current
web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Request is not available in this context
what is HTTP_ENTRUST_CLINET I do not see that anywhere. What kind of data does it hold, because if I turn trace on in my ASP.Net application I don't see that Server Variable anywhere.
That could be the problem. Maybe ASP.Net doesn't pick it up for some reason. Have you tried turnning on the trace function and checking out the responses. Also is it a header or a server variable. Because they are accessed differently in ASP.Net.
Thanks for your reply. It is in servervariables. I finally made it work, it was something wrong with the page, when I put the code in a new blank page it worked.
rtdeveloper
Member
85 Points
17 Posts
Error when trying to get variable from HTTP header
Jan 06, 2004 01:02 PM|LINK
nberardi
Star
11233 Points
2352 Posts
Re: Error when trying to get variable from HTTP header
Jan 13, 2004 03:20 PM|LINK
rtdeveloper
Member
85 Points
17 Posts
Re: Error when trying to get variable from HTTP header
Jan 13, 2004 03:41 PM|LINK
nberardi
Star
11233 Points
2352 Posts
Re: Error when trying to get variable from HTTP header
Jan 13, 2004 05:08 PM|LINK
rtdeveloper
Member
85 Points
17 Posts
Re: Error when trying to get variable from HTTP header
Jan 13, 2004 06:35 PM|LINK