|
|
|
date: Wed, 15 Feb 2006 13:17:27 -0800,
group: microsoft.public.exchange2000.development
back
Re: How To Deploy a COM+ EventSink Application
Hi Tom,
the AssemblyKeyFile is for the strongname. This is needed for the com+
application, and is a good thing to have for every assembly you build.
you should add these additional attributes:
[assembly: ApplicationActivation(ActivationOption.Server)]
[assembly: ApplicationName("DeckungsbeitragSync")]
[assembly: ApplicationAccessControl(false ,AccessChecksLevel =
AccessChecksLevelOption.Application)]
These attributes correspond to the COM+ options you can find in the COM+ MMC
snapin.
Greetings,
Henning Krause
"Tom Bennart" wrote in message
news:32A7557A-5E51-472A-94A9-0EC336EEB10B@microsoft.com...
> Hello again,
> can you please give me a short list of the needed attributes?
> Here is what I found so far:
> <Assembly: AssemblyKeyFile("myEventSink.key")>
> <Assembly: AssemblyKeyName("myEventSink")>
> <Assembly: ApplicationActivation(ActivationOption.Server)>
> <Assembly: ApplicationName("myEventSink")>
> I have no idea what these attributes are good for... ;-))
> Thank you.
>
> --
>
> Tom Bennart
>
>
> "Henning Krause [MVP]" wrote:
>
>> Hello,
>>
>> regsvr32 is for unmanaged dlls only.
>>
>> For managed dlls, use regasm.
>>
>> Another option is to use regsvcs, which will create a COM+ application
>> for
>> you if you placed the correct attributes into the assemblyinfo.vb.
>>
>> Greetings,
>> Henning Krause
>>
>>
>> "Tom Bennart" wrote in message
>> news:10BA4F1A-3236-4014-9A5F-3124CE72ACB2@microsoft.com...
>> > Hi,
>> >
>> > I successfully created, registered and tested a COM+ event sink with
>> > VB.NET.
>> > Everything works fine. Now I have to deploy it to the production
>> > system.
>> > After installing the msi package the event sink dll can not be
>> > registered
>> > using REGSVR32. An error message tells me that the entry point for
>> > registering the dll was not found.
>> > I used vsdrpCOM in the setup project.
>> > I didn't found any hints in Exchange SDK.
>> > Can anybody give some hints? Any advice appreciated.
>> >
>> > --
>> >
>> > Tom Bennart
>>
>>
>>
date: Thu, 16 Feb 2006 21:33:58 +0100
author: Henning Krause [MVP]
Re: How To Deploy a COM+ EventSink Application
Hi Henning,
using REGASM I successfully registered my COM+ event sink DLL. Thank you
very much.
But new trouble arises: I can't register the event using the Exchange
Explorer from the Exchange Server SDK. It tells me to create a COM+
application before, which I actually did the same way as on my developing
system...
I can't see any differences between the two procedures.
Do you have a hint?
--
Tom Bennart
"Henning Krause [MVP]" wrote:
> Hi Tom,
>
> the AssemblyKeyFile is for the strongname. This is needed for the com+
> application, and is a good thing to have for every assembly you build.
>
> you should add these additional attributes:
> [assembly: ApplicationActivation(ActivationOption.Server)]
> [assembly: ApplicationName("DeckungsbeitragSync")]
> [assembly: ApplicationAccessControl(false ,AccessChecksLevel =
> AccessChecksLevelOption.Application)]
> These attributes correspond to the COM+ options you can find in the COM+ MMC
> snapin.
>
> Greetings,
> Henning Krause
>
>
> "Tom Bennart" wrote in message
> news:32A7557A-5E51-472A-94A9-0EC336EEB10B@microsoft.com...
> > Hello again,
> > can you please give me a short list of the needed attributes?
> > Here is what I found so far:
> > <Assembly: AssemblyKeyFile("myEventSink.key")>
> > <Assembly: AssemblyKeyName("myEventSink")>
> > <Assembly: ApplicationActivation(ActivationOption.Server)>
> > <Assembly: ApplicationName("myEventSink")>
> > I have no idea what these attributes are good for... ;-))
> > Thank you.
> >
> > --
> >
> > Tom Bennart
> >
> >
> > "Henning Krause [MVP]" wrote:
> >
> >> Hello,
> >>
> >> regsvr32 is for unmanaged dlls only.
> >>
> >> For managed dlls, use regasm.
> >>
> >> Another option is to use regsvcs, which will create a COM+ application
> >> for
> >> you if you placed the correct attributes into the assemblyinfo.vb.
> >>
> >> Greetings,
> >> Henning Krause
> >>
> >>
> >> "Tom Bennart" wrote in message
> >> news:10BA4F1A-3236-4014-9A5F-3124CE72ACB2@microsoft.com...
> >> > Hi,
> >> >
> >> > I successfully created, registered and tested a COM+ event sink with
> >> > VB.NET.
> >> > Everything works fine. Now I have to deploy it to the production
> >> > system.
> >> > After installing the msi package the event sink dll can not be
> >> > registered
> >> > using REGSVR32. An error message tells me that the entry point for
> >> > registering the dll was not found.
> >> > I used vsdrpCOM in the setup project.
> >> > I didn't found any hints in Exchange SDK.
> >> > Can anybody give some hints? Any advice appreciated.
> >> >
> >> > --
> >> >
> >> > Tom Bennart
> >>
> >>
> >>
>
>
>
date: Mon, 20 Feb 2006 13:36:26 -0800
author: Tom Bennart
Re: How To Deploy a COM+ EventSink Application
Hello,
have you actually examined if a COM+ application was created?
regasm only registers the class in the registry.
I recommend you use regsvcs instead, this will create a COM+ application for
you.
Greetings,
Henning
"Tom Bennart" wrote in message
news:AEAB5E83-168E-4F95-82D3-142D0E8A4093@microsoft.com...
> Hi Henning,
> using REGASM I successfully registered my COM+ event sink DLL. Thank you
> very much.
> But new trouble arises: I can't register the event using the Exchange
> Explorer from the Exchange Server SDK. It tells me to create a COM+
> application before, which I actually did the same way as on my developing
> system...
> I can't see any differences between the two procedures.
> Do you have a hint?
> --
>
> Tom Bennart
>
>
> "Henning Krause [MVP]" wrote:
>
>> Hi Tom,
>>
>> the AssemblyKeyFile is for the strongname. This is needed for the com+
>> application, and is a good thing to have for every assembly you build.
>>
>> you should add these additional attributes:
>> [assembly: ApplicationActivation(ActivationOption.Server)]
>> [assembly: ApplicationName("DeckungsbeitragSync")]
>> [assembly: ApplicationAccessControl(false ,AccessChecksLevel =
>> AccessChecksLevelOption.Application)]
>> These attributes correspond to the COM+ options you can find in the COM+
>> MMC
>> snapin.
>>
>> Greetings,
>> Henning Krause
>>
>>
>> "Tom Bennart" wrote in message
>> news:32A7557A-5E51-472A-94A9-0EC336EEB10B@microsoft.com...
>> > Hello again,
>> > can you please give me a short list of the needed attributes?
>> > Here is what I found so far:
>> > <Assembly: AssemblyKeyFile("myEventSink.key")>
>> > <Assembly: AssemblyKeyName("myEventSink")>
>> > <Assembly: ApplicationActivation(ActivationOption.Server)>
>> > <Assembly: ApplicationName("myEventSink")>
>> > I have no idea what these attributes are good for... ;-))
>> > Thank you.
>> >
>> > --
>> >
>> > Tom Bennart
>> >
>> >
>> > "Henning Krause [MVP]" wrote:
>> >
>> >> Hello,
>> >>
>> >> regsvr32 is for unmanaged dlls only.
>> >>
>> >> For managed dlls, use regasm.
>> >>
>> >> Another option is to use regsvcs, which will create a COM+ application
>> >> for
>> >> you if you placed the correct attributes into the assemblyinfo.vb.
>> >>
>> >> Greetings,
>> >> Henning Krause
>> >>
>> >>
>> >> "Tom Bennart" wrote in message
>> >> news:10BA4F1A-3236-4014-9A5F-3124CE72ACB2@microsoft.com...
>> >> > Hi,
>> >> >
>> >> > I successfully created, registered and tested a COM+ event sink with
>> >> > VB.NET.
>> >> > Everything works fine. Now I have to deploy it to the production
>> >> > system.
>> >> > After installing the msi package the event sink dll can not be
>> >> > registered
>> >> > using REGSVR32. An error message tells me that the entry point for
>> >> > registering the dll was not found.
>> >> > I used vsdrpCOM in the setup project.
>> >> > I didn't found any hints in Exchange SDK.
>> >> > Can anybody give some hints? Any advice appreciated.
>> >> >
>> >> > --
>> >> >
>> >> > Tom Bennart
>> >>
>> >>
>> >>
>>
>>
>>
date: Mon, 20 Feb 2006 22:57:38 +0100
author: Henning Krause [MVP]
Re: How To Deploy a COM+ EventSink Application
Great, it works. Thank you once again.
The created COM+ application doesn't use the name I gave it, but it doesn't
matter.
Surprisingly this application shows me all interfaces.
The manually created application didn't show me any interfaces as well as
the COM+ application on my developing machine. But on my developing machine
everything works fine. Strange world...
Ciao.
--
Tom Bennart
"Henning Krause [MVP]" wrote:
> Hello,
>
> have you actually examined if a COM+ application was created?
>
> regasm only registers the class in the registry.
>
> I recommend you use regsvcs instead, this will create a COM+ application for
> you.
>
> Greetings,
> Henning
>
>
> "Tom Bennart" wrote in message
> news:AEAB5E83-168E-4F95-82D3-142D0E8A4093@microsoft.com...
> > Hi Henning,
> > using REGASM I successfully registered my COM+ event sink DLL. Thank you
> > very much.
> > But new trouble arises: I can't register the event using the Exchange
> > Explorer from the Exchange Server SDK. It tells me to create a COM+
> > application before, which I actually did the same way as on my developing
> > system...
> > I can't see any differences between the two procedures.
> > Do you have a hint?
> > --
> >
> > Tom Bennart
> >
> >
> > "Henning Krause [MVP]" wrote:
> >
> >> Hi Tom,
> >>
> >> the AssemblyKeyFile is for the strongname. This is needed for the com+
> >> application, and is a good thing to have for every assembly you build.
> >>
> >> you should add these additional attributes:
> >> [assembly: ApplicationActivation(ActivationOption.Server)]
> >> [assembly: ApplicationName("DeckungsbeitragSync")]
> >> [assembly: ApplicationAccessControl(false ,AccessChecksLevel =
> >> AccessChecksLevelOption.Application)]
> >> These attributes correspond to the COM+ options you can find in the COM+
> >> MMC
> >> snapin.
> >>
> >> Greetings,
> >> Henning Krause
> >>
> >>
> >> "Tom Bennart" wrote in message
> >> news:32A7557A-5E51-472A-94A9-0EC336EEB10B@microsoft.com...
> >> > Hello again,
> >> > can you please give me a short list of the needed attributes?
> >> > Here is what I found so far:
> >> > <Assembly: AssemblyKeyFile("myEventSink.key")>
> >> > <Assembly: AssemblyKeyName("myEventSink")>
> >> > <Assembly: ApplicationActivation(ActivationOption.Server)>
> >> > <Assembly: ApplicationName("myEventSink")>
> >> > I have no idea what these attributes are good for... ;-))
> >> > Thank you.
> >> >
> >> > --
> >> >
> >> > Tom Bennart
> >> >
> >> >
> >> > "Henning Krause [MVP]" wrote:
> >> >
> >> >> Hello,
> >> >>
> >> >> regsvr32 is for unmanaged dlls only.
> >> >>
> >> >> For managed dlls, use regasm.
> >> >>
> >> >> Another option is to use regsvcs, which will create a COM+ application
> >> >> for
> >> >> you if you placed the correct attributes into the assemblyinfo.vb.
> >> >>
> >> >> Greetings,
> >> >> Henning Krause
> >> >>
> >> >>
> >> >> "Tom Bennart" wrote in message
> >> >> news:10BA4F1A-3236-4014-9A5F-3124CE72ACB2@microsoft.com...
> >> >> > Hi,
> >> >> >
> >> >> > I successfully created, registered and tested a COM+ event sink with
> >> >> > VB.NET.
> >> >> > Everything works fine. Now I have to deploy it to the production
> >> >> > system.
> >> >> > After installing the msi package the event sink dll can not be
> >> >> > registered
> >> >> > using REGSVR32. An error message tells me that the entry point for
> >> >> > registering the dll was not found.
> >> >> > I used vsdrpCOM in the setup project.
> >> >> > I didn't found any hints in Exchange SDK.
> >> >> > Can anybody give some hints? Any advice appreciated.
> >> >> >
> >> >> > --
> >> >> >
> >> >> > Tom Bennart
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
>
>
>
date: Mon, 20 Feb 2006 14:32:03 -0800
author: Tom Bennart
|
|