longzu / csexwb2

Automatically exported from code.google.com/p/csexwb2
0 stars 0 forks source link

Problems running on Vista #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi MH. I've been trying to move my project to Vista, and while everything
compiles fine, I get an exception at startup to this effect:

Could not load file or assembly 'Interop.CSEXWBDLMANLib, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=d816ce10916cb185' or one of its
dependencies. The located assembly's manifest definition does not match the
assembly reference. (Exception from HRESULT:
0x80131040)":"Interop.CSEXWBDLMANLib, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=d816ce10916cb185

It's probably just some minor thing, but I don't really know where to start
and was wondering if you knew off hand.

Thanks.

Original issue reported on code.google.com by murray.l...@gmail.com on 29 Nov 2007 at 4:38

GoogleCodeExporter commented 8 years ago
Hi,

I am not certain but perhaps cleanning the solution (Debug->Clean...) and 
reseting 
the refernces for the COM library may resolve the problem.

MH

Original comment by mehr...@gmail.com on 30 Nov 2007 at 1:38

GoogleCodeExporter commented 8 years ago
I think that did the trick!

Original comment by murray.l...@gmail.com on 1 Dec 2007 at 3:38

GoogleCodeExporter commented 8 years ago
Turns out the problem has to do with Reg-Free COM. I had set CSEXWBDLMANLib to
isolated in the project, but when I ran my app got the aforementioned error. Is 
there
some trick or something I have to do to get this to work?

Original comment by murray.l...@gmail.com on 3 Dec 2007 at 3:06

GoogleCodeExporter commented 8 years ago
Are you able to run the application without using Reg-Free COM?
Do you have enough permissions? Try running the application in full trust mode.

MH

Original comment by mehr...@gmail.com on 3 Dec 2007 at 1:31

GoogleCodeExporter commented 8 years ago
I don't think I fully understand how reg-free com is supposed to be set up--I 
don't
know what I'm supposed to do with manifest files for instance. As such I'm not 
going
to worry about it right now I just thought I would mention that in case it's a
problem or you might be able to tell me what I'm doing wrong.

The app seems to run fine so long as I turn "isolated" to false, so I'm just 
going to
leave it like that for now until I learn how to do it better.

Original comment by murray.l...@gmail.com on 3 Dec 2007 at 5:06

GoogleCodeExporter commented 8 years ago
Hello MH

I spent a few happy hours (!!!) downloading and installing your oevre from 
CodeProject this afternoon ... and a marvellous effort it is, I have to say.  
You have obviously worked long and hard on it, polishing and refining, that is 
immediately obvious.

For the benefit and edification of others who follow, may I list some of the 
difficulties I encountered and how I overcame them?

System: HP Laptop (64-bit) running Vista and Visual C# Express 2008 (the cheap 
and cheerful version)

1. I had trouble registering csExWBMan.dll until I found from Microshit that 
C:\Windows\system32 regsvr32 is for installing 64-bit DLLs and that I needed to 
put csExWBMan.dll in C:\Windows\SysWOW64 and run the regsvr32 from there which 
is for installing 32-bit DLLs 

2. Whilst building and trying to run, I was failing with 
BadImageFormatException on the Interop.CSEXWBDLMANLib file, but when I changed 
the Project's default build configuration for both Projects (csExWB and 
DemoApp) from "Any CPU" to "X86" the Solution built to completion without 
demur.  Both Libraries "Isolated" properties I left "True" btw.

Many thanks again, I hope you and the others that follow found my comments 
useful

Ray Chapman
(44 years in IT come 17th Nov 2011)

Original comment by ray_chap...@hotmail.com on 17 Jul 2011 at 4:14