G
Guest
I am trying run InstallUtil against a .DLL assembly that is basically empty
except for the Installer and ProjectInstaller classes which I'm trying to use
to create a specific Event Source to support the application. I believe I
have it set up correctly in the Visual Studio project because it works when I
run it from my Windows XP Pro desktop, but when I run it on the Windows 2003
Standard test server it fails with the following error:
An exception occurred during the Install phase.
System.InvalidOperationException: Unable to create an instance of the
ProcessMessageWS.Instrumentation.Installer1 installer type.
at System.Configuration.Install.AssemblyInstaller.InitializeFromAssembly()
at System.Configuration.Install.AssemblyInstaller.Install(IDictionary
savedState)
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
at System.Configuration.Install.TransactedInstaller.Install(IDictionary
savedState)
The inner exception System.Reflection.TargetInvocationException was thrown
with the following error message: Exception has been thrown by the target of
an invocation..
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder
binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes)
at System.Configuration.Install.AssemblyInstaller.InitializeFromAssembly()
The inner exception System.Security.SecurityException was thrown with the
following error message: Security error..
at ProcessMessageWS.Instrumentation.Installer1..ctor()
I am in the local administrators group for both my workstation and the
server, so I'm not sure why I'd be getting a security error... There are no
entries created in the Event logs, so I'm a little clueless as to why this is
happening.
Thanks in advance for the help,
Chris
except for the Installer and ProjectInstaller classes which I'm trying to use
to create a specific Event Source to support the application. I believe I
have it set up correctly in the Visual Studio project because it works when I
run it from my Windows XP Pro desktop, but when I run it on the Windows 2003
Standard test server it fails with the following error:
An exception occurred during the Install phase.
System.InvalidOperationException: Unable to create an instance of the
ProcessMessageWS.Instrumentation.Installer1 installer type.
at System.Configuration.Install.AssemblyInstaller.InitializeFromAssembly()
at System.Configuration.Install.AssemblyInstaller.Install(IDictionary
savedState)
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
at System.Configuration.Install.TransactedInstaller.Install(IDictionary
savedState)
The inner exception System.Reflection.TargetInvocationException was thrown
with the following error message: Exception has been thrown by the target of
an invocation..
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder
binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes)
at System.Configuration.Install.AssemblyInstaller.InitializeFromAssembly()
The inner exception System.Security.SecurityException was thrown with the
following error message: Security error..
at ProcessMessageWS.Instrumentation.Installer1..ctor()
I am in the local administrators group for both my workstation and the
server, so I'm not sure why I'd be getting a security error... There are no
entries created in the Event logs, so I'm a little clueless as to why this is
happening.
Thanks in advance for the help,
Chris