- Start Visual Basic.
- On the Project menu, point to Project, and then click Project Properties.
- On the General tab, click to select the Retain in Memory and the Unattended Execution check boxes for the server-side component. You must use these settings for a server-side component.For additional information, click the article number below to view the article in the Microsoft Knowledge Base:264957 PRB: Visual Basic DLL Has Memory Leaks and Crashes in COM+ If 'Retain In Memory' Is Not Set
- On the Component tab, click Binary Compatibility. This compatibility setting is required for you to debug your component from Visual Basic.
For additional information, click the article number below to view the article in the Microsoft Knowledge Base:244457 How To Debug an MTS Visual Basic Component Running Under ASPWhen you do not select this option, a new GUID is generated every time the project is recompiled. As a result, new entries are added to the registry.
NOTE: You must reset binary compatibility when you add a method.
For additional information, click the article number below to view the article in the Microsoft Knowledge Base:241637 PRB: Adding a New Method to a VB Component in MTS Breaks Existing Client
- On the Compile tab, click Create Symbolic Debug Info to build and to compile the project.
NOTE: Debug symbols are valuable when your MTS application stops responding (hangs). The system looks for symbols in the Winnt\Symbols folder, and then in the path of the DLL. If the system finds the symbols, then the error that is logged in the event log gives more information about where the failure occurred in the component. If the MTS application stops responding, you must have symbols for the post-mortem debug session.
รหัสบทความ: 281630 - การตรวจสอบครั้งสุดท้าย: 24 มี.ค. 2009 - ฉบับแก้ไข: 1