Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Visual J# / August 2005

Tip: Looking for answers? Try searching our database.

InstallUtil Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vomish - 24 Sep 2004 19:47 GMT
Hello

I have been working on a service application in J# for a while now.
Since we are starting to test it, we are attempting to install it on a
test box.  The first test went fine (as far as installing as a
service) but now it will not install at all.  When I am trying to test
a new version I first uninstall the service (InstallUtil /u ...) and
then try to install the new one.  This procedure worked for a few
version tests but now it no longer wants to install the service (BTW,
all boxes are up to date patch wise).

Here is the output from the console when trying to install the
service:

--------------------------------------------------------------------------------

Microsoft (R) .NET Framework Installation utility Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the c:\program
files\myservice\myservice.exe assembly's progress.
The file is located at c:\program
files\myservice\myservice.InstallLog.
Installing assembly 'c:\program files\myservice\myservice.exe'.
Affected parameters are:
  assemblypath = c:\program files\myservice\myservice.exe
  logfile = c:\program files\myservice\myservice.InstallLog
An exception occurred while trying to find the installers in the
c:\program files\myservice\myservice.exe assembly.
System.Reflection.ReflectionTypeLoadException: One or more of the
types in the assembly unable to load.
Aborting installation for c:\program files\myservice\myservice.exe.

An exception occurred during the Install phase.
System.InvalidOperationException: Unable to get installer types in the
c:\program files\myservice\myservice.exe assembly.
The inner exception System.Reflection.ReflectionTypeLoadException was
thrown with the following error message: One or more of the types in
the assembly unable to load..

The Rollback phase of the installation is beginning.
See the contents of the log file for the c:\program
files\myservice\myservice.exe assembly's progress.
The file is located at c:\program
files\myservice\myservice.InstallLog.
Rolling back assembly 'c:\program files\myservice\myservice.exe'.
Affected parameters are:
  assemblypath = c:\program files\myservice\myservice.exe
  logfile = c:\program files\myservice\myservice.InstallLog
An exception occurred while trying to find the installers in the
c:\program files\myservice\myservice.exe assembly.
System.Reflection.ReflectionTypeLoadException: One or more of the
types in the assembly unable to load.
Aborting installation for c:\program files\myservice\myservice.exe.
An exception occurred during the Rollback phase of the
System.Configuration.Install.AssemblyInstaller installer.
System.InvalidOperationException: Unable to get installer types in the
c:\program files\myservice\myservice.exe assembly.
The inner exception System.Reflection.ReflectionTypeLoadException was
thrown with the following error message: One or more of the types in
the assembly unable to load..
An exception occurred during the Rollback phase of the installation.
This exception will be ignored and the rollback will continue.
However, the machine might not fully revert to its initial state after
the rollback is complete.

The Rollback phase completed successfully.

The transacted install has completed.

--------------------------------------------------------------------------------

Any insight / ideas / solutions would be greatly appreciated.  

Thanks,
Vomish
Lars-Inge T?nnessen [VJ# MVP] - 25 Sep 2004 00:00 GMT
I'm reading:
"An exception occurred while trying to find the installers in the
c:\program files\myservice\myservice.exe assembly."

Are you sure you did not forget anything? It's easy to forget something...

Does the logfile say anything ?
"logfile = c:\program files\myservice\myservice.InstallLog"

Regards,
Lars-Inge T?nnessen
Vomish - 27 Sep 2004 20:11 GMT
"Lars-Inge Tønnessen [VJ# MVP]" <http://emailme.larsinge.com> wrote in message news:<e3kLIpooEHA.3172@TK2MSFTNGP10.phx.gbl>...
> I'm reading:
> "An exception occurred while trying to find the installers in the
[quoted text clipped - 7 lines]
> Regards,
> Lars-Inge Tønnessen

Ooops!

Yes something was missing and I have since fixed the problem.

Thanks for the reply, sorry to have wasted your time.

Vomish
Lars-Inge T?nnessen [VJ# MVP] - 27 Sep 2004 23:42 GMT
> Thanks for the reply, sorry to have wasted your time.

That is why we are here. We all do this, all the time. =:o)

Cheers,
Lars-Inge
Umm Ok so Help - 12 Aug 2005 19:24 GMT
Ok so you 'fixed' the problem...How?  'Something was missing' doesn't really help the rest of us who have the problem...
daroo@sympatico.ca - 15 Aug 2005 16:40 GMT
> Ok so you 'fixed' the problem...How?  'Something was missing' doesn't really help the rest of us who have the problem...
>
> From http://www.developmentnow.com/g/47_2004_9_0_0_250498/InstallUtil-Error.htm
>
> Posted via DevelopmentNow.com Groups
> http://www.developmentnow.com

It has been a while since this happened but I will try to remember...

There was an incorrect/missing reference to an external dll that had
been moved.  Once I re-mapped all of my project references (the
solution is made up of several separate projects which compile into
dll's), I was able to re-compile and install my service without error.

Hope this helps!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.