PDA

View Full Version : "System.DllNotFoundException: Unable to load DLL"


ianoble
06-09-2008, 10:02 AM
We created a .net dll from a c library and I am able to reference and access methods locally, but when I upload the dll to the server, I'm getting this exception:

System.DllNotFoundException: Unable to load DLL 'poker-eval': The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail. (Exception from HRESULT: 0x800736B1)

The bin folder locally and on the server are identical in terms of files.

Anyone have any suggestions?

Thanks!!


- Ian

ianoble
06-10-2008, 12:07 AM
That's a bummer because there isn't a managed .net solution that I can find.

Here is the source code if any one knows a better solution: freshmeat.net/projects/poker-eval/ (http://freshmeat.net/projects/poker-eval/)

Aristotle
06-10-2008, 11:28 AM
The C library dll most likely needs to be registered/installed on the server. This is not supported. I recommend looking for a fully-managed .NET solution.

Aristotle

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

Aristotle
06-11-2008, 12:03 AM
I found someone who ported it to C#. http://www.codeproject.com/KB/game/pokerhandevaldoc.aspx.

Aristotle

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

ianoble
06-11-2008, 03:49 AM
I did see that but it only works for Hold'em hands. We are using the API to evaluate all the different games. Thanks for the link, though!!