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.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
[quoted text, click to view] <ooo> wrote in message news:%2333A5hDuDHA.2248@TK2MSFTNGP09.phx.gbl...
> 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
>
> "Willy Denoyette [MVP]" <willy.denoyette@pandora.be> wrote in message
> news:u6q9ZWCuDHA.3436@tk2msftngp13.phx.gbl...
> > Try first to use it from a console program.
> >
> > Willy.
> >
> > <ooo> wrote in message news:eJCkmCBuDHA.620@TK2MSFTNGP10.phx.gbl...
> > > I have a class that has the COM+ attributes to make it an object pool
> and
> > > transactional, I have strong-named the DLL and all the DLL's that it
> uses.
> > >
> > > I have used regsvcs.exe to register it in the COM+ catalog, I can see
it
> > in
> > > the catalog but.....
> > >
> > > When I use it from a web service I get the following error when
> attempting
> > > to create the object in the web service
> > >
> > > 'The ServicedComponent being invoked is not correctly configured (Use
> > > RegSvcs to re-register).'
> > >
> > > I am using framework 1.1 with Windows 2000 Server SP3
> > >
> > > Any Ideas?
> > >
> > > Cheers
> > >
> > > Ollie
> > >
> > >
> >
> >
>
>