This appears in a project I am sharing with other dev's. What is a model.cs file?
View Complete Post
MSDN Magazine November 2003
Using Server-side object model, it is pretty simple to get the previous file versions. Say I wanted to view a file in its initial version, all I’d need to do
When using Client object model, I couldn’t any analogous method/property which would let me fetch the previous version of file.
Can somebody point me to a sample or the property which would serve my purpose?
I use the Client Object Model to retrieve and read values from an Excel file. This is triggered in an Event Receiver on the Document Library where the Excel file lives. I use a simple CAML Query to retrieve the file. This has worked just fine on a dev/test
Now, I just recently deployed this solution to a production/live server and now this code doesn't work anymore. I get an error saying 'The remote server returned an error: (504) Gateway Timeout'. This happnes when I try clientContext.ExecuteQuery();
The difference between the two servers is that on the test server (where it works) the solution is sitting as the root site, so to speak. No host headers or nothing.
On the live server, there are several web applications (SharePoint) on the same port, but with different host headers.
I have tried to trace a little bit and I found that on the test server, the url that is used to create the ClientContext object is 'http://<servername>/<webname>'. The url is comes from the following code: web.Url. I tried changing the url to
the DNS name the test server has and that resulted in the same error as on the live server.
Does anyone have any idea what I need to do?
Thanks a billion!