How to: Register the Core Notification Services Assembly for COM Interop

SQL Server Setup

The Notification Services API was developed in managed code. However, many classes in the Microsoft.SqlServer.NotificationServices.dll assembly can be used from unmanaged code through COM interop. Setup registers this assembly for COM interop. If you have to reregister this assembly, follow the instructions in the following section.

Other Notification Services assemblies do not support COM interop.

To register the core assembly for COM interop

  1. Open a Command Prompt window.

  2. Change the current directory to the Microsoft .NET Framework version 2.0 directory. In the following command, Replace N.N.N with the full .NET Framework version number.

    CD %WINDIR%\Microsoft.NET\Framework\v N.N.N

  3. Register the assembly using the following command:

    regasm /codebase /tlb "%ProgramFiles%\Microsoft SQL Server\90\NotificationServices\9.0.242\bin\microsoft.sqlserver.notificationservices.dll"

See Also

Concepts

Installing SQL Server Notification Services

Other Resources

COM Interop with Notification Services
Notification Services Installation How-to Topics