Is there any example code for upload an user avatar via REST API, version 7.6. I tried the example given in the documentation, bit it doesn't work. How to set FileData in NameValueCollection?
Take a look at telligent.com/.../what-is-file-data.aspx .
Thanks, I tried this also, but I receive an Exception:
Path: /letstalk7/api.ashx/v2/users/2111/avatar.xml as HTTP POST
Message: Constructor on type 'Telligent.Evolution.Rest.Infrastructure.RestHttpHandler' not found.
System.MissingMethodException: Constructor on type 'Telligent.Evolution.Rest.Infrastructure.RestHttpHandler' not found.
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object args, CultureInfo culture, Object activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object args, CultureInfo culture, Object activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object args, CultureInfo culture)
at System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object args)
at System.Web.Configuration.HandlerFactoryCache..ctor(HttpHandlerAction mapping)
at System.Web.HttpApplication.GetFactory(HttpHandlerAction mapping)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Are you able to successfully make other REST requests currently? (for example, a GET against the info endpoint telligent.com/.../35043.show-info-result-rest-endpoint.aspx)
Is this site an upgrade from a previous version of Evolution?
I'm able to make CreateUser but not Update User and Update Avatar. It is a new installation, not an upgrade.
Update user returns the same exception.
And so the put request returns the same error? Would it be possible to share a detailed fiddler trace of both updating a user and updating an avatar?
Is it possible to experience this error because we did not have Platform SDK installed?
The same error happens when I call: /api.ashx/v2/!console.
The SDK would be unrelated. I would still be interested in a trace if possible.
I have an ASP.NET application, which calls the API from the Telligent community installed on our dev server. I don't know how to set up Fiddler to trace API Call. I tried several approaches found in internet, but they don't work.
Does this site have a hotfix applied? Could you provide the output from the page [domain]/controlpanel/dump.ashx
The only times this kind of error has come up before has usually been around inconsistent DLLs.
We have applied: Hotfix Version 22.214.171.124272
I tried posting the output from dump.aspx, but it has not been posted. You can see it from here:
I saw your post with the dump.ashx output and have pulled it out of the thread and sent it to Michael and Alex.
Telligent Systems, Inc. ©2013, All Rights Reserved