HOW TO: Debug Visual Basic COM Components That Are Used Within Active Server Pages
2004-06-29 22:56
597 查看
HOW TO: Debug Visual Basic COM Components That Are Used Within Active Server Pages
适用于 This article was previously published under Q299633IN THIS TASK
SUMMARY Debugging VB COM Components That Are Used in ASP Pages TroubleshootingREFERENCES
SUMMARY
This step-by-step procedure demonstrates how to debug (or step through) Microsoft Visual Basic (VB) Component Object Model (COM) components that are used within Active Server Pages (ASP) pages.back to the top
Debugging VB COM Components That Are Used in ASP Pages
On the Start menu, point to Programs, point to Microsoft Visual Studio 6.0, and then click Microsoft Visual Basic. In Visual Basic, open the COM component project that you want to debug, and set a breakpoint in the location where you want to debug. To do this, click anywhere in the statement where you want to debug. On the Visual Basic Debug menu, click Toggle Breakpoint. Notice that a colored dot appears in the left margin to indicate the breakpoint line. To remove the breakpoint, you can click the dot. To set breakpoints at other lines, you can click the corresponding locations in the margin. Press the F5 key, and run the component within the VB Integrated Development Environment (IDE). If a dialog box prompts you about how to run the component, click Wait for components to be created. Open Internet Services Manager. To open Internet Services Manager in Microsoft Internet Information Server (IIS) 5.0, follow these steps:From the Microsoft Windows Start menu, point to Programs, and then click Administrative Tools. Click Internet Services Manager.
To open Internet Services Manager in IIS 4.0, follow these steps: From the Windows Start menu, point to Programs, and then click Windows NT 4.0 Option Pack. Click Microsoft Internet Information Server. Click Internet Service Manager.
In Internet Services Manager, right-click the virtual directory that contains the ASP page that calls your component, and then click Properties. Under Anonymous Access, click Edit, and set the Directory Security of this virtual directory to anything other than Anonymous. In your Internet browser, run the ASP page that calls the component. The component automatically breaks into the VB project at the breakpoint location. Press the F8 key to debug (step through) your VB component.
back to the top
Troubleshooting
If you are already running a compiled version of this dynamic-link library (DLL) from this ASP page, you may not hit the breakpoint. In this scenario, you may want to stop and restart Microsoft Internet Information Server (IIS) services. To do this, on the Windows Start menu, click Run, and then type IISRESET. Please note that this command stops and restarts IIS, as well as all IIS applications that are running.back to the top
REFERENCES
For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base: 177182 HOWTO: Debug a Visual Basic DLL under Active Server Pages 166275 HOWTO: Debug a Native Code Visual Basic Component in VC++ 264957 BUG: VB DLL Has Memory Leaks and Crashes in COM+ if 'Retain In Memory' Not Set 259725 PRB: Error Occurs When You Debug a COM+ Component Under the Visual Basic IDE with an ASP Client 265492 BUG: ObjectContext Item Collection Is Empty When You Debug Under COM+ 244457 HOWTO: Debug an MTS VB Component Running Under ASP back to the topThe information in this article applies to:
Microsoft Active Server Pages, when used with: the operating system: Microsoft Windows 2000 Microsoft Internet Information Server 4.0 Microsoft Internet Information Server 5.0 Microsoft Visual Basic Enterprise Edition for Windows 5.0 Microsoft Visual Basic Enterprise Edition for Windows 6.0 Microsoft Visual Basic Professional Edition for Windows 5.0 Microsoft Visual Basic Professional Edition for Windows 6.0Last Reviewed: | 6/25/2004 (4.0) |
Keywords: | kbBug kbDebug kbhowto kbHOWTOmaster KB299633 kbAudDeveloper |
相关文章推荐
- HOW TO: Update DLLs Used by Active Server Pages in IIS 4.0
- identify internal components that are stealing the most pages from buffer pool using the following DMV query
- How to move the databases that are used by SharePoint Portal Server 2003 to a computer that is running SQL Server
- HOW TO:从 Visual Basic 6.0 调用 Visual Basic .NET 程序集以及从 Visual Basic .NET 调用 Visual Basic COM 组件
- There are no resources that can be added or removed from the server(转)
- Silverlight + WCF + EF4 调用出错,Server 端的Exception:The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.
- Active Server Pages 错误 ‘ASP 0201′
- Debugging COM server (.EXE Server and Active Document)
- Active Server Pages 错误 'ASP 0113'出现的错误
- eclise 部署web工程报 There are no resources that can be added or removed from the server.
- 不允许的父路径问题Active Server Pages 错误 'ASP 0131'
- Use Tab twice to get the code snippets that are available within code editor
- 【问题】There are no resources that can be added or removed from the server
- Active Server Pages 错误 'ASP 0201'
- [Templates That Are Usually Used]Greatest Common Divisor
- Visual Basic COM基础讲座之兼容性
- Active Server Pages 错误 'ASP 0201' 无效的默认脚本语言
- Active Server Pages 错误 'ASP 0240'
- Active Server Pages 错误 'ASP 0201' 的解决办法!
- Active Server Pages 错误 ASP 0201 的最终解决办法