Here is a quick answer to a simple Revit Server question to close for this week:
Question: My application retrieves thumbnails of models stored on Revit Server 2014 via REST calls using the following code:
WebRequest request = WebRequest.Create( "http://<ServerName>" + "/RevitServerAdminRESTService2014" + "/AdminRESTService.svc/<folder>" + "|demorevitserver_ab.rvt/thumbnail" + "?width=200&height=200" ); request.Method = "GET"; request.Headers.Add( "User-Name", "d5783faa-3548-4e6e-be9a-aeca05c59352" ); request.Headers.Add( "User-Machine-Name", "MyComputerXyz" ); request.Headers.Add( "Operation-GUID", Guid.NewGuid().ToString() ); // Next line fails // The remote server returned an error: // (500) Internal Server Error. WebResponse response = request.GetResponse();
I checked the log file AdminRESTService.log on the server and do not see what the problem could be there.
How can I solve this, please?
Answer: In this case, the log file does not reveal the exact cause of the failure.
However, we analysed a similar case in the past. The problem there turned out to be that the 'Microsoft Visual C++ 2010 Redistributable (x64)' was not installed on the server.
Please check whether this is also the cause in your case.
The installer has meanwhile been updated to include the required component.
Let's end the week with another quick answer to an apparently not-so-simple question, some sound non-technical advice.
Some professional friends of mine tell me that they do indeed keep this advice in mind when offering support for their clients.