DrawToWeb causes "Navigation Canceled"?

DrawToWeb causes "Navigation Canceled"?

Forum member · Jan 29, 2009
We have a page written in classic ASP, "Vouchers.asp", which is showing a very strange behavior as follows: - On our test server, Vouchers.asp works fine - On our production server (Windows 2000: - if you load a simple DynamicPDFTest.asp, it loads fine. - if you load Vouchers.asp in a brand-new browser window, you see a "Navigation Canceled" error, with a link to reload. If you click the link, the page displays fine. - if you load any other page first, and then try to navigate to Vouchers.asp, you see a half-second of browser activity, and then no change-- the original page continues to display. - If you eliminate the Document.DrawToWeb call and replace it with any sort of inserted conent (static HTML or Response.Write content), then the inserted content displays fine. Has anyone ever encountered something like this with DrawToWeb? Any help would be much appreciated. Thanks, -Robert

Re: DrawToWeb causes "Navigation Canceled"?

Support · Jan 29, 2009
Hello Robert, We have not seen this behavior or heard from any of our customers. Can you please send a screen shot of the error message that you are seeing to our [^a|mailto:support@cete.com|opennewwindow|Support Team^] and they can take a look into it further? It looks like a setting on the server is causing this behavior since the same ASP page works fine on your development machine. What would be the approximate size of the output PDF document that gets generated? The response buffer for ASP on IIS6 by default allows a maximum of 4MB (configurable). Try increasing the limit to more than 4MB and see if that solves the problem. This value can be changed in the metabase.xml file located in systemroot\System32\Inetsrv folder. The attribute name is ASPBufferingLimit. Before one edits this file, one should 'Enable Direct Metabase Edits' by right clicking the server in IIS Manager. This will allows updates without stopping IIS. Thanks, ceTe Software Support Team

Re: DrawToWeb causes "Navigation Canceled"?

Forum member · Jan 29, 2009
I have found at least one ingredient of the problem. The Vouchers.asp file is part of a password-protected section of our site, and included some standard security code at the top. Among the lines in the standard security code were the following: With Response .Expires = -1 .ExpiresAbsolute = Now() - 1 .AddHeader "pragma", "no-cache" .AddHeader "cache-control", "private" .CacheControl = "no-cache" End With Removing these lines allowed the content to load correctly on the first try, although the titles of the IE7 tabs still say either "Navigation cenceled" or "Webpage has expired". I am e-mailing support with screen captures of both forms of the "navigation canceled".

Re: DrawToWeb causes "Navigation Canceled"?

Support · Jan 30, 2009
Hello, Try running the ASP page in a new browser window after removing those lines and restarting IIS once. We are not sure why the title is being showed that way. Also when using the DrawToAsp method, the headers are set internally using our product. Setting the Expires = -1, will cause unexpected behaviors in your application. Thanks, ceTe Software Support Team