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

DLL not found #1

Open
andras-gyarmati opened this issue Feb 20, 2020 · 1 comment
Open

DLL not found #1

andras-gyarmati opened this issue Feb 20, 2020 · 1 comment

Comments

@andras-gyarmati
Copy link

Hi,

I downloaded your code and tried to test it with the code from here: https://www.pjsip.org/docs/book-latest/html/intro_pjsua2.html#id1

When I run the app it says:
{"The type initializer for 'SWIGExceptionHelper' threw an exception."}
InnerException = {"Unable to load DLL 'pjsua2': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"}

StackTrace = " at pjsua2PINVOKE.SWIGExceptionHelper..ctor()\r\n at pjsua2PINVOKE..cctor() in E:\Downloads\sip\PJSIP-PJSUA2-CSharp-master\PJSIP_PJSUA2_CSharp\Classes\pjsua2PINVOKE.cs:line 124"

the line 124 is: protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper();

Do you have an idea why this should happen?
I read somewhere that I should try 32 bit instead of 64 but it did not help.
Sorry if I missed something.

@AaronReynoldsUK
Copy link
Owner

Sorry for the delay Andras. All my project does is show you how to build PJSIP for .NET. If you're having issues implementing PJSIP, other forums are a better place to start.

It this case, it sounds like you haven't copied across a required DLL.

Also, like you say, try rebuilding the project from the start as 32/64 bit if you're sure the DLL is in place.

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

2 participants