Developer forum

Forum » Templates » PDF error

Reply
Problem found: the DNS on the server was still redirecting to the old server. The site here was'nt using Dynamicweb.


Hi,

I have got a problem. When I call PDF=true (doesnt matter on which page in my site) a PDF is created but I get an error in the document.
The strangest thing is that when I do this from a different url (there are 2 urls to this site) it does work.
There arent any absolute urls in my site only relative urls so this cannot be a problem.

I can show it but I dont want to post the urls here.
can you help me please?

Regards,
Tom Neij


Server Error in '/' Application.
The resource cannot be found.

Description:

 

HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily

unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested Url:

/Admin/Public/PDFCache/PDFCache.aspx




Replies

 
Nicolai Høeg Pedersen
Reply
It is a DNS issue.

When doing pdf=true the the server is doing a http request to it self.

So on the server, if a ping to hostname returns an external ip that cannot be reached from the server itself, pdf=true will not work.

So adding the hostname to hosts file with 127.0.0.1 will solve the issue.

 

You must be logged in to post in the forum