C# 설치 프로그램 응용 프로그램을 만들었습니다. 데스크톱 응용 프로그램을 실행하려고하면 예외가 발생하고 콤보 상자에서 값을 가져올 수 없습니다 (나머지 코드는 제대로 작동하지만). Visual Studio 2010을 실행할 때 코드가 완벽하게 실행됩니다. 여기에 아이콘을 클릭했을 때 얻을 수있는 다양한 예외에 대한 설명이 있습니다. 아무도 내가 왜 이것을 얻는 지에 대한 도움을 줄 수 있습니까?C에서 작성한 응용 프로그램 i의 새 설치 프로그램 파일을 실행할 때 오류가 발생했습니다.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Globalization.CultureNotFoundException: Culture is not supported.
Parameter name: name
????? is an invalid culture identifier.
at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
at System.Globalization.CultureInfo..ctor(String name)
at SampleResourceBundle.Loginpage.fillAppLangueCombo()
at SampleResourceBundle.Loginpage.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
당신은 동일한 컴퓨터에서 응용 프로그램을 설치 한? 코드에 특정 문화를 적용 했습니까? – Hassan
@HassanNisar 예 VS2010을 가진 동일한 컴퓨터에 응용 프로그램을 설치했습니다. 예 ResourceBundle에서 콤보 상자에서 언어를 변경하는 데 사용한 SpecificCulture.cs 파일이 있습니다. – hshantanu
애플리케이션로드시 적용 할 문화권은 무엇입니까? – Hassan