2012-04-14 2 views
-1

Visual Basic 2008 Express Edition을 사용하고 있으며 텍스트 편집기를 만들고 있습니다. 그것은 내 시스템에 큰 실행,하지만 난 내 친구의 시스템에서 실행하려고 할 때,이 오류가있어 :내 응용 프로그램에 .NET Framework 3.5가 필요합니까?

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box. 

************** Exception Text ************** 
System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. 
File name: 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 
    at WindowsApplication2.frmeditor.getEnglish(String StrSearch) 
    at WindowsApplication2.frmeditor.EeditorCMS_Opening(Object sender, CancelEventArgs e) 
    at System.Windows.Forms.ToolStripDropDown.OnOpening(CancelEventArgs e) 
    at System.Windows.Forms.ToolStripDropDown.SetVisibleCore(Boolean visible) 
    at System.Windows.Forms.ContextMenuStrip.SetVisibleCore(Boolean visible) 
    at System.Windows.Forms.ToolStripDropDown.Show(Control control, Point position) 
    at System.Windows.Forms.ContextMenuStrip.ShowInternal(Control source, Point location, Boolean isKeyboardActivated) 
    at System.Windows.Forms.Control.WmContextMenu(Message& m, Control sourceControl) 
    at System.Windows.Forms.Control.WmContextMenu(Message& m) 
    at System.Windows.Forms.Control.WndProc(Message& m) 
    at System.Windows.Forms.TextBoxBase.WndProc(Message& m) 
    at System.Windows.Forms.RichTextBox.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) 

WRN: Assembly binding logging is turned OFF. 
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. 
Note: There is some performance penalty associated with assembly bind failure logging. 
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. 



************** Loaded Assemblies ************** 
mscorlib 
    Assembly Version: 2.0.0.0 
    Win32 Version: 2.0.50727.42 (RTM.050727-4200) 
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll 
---------------------------------------- 
UrduEditor 
    Assembly Version: 1.0.0.0 
    Win32 Version: 1.0.0.0 
    CodeBase: file:///C:/Documents%20and%20Settings/M%20Bilal/Desktop/New%20folder/UrduEditor.exe 
---------------------------------------- 
Microsoft.VisualBasic 
    Assembly Version: 8.0.0.0 
    Win32 Version: 8.0.50727.42 (RTM.050727-4200) 
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll 
---------------------------------------- 
System.Windows.Forms 
    Assembly Version: 2.0.0.0 
    Win32 Version: 2.0.50727.42 (RTM.050727-4200) 
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll 
---------------------------------------- 
System 
    Assembly Version: 2.0.0.0 
    Win32 Version: 2.0.50727.42 (RTM.050727-4200) 
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll 
---------------------------------------- 
System.Drawing 
    Assembly Version: 2.0.0.0 
    Win32 Version: 2.0.50727.42 (RTM.050727-4200) 
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll 
---------------------------------------- 
System.Runtime.Remoting 
    Assembly Version: 2.0.0.0 
    Win32 Version: 2.0.50727.42 (RTM.050727-4200) 
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll 
---------------------------------------- 
System.Configuration 
    Assembly Version: 2.0.0.0 
    Win32 Version: 2.0.50727.42 (RTM.050727-4200) 
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll 
---------------------------------------- 
System.Xml 
    Assembly Version: 2.0.0.0 
    Win32 Version: 2.0.50727.42 (RTM.050727-4200) 
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll 
---------------------------------------- 
CollapsibleGroupBox 
    Assembly Version: 1.0.4486.29379 
    Win32 Version: 1.0.4486.29379 
    CodeBase: file:///C:/Documents%20and%20Settings/M%20Bilal/Desktop/New%20folder/CollapsibleGroupBox.DLL 
---------------------------------------- 
ExtendedRichTextBox 
    Assembly Version: 1.0.0.0 
    Win32 Version: 1.0.0.0 
    CodeBase: file:///C:/Documents%20and%20Settings/M%20Bilal/Desktop/New%20folder/ExtendedRichTextBox.DLL 
---------------------------------------- 
Interop.SpeechLib 
    Assembly Version: 5.4.0.0 
    Win32 Version: 5.4.0.0 
    CodeBase: file:///C:/Documents%20and%20Settings/M%20Bilal/Desktop/New%20folder/Interop.SpeechLib.DLL 
---------------------------------------- 

************** JIT Debugging ************** 
To enable just-in-time (JIT) debugging, the .config file for this 
application or computer (machine.config) must have the 
jitDebugging value set in the system.windows.forms section. 
The application must also be compiled with debugging 
enabled. 

For example: 

<configuration> 
    <system.windows.forms jitDebugging="true" /> 
</configuration> 

When JIT debugging is enabled, any unhandled exception 
will be sent to the JIT debugger registered on the computer 
rather than be handled by this dialog box. 

운영 체제는 .NET 프레임 워크 2.0 윈도우   XP입니다.

.NET Framework 3.5는 크기가 200보다 커서   MB를 사용하고 싶지 않습니다. 내 코드는 아래와 같습니다. 이 코드에는 .NET Framework 3.5가 필요합니까?

Public Sub ClipboardEnglish(ByVal StrSearch As String) 
    If IO.File.Exists(Application.StartupPath & "\eng.txt") Then 
     If NotifyIcon1.Visible = True Then 
      Dim words() As String = IO.File.ReadAllLines(Application.StartupPath & "\eng.txt") 
      Dim startwiths() As String = (From word In words Where LCase(word).StartsWith(LCase(StrSearch & " ")) Select word).ToArray 
      For Each startwith In startwiths 
       Dim meanings() As String 
       startwith = Replace(LCase(startwith), LCase(StrSearch) & " ", "") 
       meanings = Replace(startwith & ",", ", ", ",").Split(New Char() {","c}) 
       For Each mean In meanings 
        If Not mean = " " AndAlso Not mean = "" Then 
         If mean.Length > 100 Then 
          mean = mean.Substring(0, 100) & "..." 
         End If 
         If Not TSMIurdu.DropDownItems.Count = TSEnglishcount.Text Then 
          TSMIurdu.DropDownItems.Add(mean) 
         End If 
        End If 
       Next 
      Next 
      If TSMIurdu.DropDownItems.Count > 0 Then 
       ContextMenuStrip1.Show(Cursor.Position) 
       ContextMenuStrip1.Show() 
      End If 
     End If 
    Else 
     MsgBox("انگریزی ڈکشنری دستیاب نہیں", MsgBoxStyle.Critical, "خرابی") 
    End If 
End Sub 

답변

3

Win32 Version: 2.0.50727.42 (RTM.050727-4200)

개정 (42)는 .NET 2.0 원래 RTM 버전입니다. System.Core 버전 = 3.5.0.0은 .NET 3.5 이전에는 사용할 수 없었습니다. 그의 놀라운 끈기가 에 없기 때문에 Windows Update를 사용하는 친구는 결코입니다. Windows Update에서 일반적으로 얻을 수있는 .NET 3.0, 3.5 및 3.5 SP1 업데이트에서 짧게 보았을 때 개정 42 이후로 많은 안정성 및 보안 패치가 릴리스되었습니다. 그의 컴퓨터에서 실행 파일을 수락하지 마십시오.

+0

어둡게 startwiths() As String = (단어 LCase (단어) .StartsWith (LCase (StrSearch & "")) 단어 선택 .ToArray 이 줄은 도트 그물 프레임 작업 3.5를 호출하므로이 단어를 바꿉니다. . 지금 일하고있어. – user934820

관련 문제