473,326 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

COM+ SecureMethod attribute issue

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
Jul 21 '05 #1
4 1382
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.

Jul 21 '05 #2
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.

Jul 21 '05 #3
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.
Jul 21 '05 #4
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=?=" <Ce****************@nospam.com>
| 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.
|

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: David | last post by:
I am trying to use COM+ security in a C# class by applying the ComponentAccessControl attribute to the class, along with SecurityRole attributes for any roles that I want to have access to the...
12
by: robertbrown1971 | last post by:
My company is working on a bond derivative portfolio analysis tool and we're facing a problem that I did not see adequately addressed any where in literature. I really did RTFM. I'm very...
4
by: DU | last post by:
I am looking for opinions on the issue of length of title attribute. First of all, the current HTML 4.01 spec is rather vague on this issue... at least, it isn't explicit nor normative. The HTML...
4
by: David | last post by:
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...
3
by: Brian | last post by:
Hope someone can help ..... Have a function which creates a HTML HREF function fLink(aText) { return '<a href=javascript:DoLinkSearch("'+aText+'")>'+aText+'</a>'; } If the parameter value is...
10
by: Bryce Calhoun | last post by:
Hello, First of all, this is a .NET 1.1 component I'm creating. SUMMARY ----------------------- This component that I'm creating is, for all intents and purposes, a document parser (I'm...
3
by: Nicolas | last post by:
Hi everybody, I'm stuck for a couple of days now to the following issue, concerning fixed/default attributes and multiple namespaces. Any help would be greatly appreciated... I'm using Xerces...
6
by: kenundrum | last post by:
Hey all, I am having an issue with XML/XSLT and JavaScript in my ASP.NET page that I am creating. I first want to apologize if i placed this in the wrong category. Since there were three different...
3
by: Queez | last post by:
I have an issue with an ASP repeater which is seriously frustrating me. In simple terms, I have an ASP repeater which is meant to display a list of items for a wedding list, including the name of...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.