You receive a build error message when you try to build a .NET Framework SDK ObjectPooling sample program (834061)
The information in this article applies to:
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Professional Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Academic Edition
SYMPTOMSIn Microsoft Visual Studio .NET, when you try to build a
Microsoft .NET Framework Software Development Kit (SDK) ObjectPooling sample program, you may receive
the following build error: 'Public Overridable
Overloads Sub Dispose()' is declared in project
'System.EnterpriseServices.dll', which is not referenced by project
'OPDemo.exe'. CAUSEThis problem occurs if
the System.EnterpriseServices assembly is not available as a project reference while you compile the ObjectPooling sample program.
WORKAROUNDTo work around this problem, follow these steps:
- Locate and then open the ObjectPoolingVB.sln file.
Note The ObjectPoolingVB.sln file is typically located in the following folders.
Microsoft Visual Studio .NET 2003C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\Samples\Technologies\ComponentServices\ObjectPooling\VB Any other version of Microsoft Visual Studio .NETC:\Program
Files\Microsoft Visual Studio
.NET\FrameworkSDK\Samples\Technologies\ComponentServices\ObjectPooling\VB - In Solution Explorer, open the
OPFormVB project.
- Right-click References, and then click Add Reference.
The Add Reference dialog box
appears. - Click the .NET tab, and then click
System.EnterpriseServices.
- Click Select.
The System.EnterpriseServices dynamic link library (DLL)
appears in the Selected Components box. - Click OK.
REFERENCESFor more information, visit the following Microsoft
Web sites:
Modification Type: | Minor | Last Reviewed: | 2/3/2006 |
---|
Keywords: | kbvs2005doesnotapply kbvs2005swept kbCOMPlusCatalog kbCompModel kbCOMServices kbprb KB834061 kbAudDeveloper |
---|
|