RE: My Serviced component doesn't expose any methods!



Hi Karre,

I'm still monitoring the issue, have you got any progress?

If there is anything else we can help, welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng [MSFT])
Organization: Microsoft
Date: Thu, 10 Apr 2008 04:29:37 GMT
Subject: RE: My Serviced component doesn't expose any methods!


Hi Karre,

Have you got any progress on this?
When you use regsvcs.exe to install the servicedcomponent into COM+
applications, it will create the COM+ application by the name you
specified
through

<Assembly:ApplicationName("...." )>

attribute(not the class name or assembly name), have you checked to see
whether there is a COM+ application with this name? Also, are you using an
administrator account when perform these tasks on the machine?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#noti
f
ications.

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: =?Utf-8?B?a2thcnJl?= <karre@xxxxxxxxxxxxxxxx>
References: <FB7340BE-9D32-468B-B037-38C3EEF146AE@xxxxxxxxxxxxx>
<JZQ$7bglIHA.3756@xxxxxxxxxxxxxxxxxxxxxx>
<6E5901C9-88E9-4887-B684-AC51C1EBC752@xxxxxxxxxxxxx>
<6980661C-663C-411F-B4F2-33C8836636C2@xxxxxxxxxxxxx>
<gb1SHvTmIHA.9932@xxxxxxxxxxxxxxxxxxxxxx>
<5D2DDD7B-9EC9-44CD-A340-1DD8ECFC351D@xxxxxxxxxxxxx>
<Dqm0euVmIHA.1036@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: My Serviced component doesn't expose any methods!
Date: Tue, 8 Apr 2008 03:51:01 -0700

I have used both regsvcs and the COM+ UI.
regsvcs returns a happy message but I can't see the COM+ application that
has the installed component.
The people that will maintain this solution wanted to see the COM+
application
and components/interface/methods in it, so I tried that with COM+
Management
console.
I'll try to read up on regsvcs to see how COM+ Management Console can
show
the
installed component!
Thanks!

"Steven Cheng [MSFT]" wrote:

Thanks for your reply Karre,

So the problem is at the Com+ registring stage. Why did you manually
register it into COM+ applications? As I mentioned in previous
messages,
in my test, I used the .NET framework regsvcs.exe tool to install the
serviced component into COM+ applications.

#.NET Services Installation Tool (Regsvcs.exe)
http://msdn2.microsoft.com/en-us/library/04za0hca(VS.80).aspx

The command is quite simple. For example, for my case the serviced
component is named "SVCCOMLib.dll", I just run the following command in
Visual Studio command prompt:

regsvcs.exe SVCCOMLib.dll

and it will automatically do all the things without requiring me to do
anything in the COM+ management console.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments
and
suggestions about how we can improve the support we provide to you.
Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#noti
f
ications.

This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
From: =?Utf-8?B?a2thcnJl?= <karre@xxxxxxxxxxxxxxxx>
References: <FB7340BE-9D32-468B-B037-38C3EEF146AE@xxxxxxxxxxxxx>
<JZQ$7bglIHA.3756@xxxxxxxxxxxxxxxxxxxxxx>
<6E5901C9-88E9-4887-B684-AC51C1EBC752@xxxxxxxxxxxxx>
<6980661C-663C-411F-B4F2-33C8836636C2@xxxxxxxxxxxxx>
<gb1SHvTmIHA.9932@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: My Serviced component doesn't expose any methods!
Date: Tue, 8 Apr 2008 00:24:00 -0700


Hi Steven, thanks for your reply!
I did apply the <Assembly:
ApplicationAccessControl(AccessChecksLevelOption.Application)> setting
in
my
component
but somehow it didn't "stick". It seems to take a while, maybe today...
Your component installs fine in GAC today, d&d or gacutil equally
works
fine.
However when I add it to a COM+ application in Component Services
there's
trouble: I get all interfaces, including the class interface
_TestClass.
All interfaces show their methods EXCEPT the class interface.

Am I adding it the wrong way? I use 'Install New Component' and I
browse
to
the
dll I used as original and drag'n'dropped it into GAC. The wizard
won't
let
me select the one inside the GAC.

As for VB6, my project is migrating a VB6 COM+ installed component of
30+
dlls.
The code is now in VB2005 but I thought that the Upgrade Wizard might
have
brought a component setting or something from VB6 to VB2005.

I've tried calling the component anyway but gets error of kind
"couldn't create ActiveX component". This might be because the VB2005
dll
references three COM components still in VS6/C++ through COMInterop.
Perhaps it's impossible to use COMInterop inside COM+?
Wouldn't be logical - that's the perfect place for COM Interop; large
enterprise apps
where you migrate step by step.

I'd be happy to try your code on my machine to rule out funny policies
or
something on my machine.

Thanks in advance!
/kk






.



Relevant Pages

  • Re: ASP.NET choose website project or web application project
    ... Steven Cheng ... Microsoft MSDN Online Support Lead ... You can send feedback directly to my manager at: ... Get notification to my posts through email? ...
    (microsoft.public.vsnet.general)
  • RE: How Do I use the C# Code Wizards?
    ... Microsoft MSDN Online Support Lead ... You can send feedback directly to my manager at: ... Get notification to my posts through email? ... This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.vsnet.ide)
  • Re: TFS2008 and VSTS2005
    ... Microsoft MSDN Online Support Lead ... You can send feedback directly to my manager at: ... Get notification to my posts through email? ... As for connecting TFS 2008 from VS 2005 client, ...
    (microsoft.public.vsnet.ide)
  • RE: Awareness of user control TestContainer
    ... Microsoft MSDN Online Support Lead ... You can send feedback directly to my manager at: ... Get notification to my posts through email? ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: My Serviced component doesnt expose any methods!
    ... Error code 80020009 turned up at one try, when trying to install into COM+. ... Microsoft MSDN Online Support Lead ... You can send feedback directly to my manager at: ... Based on my experience, for serviced component, you can check the ...
    (microsoft.public.dotnet.distributed_apps)

Loading