Article ID: 255973 - Last Review: October 15, 2002 - Revision: 1.0

FIX: Exporting Application Proxy in COM+ Gives Export Application Error

This article was previously published under Q255973

On This Page

Expand all | Collapse all

SYMPTOMS

When both a dynamic-link library (DLL) that contains a typelib and the typelib itself are imported in an application in the COM+ component services, exporting the application as an application proxy gives the following error message:
Export Application
Error occurred writing to the application file. Either the path cannot be accessed or an existing file cannot be overwritten. Make sure you entered the full path for the application definition file. The application was not exported.
This problem does not occur under Microsoft Transaction Server (MTS) on Microsoft Windows NT 4.0.

RESOLUTION

To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
260910  (http://support.microsoft.com/kb/260910/EN-US/ ) How to Obtain the Latest Windows 2000 Service Pack

WORKAROUND

You can use one of the following methods to work around this problem:
  • Remove the typelib from the DLL.
  • Do not import the typelib file into the application.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 2.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Generate a DLL (Test.dll) with a build-in typelib (for example, by using Visual Basic or Visual C++/ATL).
  2. Create a new COM+ application.
  3. Drag and drop both the DLL and the typelib in the COM+ application.
  4. Export the COM+ application as an application proxy.

REFERENCES

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
292184  (http://support.microsoft.com/kb/292184/EN-US/ ) HOWTO: Create a COM+ Application Proxy That Installs Only Type Library Files

APPLIES TO
  • Microsoft COM+ 1.0
Keywords: 
kbbug kberrmsg kbfix kbsysadmin kbwin2000presp2fix KB255973
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations