<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} .ms-cui-menu {background-color:#ffffff;border:1px rgb(171, 171, 171) solid;font-family:'Segoe UI WPC', 'Segoe UI', Tahoma, 'Microsoft Sans Serif', Verdana, sans-serif;font-size:11pt;color:rgb(51, 51, 51);} .ms-cui-menusection-title {display:none;} .ms-cui-ctl {vertical-align:text-top;text-decoration:none;color:rgb(51, 51, 51);} .ms-cui-ctl-on {background-color:rgb(223, 237, 250);opacity: 0.8;} .ms-cui-img-cont-float {display:inline-block;margin-top:2px} .ms-cui-smenu-inner {padding-top:0px;} .ms-owa-paste-option-icon {margin: 2px 4px 0px 4px;vertical-align:sub;padding-bottom: 2px;display:inline-block;} .ms-rtePasteFlyout-option:hover {background-color:rgb(223, 237, 250) !important;opacity:1 !important;} .ms-rtePasteFlyout-option {padding:8px 4px 8px 4px;outline:none;} .ms-cui-menusection {float:left; width:85px;height:24px;overflow:hidden}--></style>
</head>
<body>
<div style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>I fixed it. The ESL.DLL library was being loaded just fine but the MSVCR110.DLL could not be found, which is apparently used by the ESL.DLL.
<br>
</p>
<p><br>
</p>
<p>Make sure to install the <span style="font-size: 12pt;">Visual C++ Redistributable for Visual Studio 2012 Update 4.</span></p>
<p><a href="http://www.microsoft.com/en-us/download/details.aspx?id=30679">http://www.microsoft.com/en-us/download/details.aspx?id=30679</a><br>
</p>
<p><br>
</p>
<div style="color: #282828;">
<hr tabindex="-1" style="display: inline-block; width: 98%;">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size: 11pt;"><b>From:</b> freeswitch-users-bounces@lists.freeswitch.org <freeswitch-users-bounces@lists.freeswitch.org> on behalf of Michael Jerris <mike@jerris.com><br>
<b>Sent:</b> Tuesday, February 24, 2015 6:00 PM<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] ESL and Event Socket for .NET</font>
<div> </div>
</div>
<div>Is it built against the debug c runtime lib?
<div><br>
<div>
<blockquote type="cite">
<div>On Feb 24, 2015, at 3:19 AM, Grant Bagdasarian <<a href="mailto:GB@cm.nl">GB@cm.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div class="WordSection1" style="font-family: helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;">I used procmon.exe to monitor the executable and which files it loads. It showed it loaded the ESL.DLL successfully.</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;">I even made the user administrator on the server, but that didn’t work either.</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;"> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;">After searching the internet for a while, I came across this:<span class="Apple-converted-space"> </span><a href="https://github.com/danbarua/NEventSocket" style="color: purple; text-decoration: underline;">https://github.com/danbarua/NEventSocket</a></span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;">This guy made a pretty neat .NET API using Rx and no use of ManagedEsl, ESL.DLL. I didn’t know that was possible.</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;">The ESL libraries have given me a lot of trouble<span class="Apple-converted-space"> </span></span><span lang="EN-US" style="font-size: 11pt; font-family: wingdings; color: #1f497d;">L</span><span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;">.</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;"> </span></div>
<div>
<div style="border-style: solid none none; border-top-color: #e1e1e1; border-top-width: 1pt; padding: 3pt 0in 0in;">
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<b><span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif;">From:</span></b><span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif;"><span class="Apple-converted-space"> </span><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>
[<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]<span class="Apple-converted-space"> </span><b>On Behalf Of<span class="Apple-converted-space"> </span></b>Bote Man<br>
<b>Sent:</b><span class="Apple-converted-space"> </span>Monday, February 23, 2015 3:30 PM<br>
<b>To:</b><span class="Apple-converted-space"> </span>'FreeSWITCH Users Help'<br>
<b>Subject:</b><span class="Apple-converted-space"> </span>Re: [Freeswitch-users] ESL and Event Socket for .NET</span></div>
</div>
</div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US"> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;">My best guess is that it is a permissions problem, either the FS process can’t access the directory or the file itself.</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;"> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;">Bote</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;"> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;"> </span></div>
<div>
<div style="border-style: solid none none; border-top-color: #b5c4df; border-top-width: 1pt; padding: 3pt 0in 0in;">
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<b><span lang="EN-US" style="font-size: 10pt; font-family: tahoma, sans-serif;">From:</span></b><span lang="EN-US" style="font-size: 10pt; font-family: tahoma, sans-serif;"><span class="Apple-converted-space"> </span>Grant Bagdasarian<br>
<b>Sent:</b><span class="Apple-converted-space"> </span>Monday, 23 February, 2015 06:24<br>
<b>Subject:</b><span class="Apple-converted-space"> </span>Re: [Freeswitch-users] ESL and Event Socket for .NET</span></div>
</div>
</div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US"> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;">Hello,</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;"> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;">This seems to be a very old thread, but I’m experiencing the same error like the one below.</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;">I’m using the ManagedEsl and ESL.dll from 1.4.15. I’ve compiled both myself and they work on my development machine.</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;">The application is contained in a Windows Service, and when installed on a production server as a Service, I get the same error “Unable to load DSLL ‘ESL’”….</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;"> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;">I ran procmon.exe to see if the application executable could find the ESL.dll, and it could, so I don’t know why this error occurs.</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;"> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;">Any ideas?</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;"> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;">Grant</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif; color: #1f497d;"> </span></div>
<div>
<div style="border-style: solid none none; border-top-color: #e1e1e1; border-top-width: 1pt; padding: 3pt 0in 0in;">
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<b><span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif;">From:</span></b><span lang="EN-US" style="font-size: 11pt; font-family: calibri, sans-serif;"><span class="Apple-converted-space"> </span><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" style="color: purple; text-decoration: underline;">freeswitch-users-bounces@lists.freeswitch.org</a><span class="Apple-converted-space"> </span>[<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" style="color: purple; text-decoration: underline;">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]<span class="Apple-converted-space"> </span><b>On
Behalf Of<span class="Apple-converted-space"> </span></b>Ira Tessler<br>
<b>Sent:</b><span class="Apple-converted-space"> </span>Friday, October 31, 2014 8:19 PM<br>
<b>To:</b><span class="Apple-converted-space"> </span>FreeSWITCH Users Help<br>
<b>Subject:</b><span class="Apple-converted-space"> </span>Re: [Freeswitch-users] ESL and Event Socket for .NET</span></div>
</div>
</div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US"> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
Dave -</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
</div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
Can you compile a new version? I tried with VS 2013 and get the following error when running my application:</div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
</div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
System.TypeInitializationException: The type initializer for 'ESLPINVOKE' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'ESL':
The specified module could not be found. (Exception from HRESULT: 0x8007007E)<br>
at ESLPINVOKE.SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_ESL(ExceptionDelegate applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, ExceptionDelegate invalidCastDelegate,
ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, ExceptionDelegate nullReferenceDelegate, ExceptionDelegate outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate systemExceptionDelegate)<br>
at ESLPINVOKE.SWIGExceptionHelper..cctor()<br>
--- End of inner exception stack trace ---<br>
at ESLPINVOKE.SWIGExceptionHelper..ctor()<br>
at ESLPINVOKE..cctor()<br>
--- End of inner exception stack trace ---<br>
at ESLPINVOKE.new_ESLconnection__SWIG_3(String jarg1, String jarg2, String jarg3)<br>
at ESLconnection..ctor(String host, String port, String password)<br>
at CallRecordingEvent.PollEvents.InboundMode(String serverName, String eslPrivateIPAddress, String eslPort, String eslPassword) in c:\Users\ira\Source\Workspaces\Freeswitch\Freeswitch\CallRecordingEvent\PollEvents.cs:line 38</div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
</div>
<div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
Ira Tessler</div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<a href="mailto:ira@connectmevoice.com" style="color: purple; text-decoration: underline;">ira@connectmevoice.com</a></div>
</div>
</div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'times new roman', serif;">
<span lang="EN-US"> </span></div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</body>
</html>