I'm trying to implement Response.Redirect within an ASHX file. Initially I was having the issue described here, but now I'm getting
Expression has been evaluated and has no value
on the line with "context.Response.Redirect(redirectPage,false);"
The following is my code (abbreviated).
public void ProcessRequest(HttpContext context)
{
redirectPage = configuration.Value.SingleLogoutServiceUrl;
if (redirectPage != string.Empty) {
context.Response.Redirect(redirectPage,false);
}
}
Actually the issue was that I was redirecting from a localhost environment to a site on the Internet and the site was rejecting the transfer. Thanks everyone for your help.