Quantcast
Channel: Alfresco Forums - Alfresco API
Viewing all articles
Browse latest Browse all 252

GetObject Timeout?

$
0
0

Hi,

I'm building my first .NetCMIS app, and running into a weird issue. The object is to read the folder tree and retrieve specific files. However, in some cases the GetObject fails. I originally thought it was with a specific document type, but I've narrowed my select to just PDF files and some of those fail also.

.NetCMIS shows a timeout.

However, the file that succeeds and the file that fails are about the same size. (about 100kb)

try{
                IObjectId id = session.CreateObjectId(docID);var doc = session.GetObject(id) as IDocument;<<<<<<< Line where the GetObject Fails // properties
                Console.WriteLine(doc.Name);
                Console.WriteLine(doc.GetPropertyValue("my:property")); 
                IProperty myProperty = doc["my:property"];if(myProperty !=null){
                    Console.WriteLine("Id:    "+ myProperty.Id);
                    Console.WriteLine("Value: "+ myProperty.Value);
                    Console.WriteLine("Type:  "+ myProperty.PropertyType);}
4.2.b

Viewing all articles
Browse latest Browse all 252

Trending Articles