I am developing a mobile web application using the System.Web.Mobile namespace for ASP.NET. I am facing the problem of redirecting to another aspx page using Response.Redirect () when testing with dotmobi emulators with an error message:
The requested item could not be loaded (status code 502)
Try using Server.Transfer istead for response.redirect.
Ensure that both aspx pages have the correct set of content types, for example:
<%@ Page ContentType="application/xhtml+xml" %>
As well as:
Response.ContentType = "application/xhtml+xml"
Status code 502: The server acted as a gateway or proxy and received an incorrect response from the upstream server.
Link: Wikipedia
Is the destination page on your website? Does it include calls to external services / other servers?