VS2010 upgrade cause issues?

Apr 1, 2010 at 8:26 AM

I'm currently trying to get the demo running correctly on my machine,  running XP SP3 and VisualStudio 2010 beta.

First I got a few build errors, the only one I remember was that I had to copy easyhook32.lib to the UnmanagedHook directory.  

Now I have the solution building correctly, however, I get the following error when launching Process monitor

******************************************

Unable to load DLL 'EasyHook32.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

******************************************

 

It happens on the Config.Register line below (program.cs).

************************

 static void Main()

        {

            try

            {

                Config.Register(

                    "A simple ProcessMonitor based on EasyHook!",

                    "ProcMonInject.dll",

                    "ProcessMonitor.exe");

            }

 

 static void Main()
        {
            try
            {
                Config.Register(
                    "A simple ProcessMonitor based on EasyHook!",
                    "ProcMonInject.dll",
                    "ProcessMonitor.exe");
            }

**********************

I copied the binary files to that directory, and made sure the reference to easyhook was valid, and it still blows up.  Is this an issue with upgrading to VS2010, or am I missing something?

 

Thanks,

 

May 15, 2010 at 6:54 PM
Edited May 15, 2010 at 6:55 PM

Hi Justbarno,

I'm having the exact same problem with the Visual Studio 2010 Ultimate edition (non-beta). I had that first error also, which was easy to fix.

All of my projects compile fine, this is where i get the error of a missing EasyHook32.dll (EasyHook Project, DllImport.cs):

        public static IntPtr GacCreateContext() {
            if (Is64Bit) return NativeAPI_x64.GacCreateContext();
            else return NativeAPI_x86.GacCreateContext(); <------------
        }

When I try and add a reference to the EasyHook32.dll (from the binaries) for the EasyHook project but it gives me an error saying it's not a valid assembly or COM component.

Does anyone have a fix for this?

edit: I thought it might be the .NET 4.0, but i tried downgrading all of the projects to .NET 3.5 and that didn't work either.

 

May 29, 2010 at 11:33 AM

See: http://easyhook.codeplex.com/WorkItem/View.aspx?WorkItemId=17852

Eierkoek.