2014-04-21 3 views
0

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 ************** 
+0

당신은 동일한 컴퓨터에서 응용 프로그램을 설치 한? 코드에 특정 문화를 적용 했습니까? – Hassan

+0

@HassanNisar 예 VS2010을 가진 동일한 컴퓨터에 응용 프로그램을 설치했습니다. 예 ResourceBundle에서 콤보 상자에서 언어를 변경하는 데 사용한 SpecificCulture.cs 파일이 있습니다. – hshantanu

+0

애플리케이션로드시 적용 할 문화권은 무엇입니까? – Hassan

답변

0

문제 : 언어 CultureInfo를 시행하여 운영 체제를 지원하지 않습니다.

어떻게을 테스트하려면 :

  1. 고토의 AppData 폴더를 사용자 설정에서.
  2. 응용 프로그램 폴더를 찾고 User.config 파일을 찾으십시오.
  3. Properties.Settings.Default.LastCulture의 값을 XML의 언어 (예 : "en-GB")로 수정하십시오.
  4. 실행 파일을 테스트하십시오.

해결 : 운영 체제에 대한 다운로드 언어 팩. 윈도우 7 언어 팩에 대한

는 여기에서 찾을 수 있습니다 : 또한 VS2010를 실행 http://windows.microsoft.com/en-us/windows/language-packs#lptabs=win7

+0

@HassanNissar 네, 성공했습니다! 고맙습니다! – hshantanu