The document couldn't be loaded

We decided to move the Groupdocs viewer into an iframe to isolate your styles and javascript. Unfortunately I’m now getting this error message when I try to annotate the document:


The document couldn’t be loaded…

This is happening in the call to /document-annotatin/CreateAnnotation which returns the following error message:

{“message”:“Value cannot be null.\r\nParameter name: key”}

I have compared the request json between a working and non-working version and one does not have the connectionId property:

Working request json:
{“connectionId”:“d2b6303c-197d-415c-aaf0-db8a8dfcd6c2”,“userId”:“3f8b6a5375337dae”,“privateKey”:null,“fileId”:“Quick_Start_Guide_To_Using_GroupDocs.pdf”,“type”:2,“pageNumber”:0,“rectangle”:{“x”:466.7218779342723,“y”:47.51061032863849,“width”:0,“height”:0},“annotationPosition”:{“x”:767.1566197183099,“y”:57.51061032863849},“textRange”:null,“svgPath”:null}

Non-working request json:
{“userId”:“ee2b20fdb1981c8a”,“privateKey”:null,“fileId”:“565e5d9c-ccc2-45cf-b106-4ae4cd764ec6.pdf”,“type”:2,“pageNumber”:0,“rectangle”:{“x”:283.1288659793815,“y”:134.07216494845363,“width”:0,“height”:0},“annotationPosition”:{“x”:383.2886597938145,“y”:144.07216494845363},“textRange”:null,“svgPath”:null}

If the missing connectionId is the problem, do you know why this might be happening?

Hello Jason,

We are sorry to hear that you have such issue. Unfortunately our developers cannot define the reason of this issue without additional details. We need some example which can be used for reproducing, investigating and resolving this issue.