PC Review


Reply
Thread Tools Rate Thread

COM+ SecureMethod attribute issue

 
 
=?Utf-8?B?RGF2aWQ=?=
Guest
Posts: n/a
 
      23rd Feb 2004
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
 
Reply With Quote
 
 
 
 
Tian Min Huang
Guest
Posts: n/a
 
      24th Feb 2004
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.

 
Reply With Quote
 
Scott Mason [MSFT]
Guest
Posts: n/a
 
      26th Feb 2004
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.

 
Reply With Quote
 
=?Utf-8?B?RGF2aWQ=?=
Guest
Posts: n/a
 
      2nd Mar 2004
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.
 
Reply With Quote
 
John Eikanger [MSFT]
Guest
Posts: n/a
 
      2nd Mar 2004
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=?=" <(E-Mail Removed)>
| 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.
|

 
Reply With Quote
 
John Eikanger [MSFT]
Guest
Posts: n/a
 
      25th Mar 2004
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=?=" <(E-Mail Removed)>
| 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.
|

 
Reply With Quote
 
John Eikanger [MSFT]
Guest
Posts: n/a
 
      30th Mar 2004
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 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=?=" <(E-Mail Removed)>
| | 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.
| |
|
|

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DllImport Attribute Issue =?Utf-8?B?U0FM?= Microsoft C# .NET 2 3rd May 2007 03:00 PM
ToolBoxBitMap attribute issue in 2.0? schneider Microsoft Dot NET Framework 0 6th Jul 2006 04:53 AM
Assembly attribute issue =?Utf-8?B?d2lsbGlhbQ==?= Microsoft Dot NET 0 19th Jan 2005 02:19 AM
SecureMethod and interfaces Robert Scheer Microsoft VB .NET 0 28th Mar 2004 04:24 PM
SecureMethod attribute =?Utf-8?B?Q2VudHJhbERldmVsb3BtZW50?= Microsoft Dot NET 0 17th Mar 2004 08:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:29 PM.