B
Bob
I created a windows service and added an installer by following the tutorial
in MSDN. But when I run the installutil.exe tool I get an error. Below is
the log.
Installing assembly 'c:\temp\serv\prorec.exe'.
Affected parameters are:
assemblypath = c:\temp\serv\prorec.exe
logfile = c:\temp\serv\prorec.InstallLog
An exception occurred while trying to find the installers in the
c:\temp\serv\prorec.exe assembly.
System.Reflection.ReflectionTypeLoadException: One or more of the types in
the assembly unable to load.
Aborting installation for c:\temp\serv\prorec.exe.
Rolling back assembly 'c:\temp\serv\prorec.exe'.
Affected parameters are:
assemblypath = c:\temp\serv\prorec.exe
logfile = c:\temp\serv\prorec.InstallLog
An exception occurred while trying to find the installers in the
c:\temp\serv\prorec.exe assembly.
System.Reflection.ReflectionTypeLoadException: One or more of the types in
the assembly unable to load.
Aborting installation for c:\temp\serv\prorec.exe.
If I change the Main() function to create my service class and call the
start & stop manually it runs fine as an application. Can anyone tell me
how to find out what the problem is? Is there anyway to get a better
description of what type could not be loaded?
Bob
in MSDN. But when I run the installutil.exe tool I get an error. Below is
the log.
Installing assembly 'c:\temp\serv\prorec.exe'.
Affected parameters are:
assemblypath = c:\temp\serv\prorec.exe
logfile = c:\temp\serv\prorec.InstallLog
An exception occurred while trying to find the installers in the
c:\temp\serv\prorec.exe assembly.
System.Reflection.ReflectionTypeLoadException: One or more of the types in
the assembly unable to load.
Aborting installation for c:\temp\serv\prorec.exe.
Rolling back assembly 'c:\temp\serv\prorec.exe'.
Affected parameters are:
assemblypath = c:\temp\serv\prorec.exe
logfile = c:\temp\serv\prorec.InstallLog
An exception occurred while trying to find the installers in the
c:\temp\serv\prorec.exe assembly.
System.Reflection.ReflectionTypeLoadException: One or more of the types in
the assembly unable to load.
Aborting installation for c:\temp\serv\prorec.exe.
If I change the Main() function to create my service class and call the
start & stop manually it runs fine as an application. Can anyone tell me
how to find out what the problem is? Is there anyway to get a better
description of what type could not be loaded?
Bob