This is a migrated thread and some comments may be shown as answers.

Problem with ExportToPdf on web servers

3 Answers 88 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 22 May 2012, 03:06 PM
Hi, the ExportToPdf function works fine in my local dev environment. However the moment i move it to any uat or prod server it fails with the error:

System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it <IP ADDRESS>:80     at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)     at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)     at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)

Everything else works find, the Radscheduler is bound to a sql data source and all works flawlessy. However i have been unable to determine why the above occurs on any webserver but not my local dev env. Is this a permissions thing? I am not sure what is occuring inside of ExportToPdf for this occur? I am assuming it just uses the same datasource as specified in DatasourceID that works fine elsewhere?  Any help would be greatly appreciated as the export to pdf is a big need for this project.
Thanks

 

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 24 May 2012, 02:37 PM
Hello Lee,

This sounds like a quite unusual behavior. So far we are not aware what may be causing such error and how to deal with it and could not observe it locally or at our on-line Demo. It sounds like some deployment issue so I will recommend you to review our help topic about the PDF export and implement the suggestions from there. If it doesn't help please provide the exact code that will help us reproduce the issue and test it locally. 

Please share any specific information about the server that you are using so we can make our tests more precisely. 

Greetings,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Ross Dunham
Top achievements
Rank 1
answered on 27 Apr 2015, 07:35 PM

Hey Lee, 

This is an old post but I am hoping you are still around ...

I am having the same issue you described in the post.  Server is refusing connection on public, but works in development.  How did you resolve this?  I am having the same issue.  I opened a ticket with Telerik directly, but they don't have any suggestions on this one.  Thanks in advance.

0
Grace
Top achievements
Rank 1
answered on 23 Oct 2017, 04:17 PM
Were you able to resolve the export to pdf issue?
Tags
Scheduler
Asked by
Lee
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Ross Dunham
Top achievements
Rank 1
Grace
Top achievements
Rank 1
Share this question
or