Using Installer Project to create MSI , After install the project the software unable to launch

0

I having a problem regarding using install project to create MSI Installer. After install the project the exe is unable to launch. But After I replacing some of the DLL from debug folder the application are able to launch. Can anyone help me ? Thanks.

I use event viewer to check the Error. there have two Error.

.NET Runtime Error

Application: TighteningSystem.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.BadImageFormatException Exception Info: System.BadImageFormatException at System.Signature.GetSignature(Void*, Int32, System.RuntimeFieldHandleInternal, System.IRuntimeMethodInfo, System.RuntimeType) at System.Signature..ctor(System.IRuntimeMethodInfo, System.RuntimeType) at System.Reflection.RuntimeConstructorInfo.GetParametersNoCopy() at System.Reflection.RuntimeConstructorInfo.GetParameters() at DryIoc.ReflectionFactory.CreateExpressionOrDefault(DryIoc.Request) at DryIoc.Factory.GetExpressionOrDefault(DryIoc.Request) at DryIoc.ReflectionFactory.CreateExpressionOrDefault(DryIoc.Request) at DryIoc.Factory.GetExpressionOrDefault(DryIoc.Request) at DryIoc.ReflectionFactory.CreateExpressionOrDefault(DryIoc.Request) at DryIoc.Factory.GetExpressionOrDefault(DryIoc.Request) at DryIoc.Rules+c__DisplayClass62_1.b__2(DryIoc.Request) at DryIoc.Factory.CheckCondition(DryIoc.Request) at DryIoc.RequestTools.MatchFactoryConditionAndMetadata(DryIoc.Request, DryIoc.Factory) at DryIoc.RequestTools.MatchFactoryConditionAndMetadata(DryIoc.Request, ImTools.KV`2) at DryIoc.Container.GetRuleSelectedServiceFactoryOrDefault(DryIoc.Request, System.Type) at DryIoc.Container.DryIoc.IContainer.GetServiceFactoryOrDefault(DryIoc.Request) at DryIoc.Container.DryIoc.IContainer.ResolveFactory(DryIoc.Request) at DryIoc.Container.ResolveAndCache(Int32, System.Type, DryIoc.IfUnresolved) at DryIoc.Container.DryIoc.IResolver.Resolve(System.Type, DryIoc.IfUnresolved) at DryIoc.Container.DryIoc.IResolver.Resolve(System.Type, System.Object, DryIoc.IfUnresolved, System.Type, DryIoc.Request, System.Object[]) at Prism.DryIoc.DryIocContainerExtension.Resolve(System.Type, System.ValueTuple`2[]) Exception Info: Prism.Ioc.ContainerResolutionException at Prism.DryIoc.DryIocContainerExtension.Resolve(System.Type, System.ValueTuple`2[]) at Prism.DryIoc.DryIocContainerExtension.Resolve(System.Type) at Prism.PrismInitializationExtensions+c.b__0_0(System.Object, System.Type) at Prism.Mvvm.ViewModelLocationProvider.AutoWireViewModelChanged(System.Object, System.Action`2) at Prism.Mvvm.ViewModelLocator.AutoWireViewModelChanged(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs) at System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs) at System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs) at System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs) at System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean, System.Windows.OperationType) at System.Windows.DependencyObject.SetValueCommon(System.Windows.DependencyProperty, System.Object, System.Windows.PropertyMetadata, Boolean, Boolean, System.Windows.OperationType, Boolean) at System.Windows.Baml2006.WpfMemberInvoker.SetValue(System.Object, System.Object) at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(System.Xaml.XamlMember, System.Object, System.Object) at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(System.Object, System.Xaml.XamlMember, System.Object) Exception Info: System.Windows.Markup.XamlParseException at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at TighteningSystem.Views.MainWindow.InitializeComponent() at TighteningSystem.Views.MainWindow..ctor() at DryIoc.ReflectionTools.TryRethrowWithPreservedStackTrace(System.Exception) at DryIoc.Interpreter.TryInterpretAndUnwrapContainerException(DryIoc.IResolverContext, FastExpressionCompiler.LightExpression.Expression, Boolean, System.Object ByRef) at DryIoc.Container.ResolveAndCache(Int32, System.Type, DryIoc.IfUnresolved) at DryIoc.Container.DryIoc.IResolver.Resolve(System.Type, DryIoc.IfUnresolved) at DryIoc.Container.DryIoc.IResolver.Resolve(System.Type, System.Object, DryIoc.IfUnresolved, System.Type, DryIoc.Request, System.Object[]) at Prism.DryIoc.DryIocContainerExtension.Resolve(System.Type, System.ValueTuple`2[]) Exception Info: Prism.Ioc.ContainerResolutionException at Prism.DryIoc.DryIocContainerExtension.Resolve(System.Type, System.ValueTuple`2[]) at Prism.DryIoc.DryIocContainerExtension.Resolve(System.Type) at Prism.Ioc.IContainerProviderExtensions.Resolve[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Prism.Ioc.IContainerProvider) at TighteningSystem.App.CreateShell() at Prism.PrismApplicationBase.Initialize() at Prism.PrismApplicationBase.InitializeInternal() at Prism.PrismApplicationBase.OnStartup(System.Windows.StartupEventArgs) at System.Windows.Application.b__1_0(System.Object) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object) at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr) at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame) at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame) at System.Windows.Application.RunDispatcher(System.Object) at System.Windows.Application.RunInternal(System.Windows.Window) at System.Windows.Application.Run(System.Windows.Window) at System.Windows.Application.Run() at TighteningSystem.App.Main() 

  

Application Error

Faulting application name: TighteningSystem.exe, version: 1.0.1.0, time stamp: 0x60b04d7e
Faulting module name: KERNELBASE.dll, version: 10.0.18362.997, time stamp: 0xd5511be4
Exception code: 0xe0434352
Fault offset: 0x001140b2
Faulting process ID: 0x3804
Faulting application start time: 0x01d7536679b13446
Faulting application path: C:\Program Files (x86)\Flash Software Solution\Flash Tightening System\TighteningSystem.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report ID: f8022bbc-7de2-48f4-b1e6-57920933ab30
Faulting package full name: 
Faulting package-relative application ID: 

DLL Replacement

c#
.net
wpf
setup-project
asked on Stack Overflow May 28, 2021 by Ooi

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0