cheers willy, I am trying it in a coneoloe app now and it works....
But where would I put application config values that I normally put the in
the application.config file for a COM+ component?
I have tried putting them in the xml config fiel for my test harness but it
is not reading the values ?
Any one have any ideas?
Cheers
Ollie
> Try first to use it from a console program.
>
[quoted text clipped - 18 lines]
> >
> > Ollie
Ollie,
If it works in a console app and not an ASP.NET app, then you need to
configure the user in the web.config file for where the page resides (you
can impersonate a user for that directory, for example). Or, you can
imitate a user through code (look at the documentation for the Impersonate
method on the WindowsIdentity class for an example of how to do this).
Also, you could also set the security of the COM+ component so that it
allows all users to execute it (don't make it run in the context of the
currently logged in user, especially if this is running in IIS).
Hope this helps.

Signature
- Nicholas Paldino [.NET/C# MVP]
> cheers willy, I am trying it in a coneoloe app now and it works....
>
[quoted text clipped - 35 lines]
> > >
> > > Ollie
cheers Nick....
How can I use the app config setting that used to be stored in the
web.config xml file for the ASP.Net web service?
Cheers
Ollie
> Ollie,
>
[quoted text clipped - 51 lines]
> > > >
> > > > Ollie
Forget about this for a moment and return to your asp.net page and try to
run this in aspcomp mode.
> cheers willy, I am trying it in a coneoloe app now and it works....
>
[quoted text clipped - 35 lines]
> > >
> > > Ollie
thanks willy,
Got it working in the asp.net app, I used set the following attribute
[assembly: ApplicationAccessControl(false)] for the security options, I
presume this allows anonymous access to the COM+ component, Which is the
best to secure access to the COM+ component?
Cheers
Ollie
> Forget about this for a moment and return to your asp.net page and try to
> run this in aspcomp mode.
[quoted text clipped - 40 lines]
> > > >
> > > > Ollie