Could not load file or assembly 'PcapDotNet.Core after build the new source code

May 5, 2013 at 2:43 PM
Edited May 10, 2013 at 12:41 PM
i downloaded the source code and because it made with VS2010 and i am use VS2012 i installed VS2010 and build the code for x64 like my machine.
the application works fine and it crash after 509 iterations solved but after take my application to machine with VS2012 i cannot open it and it crash and after installed on this machine VS2010 it works so i double checked and on each machine without VS2010 it doesn't work and after VS2012 installations it works fine.
Coordinator
May 10, 2013 at 4:08 PM
Hi gshhar,

Have you tried to follow the instructions under Running Pcap.Net applications in the user guide?
https://pcapdotnet.codeplex.com/wikipage?title=Using%20Pcap.Net%20in%20your%20programs&referringTitle=Pcap.Net%20User%20Guide

In order to run a Pcap.Net based application you don't need Visual Studio at all.
Let me know if following these instructions doesn't work for you.

Boaz.
May 10, 2013 at 4:27 PM
Edited May 10, 2013 at 4:52 PM
this is not the first time i am working with your DLLs, i have all this on my machine and my application using yours DLLS ( 0.10.0 (67076))
i downloaded the source code and build it (because you said that untill you will publish the new DLLs that solved the 509 iteration bug it's ok the download and build the source code)

i installed VS2010 because after try to build the source code with VS2012 i saw that it was build in VS2010 and i encounter full of strange errors so i build it with VS2010 check it with my application and all works fine and this bug solved.
after it i checked it on differences machine that my application is already installed and i only replaced the DLLs and it not working.
my application build under VS2012.

now only if i installed VS2010 on those machine i can run my application with this new DLLs.
this is not the case with the old version of the DLLs

maybe i do something wrong ?
is it possible that you build the new DLLS and publish it here ? i want to check whether it's my fault.
Coordinator
May 11, 2013 at 7:47 AM
It makes some sense that you will need to build the application with VS2010.
However, you shouldn't need to install VS2010 in order to RUN the application.

Please follow the full instructions on how to run an application and let me what exactly is the problem.

Boaz.
May 11, 2013 at 9:02 AM
Edited May 11, 2013 at 9:14 AM
i know i shouldn't need to install VS2010 in order to RUN the application but this is what happen, i even took this DLLS to another computer who run my application who base on those DLLs and it does not work until i installed VS2010.

all the steps in Running Pcap.Net applications already install on my machine and i am working with the old DLLs but when reference to the new DLLs it does not work

maybe i build it in wrong way ?
do you have any instruction how to do it ?
Coordinator
May 11, 2013 at 9:55 AM
Can you elaborate what do you mean by "does not work"?
What are the exact symptoms?
May 11, 2013 at 10:04 AM
Edited May 11, 2013 at 10:05 AM
http://i40.tinypic.com/34j9fg8.png

BTW i built it with VS2010 on Win8 OS
Coordinator
May 11, 2013 at 10:05 AM
Can you run Dependency Walker on PcapDotNet.Core.Dll in this computer?
http://www.dependencywalker.com/
May 11, 2013 at 10:10 AM
Edited May 11, 2013 at 10:13 AM
i choose PcapDotNet.Core.dll
May 11, 2013 at 10:13 AM
May 11, 2013 at 10:16 AM
IESHIMS.dll exist in both old a new DLLS but not the rest 2 errors that exist only in the new DLLS.
Coordinator
May 12, 2013 at 8:30 PM
Are you building your project in Release mode?
May 13, 2013 at 4:59 AM
Edited May 13, 2013 at 5:00 AM
Bebug mode, is it matter ?
did you try to build the source code and try it on machine without VS2010 ?
you should try it to ensure that this is a problem.
Coordinator
May 13, 2013 at 6:18 AM
Yes, it does matter.
Debug mode required VS DLLs.
Release mode doesn't.
May 13, 2013 at 11:58 AM
OK it's working well in Release mode.