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

WebSocket4Net method not found #50

Open
vnorbix opened this issue Jan 11, 2018 · 19 comments
Open

WebSocket4Net method not found #50

vnorbix opened this issue Jan 11, 2018 · 19 comments

Comments

@vnorbix
Copy link

vnorbix commented Jan 11, 2018

I created a new .NET console project. When I installed AsterNET.ARI from Nuget and tried to run the bridge sample, I got a runtime exception on ActionClient.Connect();.

Method not found: 'Void WebSocket4Net.WebSocket..ctor(System.String, System.String, System.Collections.Generic.List`1<System.Collections.Generic.KeyValuePair`2<System.String,System.String>>, System.Collections.Generic.List`1<System.Collections.Generic.KeyValuePair`2<System.String,System.String>>, System.String, System.String, WebSocket4Net.WebSocketVersion, System.Net.EndPoint)'.

What can be the problem? I tried this with a .NET 4.5 console project, AsterNET.ARI is the latest (1.2).

@skrusty
Copy link
Owner

skrusty commented Jan 15, 2018

Yeah, it's a problem with the nuget package, it's installing the wrong version of the dependency. It should be

Try manually updating this from nuget package manager.

@pavelbunkov4517
Copy link

which version of dependencies should be installed?

@skrusty
Copy link
Owner

skrusty commented Jan 25, 2018

0.15.0-beta6 or above.

I am looking to update the nuget package today.

@joelkallman
Copy link

I'm using AsterNET.ARI 1.2.1 in a fresh .NET console project and am getting the following error:

Could not load file or assembly 'WebSocket4Net, Version=0.15.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Is this related to the issue above?

@skrusty
Copy link
Owner

skrusty commented Feb 22, 2018

I will look at this next week, this should have been fixed in the latest version.

What version of the .net runtime are you using?

@joelkallman
Copy link

I'm using .NET Framework 4.6.1 and I tried to recreate it in a project using .NET Framework 4.5.2. Both versions raise the same exception. Thanks for looking at this! If there's any other tests that I can do, I'd be happy to do so.

@stevoinco
Copy link

Same issue here, running framework 4.6.1. I was able to get around it by manually (re)installing dependencies.

@ftfunk
Copy link

ftfunk commented Mar 19, 2018

@stevoinco did you installed all dependencies manually ?

@vnorbix
Copy link
Author

vnorbix commented May 18, 2018

This one is still not fixed, I still get the same error as @stevoinco and @joelkallman. I'm compiling the dll for myself at the moment, but I want to remove custom dll so I looked into this.

By default in nuget WebSocket 0.15.0 is installed, when I run my app it complains that it doesn't find 0.15.0.0 of the dll. But the actual dll version exists next to the exe is 0.15.0.9. If I try to update websocket to the latest version in nuget it's 0.15.2, then my app complains that it doesn't find the same version as before, 0.15.0.0. Why is that? Because I updated to version 0.15.2, actual dll version next to the exe is 0.15.2.11 as expected, but it still tries to reference 0.15.0.0 at runtime.

@sbiaudet
Copy link

+1

I've the same problem

@norcis
Copy link

norcis commented Aug 8, 2018

Same problem too.

@anastasiya1kovalenko
Copy link

+1

2 similar comments
@KenDFish
Copy link

+1

@Xandir150
Copy link

+1

@nikriaz
Copy link

nikriaz commented Jun 22, 2019

I posted updated dll in the issue#64

@ianef
Copy link

ianef commented Aug 5, 2019

This is still a problem with a new project started today. I've tried 4.5 and 4.6.1, WebSocket4Net versions 0.15.0 & 0.15.2 and it get the same error all the time:
System.IO.FileLoadException: 'Could not load file or assembly 'WebSocket4Net, Version=0.15.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'

@shawty
Copy link

shawty commented Sep 18, 2019

If this is the same issue as I reported in issue number 64 (I've just closed it)
[ https://github.com//issues/64 ]

Then it should now not be an issue, and I would recommend closing this one too.

@Muhammad-Shoaib-092
Copy link

Issue is not yet resolved completely, it still generate the same error when used in web services

@shawty
Copy link

shawty commented Aug 11, 2022

I'm no longer having problems with this, but I have moved to .NET 6 now rather than the legacy framework.

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