Hi,
I am trying to create a document through asp.net c# with the LL web service.
I keep getting this error -- DocumentManagement.CreateDocument() failed on the Livelink Server. No results were returned. Check the Livelink Server thread logs.
I can easily create a folder, but it always fails on creating a document. I removed the categories on the parent folder, and it still doesn't work, but ultimately I will want to add the categories back in. I've attached the trace log for reference. Here is my code:
Authentication authService = new Authentication ();
DocumentManagement dm = new DocumentManagement ();
OTAuthentication auth = new OTAuthentication ();
string authToken = authService.AuthenticateUser( "ECwebservicesuser" , "Testecm123" );
auth.AuthenticationToken = authToken;
dm.OTAuthenticationValue = auth;
string projectnumber = "newfolder10" ;
string incidentid = "1" ;
dm.CreateFolder(13064258, projectnumber, null , null );
Node p = dm.GetNodeByName(13064258, projectnumber);
dm.CreateFolder(p.ID, incidentid, null , null );
Node q = dm.GetNodeByName(p.ID, incidentid);
Attachment data = new Attachment ();
data.FileName = Request.PhysicalApplicationPath + "documents\\Class1.cs" ;
data.CreatedDate = DateTime .Now;
dm.CreateDocument(q.ID, "name" , "comments" , false , null , data);