안녕하세요. 프로그램 개발 후에 ClickOnce로 배포 후 설치까지 했습니다.
설치된 프로그램을 실행하는데 그냥 종료되는 현상이 발생합니다.
윈도우 이벤트 뷰어에 가서 확인하니 다음과 같은 예외가 발생해서 원인을 찾고 있는데 잘 해결되지 않아서 질문을 올리게 되었습니다.
응용 프로그램: applaunch.exe
Framework 버전: v4.0.30319
설명: 처리되지 않은 예외로 인해 프로세스가 종료되었습니다.
예외 정보:System.Security.SecurityException
위치: System.Security.CodeAccessSecurityEngine.Check(System.Object, System.Threading.StackCrawlMark ByRef, Boolean)
위치: System.Security.CodeAccessSecurityEngine.Check(System.Security.CodeAccessPermission, System.Threading.StackCrawlMark ByRef)
위치: System.Security.CodeAccessPermission.Demand()
위치: System.Windows.Forms.Application.get_StartupPath()
위치: DL00Common.Common.Module.Variable…cctor()
예외 정보:System.TypeInitializationException
위치: DL00Common.Common.Module.XSqlConnection.SpInitializeDatabase()
위치: DL00Common.Common.Module.XSqlConnection.Open()
위치: DL00Common.Common.Module.XSqlConnection…ctor()
위치: DL00Common.Common.Module.XSqlConnection.ConnectDB()
위치: DL00Common.Common.Module.XmsSql…ctor()
위치: DlMrpBase.Forms.FrmMDI…ctor()
위치: DlMrpBase.Program.Main()
위치: System.AppDomain._nExecuteAssembly(System.Reflection.RuntimeAssembly, System.String[])
위치: System.AppDomain.nExecuteAssembly(System.Reflection.RuntimeAssembly, System.String[])
위치: System.Runtime.Hosting.ManifestRunner.Run(Boolean)
위치: System.Runtime.Hosting.ManifestRunner.NewThreadRunner()
위치: System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
위치: System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
위치: System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
위치: System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
위치: System.Threading.ThreadHelper.ThreadStart()
혹시 어떤 부분이 의심되는지, 혹은 어떻게 접근하면 좋을지 조언해주실 수 있을까요?