2010-09-22 42 views
6

Tôi đang gặp sự cố lạ với Visual Studio nếu tôi bắt đầu gỡ lỗi thoát ngay lập tức. Điều này bắt đầu xảy ra sau khi thay đổi tên lắp ráp trong các thuộc tính của dự án. Nếu tôi đổi tên assembly thành tên trước thì chương trình sẽ chạy tốt. Làm thế nào tôi có thể sửa lỗi này?Visual Studio 2008 - Chương trình thoát ngay lập tức với F5 (bắt đầu gỡ lỗi)

Đây là kết quả khi chạy sau khi thay đổi tên lắp ráp:

'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 
'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 
'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 
'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 
'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 
'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 
'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 
'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\DEV\SerialDeviceMaintenanceUtility\SerialDeviceMaintenanceUtility\bin\Release\SerialDeviceMaintenanceUtility.vshost.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 
'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 
'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 
'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 
'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 
'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 
'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\WindowsBase\3.0.0.0__31bf3856ad364e35\WindowsBase.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 
'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\PresentationCore\3.0.0.0__31bf3856ad364e35\PresentationCore.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 
'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\PresentationFramework\3.0.0.0__31bf3856ad364e35\PresentationFramework.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 
'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\WindowsFormsIntegration\3.0.0.0__31bf3856ad364e35\WindowsFormsIntegration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 
The thread 0xd80 has exited with code 0 (0x0). 
The thread 0x174 has exited with code 0 (0x0). 
'SerialDeviceMaintenanceUtility.vshost.exe' (Managed): Loaded 'C:\DEV\SerialDeviceMaintenanceUtility\SerialDeviceMaintenanceUtility\bin\Release\SerialDeviceMaintenanceUtility.exe', Symbols loaded. 
The program '[1632] SerialDeviceMaintenanceUtility.vshost.exe: Managed' has exited with code -1073741819 (0xc0000005). 

Lưu ý: tên đường dẫn trên đã được viết tắt để ẩn tổ chức đặt tên cụ thể.

+0

web, winforms hoặc WPF ? – JamesMLV

+0

Đây là một ứng dụng WPF, nhưng nó có một số điều khiển winforms được lưu trữ –

+0

Sao chép và dán những gì bạn nhìn thấy trong cửa sổ Output vào câu hỏi của bạn –

Trả lời

2
+0

Hóa ra chính xác nó - sự khác biệt duy nhất là nếu vshost.exe là 127 đối với tôi nó vẫn thất bại (<= 126 ký tự hoạt động tốt). Đây là một vấn đề khác có liên quan: http://social.msdn.microsoft.com/forums/en-US/csharpide/thread/c9ead6da-5e30-4c1d-9187-74361ae5b37a/ –

+0

Tôi đã mở một vé kết nối MSFT tại đây: https://connect.microsoft.com/VisualStudio/feedback/details/604075/visual-studio-2008-why-does-the-vshost-exe-have-a-full-path-limit-of-126-characters –

0

Tôi sẽ xây dựng lại giải pháp của bạn sau khi thay đổi tên lắp ráp (sạch sẽ và xây dựng).

+0

Điều đó không giải quyết được. Tôi đã thử một số lần. –

0

Tôi đã cố gắng vô hiệu hóa tính năng 'turbo-exit' này của VS2008 trong nhiều tháng. Nó có vẻ liên quan đến các tệp XML trong dự án của tôi. Tôi đã cố định nó tại một thời điểm, nhưng sau đó tôi nhận được một máy mới từ CNTT và vấn đề đã được giới thiệu lại.

Kiểm tra Microsoft KB957912.

+0

Tôi đã cài đặt KB mà bạn đã đề cập và tôi vẫn gặp sự cố tương tự. –

0

Bạn đã thử đặt đối tượng khởi động trong cài đặt ứng dụng chưa?

Ngoài ra, bạn đã thử thiết lập điểm dừng tại vị trí sẵn có sớm nhất (Trong một ứng dụng WPF, đó có phải là App.xaml.cs của bạn) không? Đôi khi bạn chỉ không nhận ra khi các công cụ như InitializeComponent() không thành công ...

Cuối cùng nhưng không kém phần quan trọng, bạn có sử dụng Phản chiếu kết hợp với Tên hội cũ (dưới dạng chuỗi) không? Hãy thử tìm kiếm dự án của bạn cho bất cứ điều gì

Tôi chỉ đoán, đây là loại khó có thể nói được chỉ có ít thông tin bạn cung cấp :(

+0

Có, tôi đã thử đặt đối tượng khởi động. Nó không giải quyết được vấn đề. Tôi cũng có thể làm "bước vào" và nhận được vào MainWindow.xaml.cs của tôi và InitializeComponent() trước đây. Tôi không sử dụng sự phản chiếu theo tên. Rõ ràng là chương trình của tôi chạy tốt nếu bạn thực thi nó bên ngoài IDE. Nó chỉ có một vấn đề khi bạn cố gắng gỡ lỗi trong IDE. Trong các ý kiến ​​của tôi, tôi đã đề cập rằng lỗi được giải quyết bằng cách tạo một tên assembly <= 22 ký tự mà tôi biết không thực sự có ý nghĩa gì cả, nhưng đó là hành vi tôi thấy. –

Các vấn đề liên quan