By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,763 Members | 1,641 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,763 IT Pros & Developers. It's quick & easy.

R e: "Access Denied" using Server "Serviced Component"

P: n/a
> I am seeing an 'Access Denied' exception when using a "Server" "Serviced Component"
..are...registered in the GAC ? yes.
..are...the parameters serializable?

um - parameters? - the method parameters? - yes think so - there's
only one and it's a 'string'

here's an example class that illustrates the problem:
(note - I also tried adding this: [assembly:
ApplicationAccessControl(Authentication=Authentica tionOption.None)])
using System;
using System.EnterpriseServices;
using System.Runtime.InteropServices;

[assembly: ApplicationName("BasicComponent")]
[assembly: Description("a most basic component and stuff")]
[assembly: ApplicationActivation(ActivationOption.Server)]

namespace Components
public interface IBasicComponent { string GetAString(string text); }

[ObjectPooling(true, 2, 4)]
public class BasicComponent : ServicedComponent, IBasicComponent
public BasicComponent() {}
public string GetAString(string text) { return(text.ToUpper()); }
Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.