I have an HtmlBox to which I'm streaming the bytes of a pdf via the form's gateway handler. The relevant code is:
protected override IGatewayHandler ProcessGatewayRequest(System.Web.HttpContext httpContext, string action)
if (SelectedDocument != null)
httpContext.Response.ContentType = SelectedDocument.MimeType;
When I run this from my local visual studio webserver, the pdf is displayed embedded in the HtmlBox. Yet when this is deployed to IIS, the pdf opens in an instance of Acrobat reader external to the browser. Same code, yet different behavior. The proper mime type is being sent.
Anyone seen this before and solved it? Any thoughts as to why this is happening? The desired behavior is to have it embedded in the HtmlBox.