BUG: You may receive the "COM interop registration failed" error message when you try to rebuild the Visual C# Library application (821313)
The information in this article applies to:
- Microsoft Visual C# .NET (2003)
- Microsoft Visual C# .NET (2002)
SYMPTOMSWhen you try to rebuild a Visual C# Library application with the Register for COM Interop build property set to true in Visual Studio .NET, you may receive the following error message: COM Interop registration failed. Access is
denied. CAUSEThis problem may be caused by one of the following: - File Lock - Another instance of Visual Studio .NET holds a file lock to the type library (.tlb)
that was generated during the Visual C# Library application build.
- Registry Permissions - A problem with permissions in the registry prevents the generated type library from being registered or prevents the classes in the
assembly from being registered.
WORKAROUNDTo work around this problem, use one of the following methods: - Workaround for File Lock
- Close the instance
of Visual Studio .NET that currently holds the reference to the control.
- Close the instance of Visual Studio .NET.
- Rebuild the Visual C# Library application.
- Workaround for Registry Permissions - Modify the permissions with the help of Resource Kit tools (for example, Regini.exe).
For additional information about how to use Regini.exe to set permissions on registry keys, click the following article number to view the article in the Microsoft Knowledge Base:
237607
How to Use Regini.exe to Set Permissions on Registry Keys
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 1/19/2006 |
---|
Keywords: | kbide kbControl kbbug KB821313 kbAudDeveloper |
---|
|