- Manual registration: The .Net Framework Service Installation (Regsvcs.exe) tool is used to manually register an assembly containing a serviced component. Manual registration is used for design-time testing to find out the error types that may occur at runtime.
- Dynamic registration: In dynamic registration, as assembly with a serviced component is copied into the COM+ application's directory. Dynamic registration is used only when a serviced component is created by a managed client.
- Programmatic registration: Programmatic registration is used to register as assembly containing a serviced component programmatically by creating as instance of the RegistrationHelper class.
Friday, September 10, 2010
What is a serviced component?
A services component is a .Net component that uses component services of COM+, such as object pooling, transaction management etc. It executes within the managed execution environment of the .Net framework and shares its context with a COM+ application. It enables context sharing between COM+ and .Net framework classes. A serviced component is creates by defining class that directly or indirectly derives from the ServicesComponent class. It utilizes COM+ services by using attributes of the System.EnterpriseServices namespace. A serviced component should be registered before it can access the component services of COM+. The following three types of registrations are used to register a serviced component: