Rank: Newbie Groups: Member
Joined: 3/4/2014 Posts: 1
|
My problem is exactly what is defined at http://www.essentialobjects.com/doc/4/web/troubleshoot.aspxMy question is, can I fix this dynamically without adding an entry to the host file? So basically: The problem is that on the web server, the host name for the site doesn't actually get you to the site (i.e. www.testsite.com) because the DNS is specifying the external IP address which somehow is causing the connection to get blocked. I can use use a host file entry to say, for example, www.testsite.com go to this hard coded internal ip address (192.168.x.x) for the site, but this is a headache for installation of multiple sites to multiple servers. what I want is for requests made my the EO library to go to the internal IP address automatically. Can anyone help? Thanks in advance!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
There are other ways to get around it but fixing DNS issue is the most straight forward and simple solution because the problem itself is a DNS issue. If that is not doable for you, there are two things you can do on EO.Pdf side:
1. Implement a proxy server and then set the proxy settings on EO.Pdf. This will put everything through the proxy server. You can then configure your proxy server to make sure it can reach your web server; 2. If you use HtmlToPdf.ConvertUrl, then you can simply replace your Url with the actual IP address. For example, you can change your code to call ConvertUrl with "http://192.168.x.x/something" instead of "http://www.testsite.com/something"; 3. If you use HtmlToPdf.ConvertHtml, or ASPXToPDF, you can set HtmlToPdf.Options.BaseUrl to use the IP address. This is very much the same idea as #2;
As you can see, none of these look easier than just fixing the DNS issue. When you have a network problem, there is no magic we can do on our side to be able to get through. You have to tell the "reachable" IP address to us one way or another. The difference is only if you choose to tell us through DNS, or choose to tell us by giving us the IP address directly.
Thanks!
|