Error when installing an application created and published by VC# EE

Hi guys. I've created an application using Visual C# EE. Everything works fine. But when I try to publish it and install it I get an error:

EventType : clr20r3 P1 : mouseswitch.exe P2 : 1.0.0.0 P3 : 45258864
P4 : mscorlib P5 : 2.0.0.0 P6 : 4333ab80 P7 : 32f8 P8 : d8
P9 : system.io.filenotfoundexception

The publishing process is fine... the errors comes up when I try to install the application.
My application reads and writes to the registry and uses user32.dll. Please help, I'm totaly lost!

Thanks

[524 byte] By [sllik] at [2007-12-25]
# 1
Does this happen on your development machine or a test machine?
OmegaMan at 2007-8-31 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 2

looks like that the machine running this is trying to find a file that it cannot find. Are you referencing any files within your application to say, a hardcoded path or even not publishing the file with it?

user32.dll is there in Windows by default and shouldnt really be the problem, it maybe something else causing it

ahmedilyas at 2007-8-31 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...