Skip to main content





Symptoms




When trying to execute the SaveasPDF control to from a SmartForm the following error was thrown:

The PDF could not be saved.


•Type: SourceCode.SmartObjects.Client.SmartObjectException

•Message: SmartObject connection failed.
A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied


•Source: SourceCode.Forms.Controls.Web

•Method Base
?Member Type: Method

?Name: ExecuteSaveAsPDFMethod

?Module
?Scope Name: SourceCode.Forms.Controls.Web.dll

?Declaring Type
?Full Name: SourceCode.Forms.Controls.Web.SaveAsPDFRequest

•Stack Trace:
at SourceCode.Forms.Controls.Web.SaveAsPDFRequest.ExecuteSaveAsPDFMethod(SaveAsPDFRequest request)

at SourceCode.Forms.Controls.Web.SaveAsPDFHandler.ProcessRequest(HttpContext context)




Diagnoses




A check of the connectionString for the PDF Converter service instance showed the service was set to connect to host server E and instance itself was living on server E.




Resolution

1) Change the connectionString to match the appropriate server.

2) Refresh the service instance which forces the change to the corresponding SmartObjects.

After those two steps the SaveasPDF control would fire expectedly.







Be the first to reply!

Reply