Dear Zeroc Staff,
I try to install icepatch2server.exe as WinNT Service with the following code:
1 AssemblyInstaller installer = new AssemblyInstaller();
2 string[] options = new string[0];
3 installer.UseNewContext = true;
4 installer.Path = @"C:\Ice-3.3.0\bin\icepatch2server.exe";
5 installer.CommandLine = options;
6 IDictionary saveState = new Hashtable();
7 installer.Install(saveState);
8 installer.Commit(saveState);
when debug to line4, it throws the following exception:
System.BadImageFormatException: Could not load file or assembly 'file:///C:\Ice-3.3.0\bin\icepatch2server.exe' or one of its dependencies. The module was expected to contain an assembly manifest.
I use depends to view the depend relationship of icepatch2server.exe,found mpr.dll no bind.
Have you ever encountered this kind of problem and have some solutions or have other method to solve it? Thanks in advance.

Reply With Quote