COM+ SecureMethod attribute issue

G

Guest

To give some background....I'm using COM+ security in my C# classes by applying the ComponentAccessControl, and SecureMethod attributes at class level. I also use the SecurityRole attributes for any roles that I want to have access to the whole class. I then also use the SecurityRole attribute at method level to grant access to specific methods for specific roles

My issue is that I have a separate assembly sitting in the GAC that contains a number of structs. These structs are populated from my within my application and are passed up to my middle tier and are used to update my database. Now when my UI, populates a struct, and attempts to call into my C# class (hosted in COM+), and I have set the [SecureMethod] attribute (at class level), my application fails with the following exception mesage; "An internal error occurred in a remote procedure call (RPC)". But as soon as I comment out the [SecureMethod] attribute, rebuild my class & add it back into COM+, I no longer get the above error

This error only appears to happen when I call into methods that use structs. I can call into other components, and the method fires successfully...

Any ideas

David
 
T

Tian Min Huang

Hello David,

Thanks for your post. I am look for appropriate resources to help you on
this issue, and we will update you with our information as soon as possible.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
S

Scott Mason [MSFT]

Hello.
I will be taking a look at this issue.
I haven't found any other instances of this particular error so I'm going
to try and set up a reproducable sample here.
Also, do you have error handling or tracing in this component? A stack
trace would be useful if we can get one.

Thank you,
Scott Mason
Microsoft

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

Guest

Scott

Apologies for not getting back to this thread
I envisage getting a trace within the next day or so, but as I'm embroiled in other things at present, I'll endeavour to look at posting something soon

Apologies once agai
Davi

P.S. If you prefer, we can consider this thread closed, and I'll start a new one, once I have my trace details, and I still see this SecureMethod problem.
 
J

John Eikanger [MSFT]

Hi, David

Scott is not available today. Please start a fresh post when you are ready
to resume work on this issue. When you post it would help us if you
mention that this is a continuation of 21410546. If not, we will get there
fine eventually

Thank you for choosing the MSDN Managed Newsgroups,

John Eikanger
Microsoft Developer Support

This posting is provided “AS IS” with no warranties, and confers no rights.
--------------------
| From: "=?Utf-8?B?RGF2aWQ=?=" <[email protected]>
| Subject: RE: COM+ SecureMethod attribute issue
| Date: Tue, 2 Mar 2004 04:36:05 -0800
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| Scott,

Apologies for not getting back to this thread.
I envisage getting a trace within the next day or so, but as I'm embroiled
in other things at present, I'll endeavour to look at posting something
soon.

Apologies once again
David

P.S. If you prefer, we can consider this thread closed, and I'll start a
new one, once I have my trace details, and I still see this SecureMethod
problem.
|
 
J

John Eikanger [MSFT]

Hi, David

Scott is researching based on the data you provided and will respond soon.

Thank you for choosing the MSDN Managed Newsgroups,

John Eikanger
Microsoft Developer Support

This posting is provided “AS IS” with no warranties, and confers no rights.
--------------------
| From: "=?Utf-8?B?RGF2aWQ=?=" <[email protected]>
| Subject: RE: COM+ SecureMethod attribute issue
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| Scott,

Apologies for not getting back to this thread.
I envisage getting a trace within the next day or so, but as I'm embroiled
in other things at present, I'll endeavour to look at posting something
soon.

Apologies once again
David

P.S. If you prefer, we can consider this thread closed, and I'll start a
new one, once I have my trace details, and I still see this SecureMethod
problem.
|
 
J

John Eikanger [MSFT]

Hi, David

I heard back from Scott, and the level of resources required to resolve
this issue is beyond the scope of what we can do to support a newsgroup
incident. If you wish to pursue this further, you will need to open a
standard support incident.

I'm sorry I could not provide you with a better resolution.,

John Eikanger
Microsoft Developer Support

This posting is provided “AS IS” with no warranties, and confers no rights.
--------------------
| From: (e-mail address removed) (John Eikanger [MSFT])
| Organization: Microsoft
| Date: Thu, 25 Mar 2004 22:53:48 GMT
| Subject: RE: COM+ SecureMethod attribute issue
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| Hi, David
|
| Scott is researching based on the data you provided and will respond soon.
|
| Thank you for choosing the MSDN Managed Newsgroups,
|
| John Eikanger
| Microsoft Developer Support
|
| This posting is provided “AS IS” with no warranties, and confers no
rights.
| --------------------
| | From: "=?Utf-8?B?RGF2aWQ=?=" <[email protected]>
| | Subject: RE: COM+ SecureMethod attribute issue
| | X-Tomcat-NG: microsoft.public.dotnet.general
| |
| | Scott,
|
| Apologies for not getting back to this thread.
| I envisage getting a trace within the next day or so, but as I'm
embroiled
| in other things at present, I'll endeavour to look at posting something
| soon.
|
| Apologies once again
| David
|
| P.S. If you prefer, we can consider this thread closed, and I'll start a
| new one, once I have my trace details, and I still see this SecureMethod
| problem.
| |
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top