Hipchat-CS icon indicating copy to clipboard operation
Hipchat-CS copied to clipboard

Method Not Found

Open ajtatum opened this issue 8 years ago • 3 comments

Trying to do something really simple and get the following exception message:

var client = new HipchatClient("authtoken"); client.SendNotification("Remote Squadron Room", string.Format("Sending message to {0}", mailerMessage.ToAddresses));

{ "Message": "An error has occurred.", "ExceptionMessage": "Method not found: 'Void ServiceStack.Text.JsConfig1.set_DeSerializeFn(System.Func2<System.String,!0>)'.", "ExceptionType": "System.MissingMethodException", "StackTrace": " at HipchatApiV2.HipchatClient.ConfigureSerializer()\r\n at HipchatApiV2.HipchatClient..ctor(String authToken)\r\n at opie_mailer_api.Controllers.MailController.<Queue>d__3.MoveNext() in F:\\Users\\atatum\\Documents\\Visual Studio 2015\\Projects\\opie-mailer\\opie-mailer-api\\Controllers\\MailController.cs:line 45\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at opie_mailer_api.Controllers.v1_MailController.<Queue>d__2.MoveNext() in F:\Users\atatum\Documents\Visual Studio 2015\Projects\opie-mailer\opie-mailer-api\Controllers\MailController.cs:line 79\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__31.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()" } `

ajtatum avatar Jul 27 '16 18:07 ajtatum

+1

FWIW, this isn't working for me even with ServiceStack 4.0.56 (which seems to be the recommended version) installed:

<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="Hipchat-CS" version="0.0.52" targetFramework="net45" />
  <package id="ServiceStack" version="4.0.56" targetFramework="net45" />
  <package id="ServiceStack.Client" version="4.0.56" targetFramework="net45" />
  <package id="ServiceStack.Common" version="4.0.56" targetFramework="net45" />
  <package id="ServiceStack.Interfaces" version="4.0.56" targetFramework="net45" />
  <package id="ServiceStack.Text" version="4.0.56" targetFramework="net45" />
</packages>

rjcoupe avatar Sep 20 '16 14:09 rjcoupe

+1, getting same error

blitzmann avatar Nov 09 '16 21:11 blitzmann

I don't maintain this anymore really...this is open source...feel free to fix anything you'd like

KyleGobel avatar Feb 22 '17 13:02 KyleGobel