nicksbell
asked on
Assembly unable to load during windows service installation
I have a windows service created in VB.net and I am trying to create a setup project to install it. When I run the install program I get the following error message:
Unable to get the installer types in the <...> assembly. --> One or more of the types in the assembly unable to load.
Is there any way to find out which assembly is causing the problem. The install works fine on another machine. Can anyone suggest why this might be happening.
Thanks
Unable to get the installer types in the <...> assembly. --> One or more of the types in the assembly unable to load.
Is there any way to find out which assembly is causing the problem. The install works fine on another machine. Can anyone suggest why this might be happening.
Thanks
Your assembly module that contains those types is not where you expect it to be. Check which directory the install thinks it's in, then physically check your system to verify that the assembly is in fact in that location. If it is, we'll see if we can find something else to check.
ASKER
Well I am not entirely sure I understand what you are saying, my problem (I think) is identifying which 'types' we are talking about. I have checked all of the dependencies in my setup project and they all point to valid locations for the source files....is that what you meant?
Not the source files. At run-time, your source files are just a bunch of text (these aren't VBScript files, after all). The types are contained in DLLs and EXEs that must be loaded and referenced at runtime. We also call these "types" CLASSES.
ASKER
Sorry, when I said source files, I meant the orginal references to DLLs in the underlying project....not the 'source' as in code files. What I meant was that the dependencies shown in the setup project relate to the DLLs that are referenced by the primary output project. The locations of these DLLs are all valid.
Incidentally, the whole solution, including the setup project compiles without a problem. The problem arises when I try to run the setup.exe file.
Incidentally, the whole solution, including the setup project compiles without a problem. The problem arises when I try to run the setup.exe file.
ASKER
I have run msiexec /l*v from the command line and the area in the log file where the error is is as follows:
MSI (s) (C4:54) [11:32:33:230]: Executing op: FileCopy(SourceName=NEMOS_ ~4.DLL|nem os_RemoteS erver.dll, SourceCabK ey=_DF1B5F 0694AECA3C 6EC2506D8E 535827,Des tName=nemo s_RemoteSe rver.dll,A ttributes= 512,FileSi ze=17920,P erTick=327 68,,Verify Media=1,,, ,,CheckCRC =0,Version =1.0.2636. 17472,Lang uage=0,Ins tallMode=5 8982400,,, ,,,,)
MSI (s) (C4:54) [11:32:33:230]: File: C:\Program Files\FundSolve Ltd\AutoCalcSetup\nemos_Re moteServer .dll; To be installed; Won't patch; No existing file
MSI (s) (C4:54) [11:32:33:230]: Source for file '_DF1B5F0694AECA3C6EC2506D 8E535827' is compressed
InstallFiles: File: nemos_RemoteServer.dll, Directory: C:\Program Files\FundSolve Ltd\AutoCalcSetup\, Size: 17920
MSI (s) (C4:54) [11:32:33:480]: Note: 1: 2318 2: C:\Program Files\FundSolve Ltd\AutoCalcSetup\nemos_Re moteServer .dll
MSI (s) (C4:54) [11:32:33:902]: Executing op: CacheSizeFlush(,)
MSI (s) (C4:54) [11:32:33:902]: Executing op: InstallProtectedFiles(Allo wUI=1)
MSI (s) (C4:54) [11:32:33:902]: Executing op: ActionStart(Name=_42B0858D _0656_415E _A005_6AAD 464BF28B.c ommit,,)
Action 11:32:33: _42B0858D_0656_415E_A005_6 AAD464BF28 B.commit.
MSI (s) (C4:54) [11:32:33:902]: Executing op: CustomActionSchedule(Actio n=_42B0858 D_0656_415 E_A005_6AA D464BF28B. commit,Act ionType=15 37,Source= BinaryData ,Target=Ma nagedInsta ll,CustomA ctionData= /installty pe=notrans action /action=commit /LogFile= "C:\Program Files\FundSolve Ltd\AutoCalcSetup\nemos_Au toCalcServ ice.exe" "C:\DOCUME~1\ADMINI~1.DAT\ LOCALS~1\T emp\CFG51. tmp")
MSI (s) (C4:54) [11:32:33:902]: Executing op: ActionStart(Name=_4B9E3141 _0D84_4D5A _BB6F_4E6A A9B0210F.r ollback,,)
Action 11:32:33: _4B9E3141_0D84_4D5A_BB6F_4 E6AA9B0210 F.rollback .
MSI (s) (C4:54) [11:32:33:902]: Executing op: CustomActionSchedule(Actio n=_4B9E314 1_0D84_4D5 A_BB6F_4E6 AA9B0210F. rollback,A ctionType= 1281,Sourc e=BinaryDa ta,Target= ManagedIns tall,Custo mActionDat a=/install type=notra nsaction /action=rollback /LogFile= "C:\Program Files\FundSolve Ltd\AutoCalcSetup\nemos_Au toCalcServ ice.exe" "C:\DOCUME~1\ADMINI~1.DAT\ LOCALS~1\T emp\CFG51. tmp")
MSI (s) (C4:54) [11:32:33:902]: Executing op: ActionStart(Name=_97B9AA6E _40BD_4A59 _8184_ED44 B8A3820F.i nstall,,)
Action 11:32:33: _97B9AA6E_40BD_4A59_8184_E D44B8A3820 F.install.
MSI (s) (C4:54) [11:32:33:902]: Executing op: CustomActionSchedule(Actio n=_97B9AA6 E_40BD_4A5 9_8184_ED4 4B8A3820F. install,Ac tionType=1 025,Source =BinaryDat a,Target=M anagedInst all,Custom ActionData =/installt ype=notran saction /action=install /LogFile= "C:\Program Files\FundSolve Ltd\AutoCalcSetup\nemos_Au toCalcServ ice.exe" "C:\DOCUME~1\ADMINI~1.DAT\ LOCALS~1\T emp\CFG51. tmp")
MSI (s) (C4:68) [11:32:33:933]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI2B .tmp, Entrypoint: ManagedInstall
MSI (s) (C4!80) [11:32:34:542]: Note: 1: 2262 2: Error 3: -2147287038
MSI (c) (48:DC) [11:32:34:542]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2835: The control ErrorIcon was not found on dialog ErrorDialog
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2835. The arguments are: ErrorIcon, ErrorDialog,
Error 1001. Unable to get installer types in the c:\program files\fundsolve ltd\autocalcsetup\nemos_au tocalcserv ice.exe assembly. --> One or more of the types in the assembly unable to load.
MSI (s) (C4!80) [11:32:39:308]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (C4!80) [11:32:39:308]:
MSI (s) (C4:68) [11:32:39:308]: Leaked MSIHANDLE (26) of type 790531 for thread 4736
MSI (s) (C4:68) [11:32:39:308]: Note: 1: 2769 2: _97B9AA6E_40BD_4A59_8184_E D44B8A3820 F.install 3: 1
MSI (s) (C4:68) [11:32:39:308]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2769: Custom Action _97B9AA6E_40BD_4A59_8184_E D44B8A3820 F.install did not close 1 MSIHANDLEs.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2769. The arguments are: _97B9AA6E_40BD_4A59_8184_E D44B8A3820 F.install, 1,
Action ended 11:32:39: InstallFinalize. Return value 3.
MSI (s) (C4:54) [11:32:39:323]: User policy value 'DisableRollback' is 0
MSI (s) (C4:54) [11:32:39:323]: Machine policy value 'DisableRollback' is 0
MSI (s) (C4:54) [11:32:39:323]: Executing op: Header(Signature=139770887 3,Version= 301,Timest amp=913660 945,LangId =1033,Plat form=0,Scr iptType=2, ScriptMajo rVersion=2 1,ScriptMi norVersion =4,ScriptA ttributes= 0)
MSI (s) (C4:54) [11:32:39:323]: Executing op: DialogInfo(Type=0,Argument =1033)
MSI (s) (C4:54) [11:32:39:323]: Executing op: DialogInfo(Type=1,Argument =AutoCalcS etup)
MSI (s) (C4:54) [11:32:39:323]: Executing op: RollbackInfo(,RollbackActi on=Rollbac k,Rollback Descriptio n=Rolling back action:,RollbackTemplate=[ 1],Cleanup Action=Rol lbackClean up,Cleanup Descriptio n=Removing backup files,CleanupTemplate=File : [1])
Action 11:32:39: Rollback. Rolling back action:
Does this mean anything to you? Is it possible to identify what the problem is from this.
MSI (s) (C4:54) [11:32:33:230]: Executing op: FileCopy(SourceName=NEMOS_
MSI (s) (C4:54) [11:32:33:230]: File: C:\Program Files\FundSolve Ltd\AutoCalcSetup\nemos_Re
MSI (s) (C4:54) [11:32:33:230]: Source for file '_DF1B5F0694AECA3C6EC2506D
InstallFiles: File: nemos_RemoteServer.dll, Directory: C:\Program Files\FundSolve Ltd\AutoCalcSetup\, Size: 17920
MSI (s) (C4:54) [11:32:33:480]: Note: 1: 2318 2: C:\Program Files\FundSolve Ltd\AutoCalcSetup\nemos_Re
MSI (s) (C4:54) [11:32:33:902]: Executing op: CacheSizeFlush(,)
MSI (s) (C4:54) [11:32:33:902]: Executing op: InstallProtectedFiles(Allo
MSI (s) (C4:54) [11:32:33:902]: Executing op: ActionStart(Name=_42B0858D
Action 11:32:33: _42B0858D_0656_415E_A005_6
MSI (s) (C4:54) [11:32:33:902]: Executing op: CustomActionSchedule(Actio
MSI (s) (C4:54) [11:32:33:902]: Executing op: ActionStart(Name=_4B9E3141
Action 11:32:33: _4B9E3141_0D84_4D5A_BB6F_4
MSI (s) (C4:54) [11:32:33:902]: Executing op: CustomActionSchedule(Actio
MSI (s) (C4:54) [11:32:33:902]: Executing op: ActionStart(Name=_97B9AA6E
Action 11:32:33: _97B9AA6E_40BD_4A59_8184_E
MSI (s) (C4:54) [11:32:33:902]: Executing op: CustomActionSchedule(Actio
MSI (s) (C4:68) [11:32:33:933]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI2B
MSI (s) (C4!80) [11:32:34:542]: Note: 1: 2262 2: Error 3: -2147287038
MSI (c) (48:DC) [11:32:34:542]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2835: The control ErrorIcon was not found on dialog ErrorDialog
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2835. The arguments are: ErrorIcon, ErrorDialog,
Error 1001. Unable to get installer types in the c:\program files\fundsolve ltd\autocalcsetup\nemos_au
MSI (s) (C4!80) [11:32:39:308]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (C4!80) [11:32:39:308]:
MSI (s) (C4:68) [11:32:39:308]: Leaked MSIHANDLE (26) of type 790531 for thread 4736
MSI (s) (C4:68) [11:32:39:308]: Note: 1: 2769 2: _97B9AA6E_40BD_4A59_8184_E
MSI (s) (C4:68) [11:32:39:308]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2769: Custom Action _97B9AA6E_40BD_4A59_8184_E
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2769. The arguments are: _97B9AA6E_40BD_4A59_8184_E
Action ended 11:32:39: InstallFinalize. Return value 3.
MSI (s) (C4:54) [11:32:39:323]: User policy value 'DisableRollback' is 0
MSI (s) (C4:54) [11:32:39:323]: Machine policy value 'DisableRollback' is 0
MSI (s) (C4:54) [11:32:39:323]: Executing op: Header(Signature=139770887
MSI (s) (C4:54) [11:32:39:323]: Executing op: DialogInfo(Type=0,Argument
MSI (s) (C4:54) [11:32:39:323]: Executing op: DialogInfo(Type=1,Argument
MSI (s) (C4:54) [11:32:39:323]: Executing op: RollbackInfo(,RollbackActi
Action 11:32:39: Rollback. Rolling back action:
Does this mean anything to you? Is it possible to identify what the problem is from this.
What this is telling me is that AutoCalcService.Exe has a dialog in it called ErrorDialog that uses an object type of ErrorIcon that is not available in the .EXE. It could be a bad name, or it could be that ErrorIcon is a resource that is contained in another DLL or EXE that isn't yet installed (it may be getting installed as a later part of the process).
Does any of this ring any bells with you? I'm assuming you developed the AutoCalcService.EXE and that you know where and what the ErrorDialog is.
Does any of this ring any bells with you? I'm assuming you developed the AutoCalcService.EXE and that you know where and what the ErrorDialog is.
ASKER
Unfortunately not. There is no reference at all to ErrorDialog or ErrorIcon in any of my code. The strange thing is this install works on 2 other machines without a problem. I have tried reinstalling both the .Net Framwork as well as Visual Studio in case some assemblies had got corrupted but to no avail. I'm really stumped.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
So I removed all references from AutoCalcService.exe and commented out the code that relied on those reference and then added them back one by one until I found the reference that was causing the problem. Once I found the offending reference I commented out all of the code that depended on that reference and reintroduced the code bit by bit until I found the specific piece of code that was causing the problem.
The unfortunate thing is that the offending piece of code compiles without a problem and debugs in the development environment without a problem....its just when I try to install via the installation package that the error occurs. The other unfortunate thing is that the reference is to a third party DLL so I guess I now need to get on to them to see if they can suggest a reason why.
Anyway, thanks a lot for your help. You can have the points for trying.
The unfortunate thing is that the offending piece of code compiles without a problem and debugs in the development environment without a problem....its just when I try to install via the installation package that the error occurs. The other unfortunate thing is that the reference is to a third party DLL so I guess I now need to get on to them to see if they can suggest a reason why.
Anyway, thanks a lot for your help. You can have the points for trying.