Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Method Exception was Unhandled #27

Open
ggstamm opened this issue Jun 21, 2016 · 4 comments
Open

Missing Method Exception was Unhandled #27

ggstamm opened this issue Jun 21, 2016 · 4 comments

Comments

@ggstamm
Copy link

ggstamm commented Jun 21, 2016

Hello, I have an issue, when I use this line below:
"HipchatClient client = new HipchatClient();"

This is the exception:
_

An unhandled exception of type 'System.MissingMethodException' occurred in HipchatApiV2.dll

Additional information: Method not found: 'Void ServiceStack.Text.JsConfig1.set_DeSerializeFn(System.Func2<System.String,!0>)'.

_

I'm newbie with C#, and don't know how to make this work.

My imports:
using System;
using System.Runtime.InteropServices;
using HipchatApiV2;
using HipchatApiV2.Requests;
using Xunit;
using ServiceStack.Text;

@ggstamm
Copy link
Author

ggstamm commented Jun 22, 2016

My packages:

<package id="Hipchat-CS" version="0.0.52" targetFramework="net45" />
<package id="ServiceStack.Text" version="4.0.50" targetFramework="net45" />

@haydenthrash
Copy link

haydenthrash commented Jun 28, 2016

Install ServiceStack.Text version 4.0.56. That worked for me. Hope this helps! @ggstamm

@KyleGobel
Copy link
Owner

These errors are normally from dependency version mismatchs. Hipchat CS was built against ServiceStack 4.0.56.

I think I probably need to pin the dependency to a specific version.

Doing what haydenthrashsaid should fix the issue though in the meantime.

@ggstamm
Copy link
Author

ggstamm commented Jun 30, 2016

Thanks for the reply, but I still have the same error, I'm starting to think that it's something about my Visual Studio :(.

I create a Visual C# -> Console Application.

An unhandled exception of type 'System.MissingMethodException' occurred in HipchatApiV2.dll
Additional information: Method not found: 'Void >ServiceStack.Text.JsConfig1.set_DeSerializeFn(System.Func2<System.String,!0>)'.

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

Code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HipchatApiV2;

namespace Console_HipChat_CS
{
    class Program
    {
        static void Main(string[] args)
        {
            string apikey = My API here;
            var client = new HipchatClient(apikey);
            client.SendNotification("Test", "Testing"); 
        }
    }
}

Sorry for disturbing you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants