Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 301237 - Last Review: July 7, 2008 - Revision: 5.1
How To Create a Visual Basic Project Template For Creating IIS Components
This article was previously published under Q301237
We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 7.0 running on Microsoft Windows Server 2008. IIS 7.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:
For more information about IIS 7.0, visit the following Microsoft Web site:
When you develop custom Visual Basic components to run
under Internet Information Services (IIS), you must set a number of properties
to maximize the uptime of the IIS server. To make it easier on the development
team, it is recommended that a project template be created with all of the
necessary settings already set. By doing this you can remove the possibility
that a component will be created without these settings and therefore cause
server problems when it is put into use.
To create a project template, follow these steps:
- In Visual Basic, create a new ActiveX DLL
project.
- On the Project menu, click Properties.
- On the General tab, select Unattended Execution and Retain in Memory.NOTE: Unattended Execution and Retain in Memory are necessary so that the IIS server does not stop responding
(hang) or crash because of the Visual Basic dynamic-link library (DLL). For
more information on the issues you can encounter if these settings are not
selected, see the "References" section.
- On the Compile tab, select Create Symbolic Debug Info.NOTE: Create Symbolic Debug Info creates symbol files for the DLL whenever you compile. These can
be used to debug problems with the DLL.
- On the Make tab, select Auto Increment.
- Click OK.
- On the Tools menu, click Options.
- On the Environment tab, note the setting for Template Directory. This is where you will save the Visual Basic project (.vbp)
file.
- Click OK.
- On the File menu, click Save Project As.
- Save the .cls file in any folder other than the template
folder that is listed on the Environment tab.
- Save the .vbp file in the template folder that is listed on
the Environment tab. Give the file a memorable name, such as IIS
Component.vbp.
You can see this template in the template directory when you
click
Open Project on the
File menu. All necessary settings are set.
For additional information,
click the article numbers below to view the articles in the Microsoft Knowledge
Base:
214755Â
(http://kbalertz.com/Feedback.aspx?kbNumber=214755/EN-US/
)
FIX: VB 6 DLL Settings Cause Access Violation During MTS Shutdown
191119Â
(http://kbalertz.com/Feedback.aspx?kbNumber=191119/EN-US/
)
FIX: VB Classes Can Cause IIS to Have Access Violations
243548Â
(http://kbalertz.com/Feedback.aspx?kbNumber=243548/EN-US/
)
INFO: Design Guidelines for VB Components Under ASP
281630Â
(http://kbalertz.com/Feedback.aspx?kbNumber=281630/EN-US/
)
How To Configure Visual Basic DLL Project Properties to Run in IIS, MTS, or COM+
APPLIES TO
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Internet Information Server 4.0
- Microsoft Internet Information Services 5.0
- Microsoft Internet Information Services 6.0
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate