Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Webservices and servicedcomponents?

Reply
Thread Tools

Webservices and servicedcomponents?

 
 
Mats-Erik Grundh
Guest
Posts: n/a
 
      10-22-2003
Webservices and servicedcomponents?

I have developed a application with a webservice and a serviced component
that updates the database. When i run my webservice in Visual Studio 2003 i
receive an exception, System.EnterpriseServices.RegistrationException:
Failed to register assembly.

Is it possible to configure the permission to allow registration of Serviced
Components from within Visual Studio 2003?

Thanks in advance!


 
Reply With Quote
 
 
 
 
Mats-Erik Grundh
Guest
Posts: n/a
 
      10-22-2003
When i run the application within Visual Studio 2003 without the
web-service:

A "Windows Form" that calls a "Serviced Component". It all selfregister in
com+ without any problems.


"Mats-Erik Grundh" <> wrote in message
news:%...
> Webservices and servicedcomponents?
>
> I have developed a application with a webservice and a serviced component
> that updates the database. When i run my webservice in Visual Studio 2003

i
> receive an exception, System.EnterpriseServices.RegistrationException:
> Failed to register assembly.
>
> Is it possible to configure the permission to allow registration of

Serviced
> Components from within Visual Studio 2003?
>
> Thanks in advance!
>
>



 
Reply With Quote
 
 
 
 
Mats-Erik Grundh
Guest
Posts: n/a
 
      10-22-2003
I also think its a bad idea tha "web user" dynamically register com+ apps.
I dont use lazy registration in the production enviromnet, i use a setup
program to register serviced components.

What you are saying is that you first have to this step everytime you open
the Visual Studio 2003:

1) Build all your serviced components.
2) manually register regsvs on each assmebly.
3) Ready to rumble with your Webservices

Regards

Mats-Erik

"Christian Weyer" <_eyesoft_sucks.de> wrote in message
news:%...
> This is clearly a security restriction - and this is fine! Imagine every
> "web user" could just step in and dynamically register any COM+/ES app ...
> Well, dynamic or lazy registration of ES apps is only allowed by users of
> the Administrators group.
> You should not use lazy reg. in production coide, please be sure to

leverage
> regsvs.exe.
>
> * It is bad practice to let the ASPNET user dyamically register an ES app
> (e.g. when you add it to the Admin group) !!!*
>
> Cheers,
> --
> Christian Weyer
> [Microsoft Regional Director, Germany]
> [MVP ASP.NET & XML Web Services]
>
> ** XML Web Services: http://www.xmlwebservices.cc/
> ** Weblog: http://weblogs.asp.net/cweyer/
>
>
>
> "Mats-Erik Grundh" <> wrote in message
> news:#...
> > Webservices and servicedcomponents?
> >
> > I have developed a application with a webservice and a serviced

component
> > that updates the database. When i run my webservice in Visual Studio

2003
> i
> > receive an exception, System.EnterpriseServices.RegistrationException:
> > Failed to register assembly.
> >
> > Is it possible to configure the permission to allow registration of

> Serviced
> > Components from within Visual Studio 2003?
> >
> > Thanks in advance!
> >
> >

>
>



 
Reply With Quote
 
Mats-Erik Grundh
Guest
Posts: n/a
 
      10-23-2003
Do You have an example of how that project/commandfile can look like?
How do you catch the post-build event?

Regards,

Mats-Erik Grundh

"Christian Weyer" <_eyesoft_sucks.de> wrote in message
news:...
> I always have a post-build event batch file in my ES projects. They do all
> the gacutil and regsvcs stuff for me - this is great.
>
> Cheers,
> --
> Christian Weyer
> [Microsoft Regional Director, Germany]
> [MVP ASP.NET & XML Web Services]
>
> ** XML Web Services: http://www.xmlwebservices.cc/
> ** Weblog: http://weblogs.asp.net/cweyer/
>
>
>
> "Mats-Erik Grundh" <> wrote in message
> news:#...
> > I also think its a bad idea tha "web user" dynamically register com+

apps.
> > I dont use lazy registration in the production enviromnet, i use a setup
> > program to register serviced components.
> >
> > What you are saying is that you first have to this step everytime you

open
> > the Visual Studio 2003:
> >
> > 1) Build all your serviced components.
> > 2) manually register regsvs on each assmebly.
> > 3) Ready to rumble with your Webservices
> >
> > Regards
> >
> > Mats-Erik
> >
> > "Christian Weyer" <_eyesoft_sucks.de> wrote in message
> > news:%...
> > > This is clearly a security restriction - and this is fine! Imagine

every
> > > "web user" could just step in and dynamically register any COM+/ES app

> ...
> > > Well, dynamic or lazy registration of ES apps is only allowed by users

> of
> > > the Administrators group.
> > > You should not use lazy reg. in production coide, please be sure to

> > leverage
> > > regsvs.exe.
> > >
> > > * It is bad practice to let the ASPNET user dyamically register an ES

> app
> > > (e.g. when you add it to the Admin group) !!!*
> > >
> > > Cheers,
> > > --
> > > Christian Weyer
> > > [Microsoft Regional Director, Germany]
> > > [MVP ASP.NET & XML Web Services]
> > >
> > > ** XML Web Services: http://www.xmlwebservices.cc/
> > > ** Weblog: http://weblogs.asp.net/cweyer/
> > >
> > >
> > >
> > > "Mats-Erik Grundh" <> wrote in message
> > > news:#...
> > > > Webservices and servicedcomponents?
> > > >
> > > > I have developed a application with a webservice and a serviced

> > component
> > > > that updates the database. When i run my webservice in Visual Studio

> > 2003
> > > i
> > > > receive an exception,

System.EnterpriseServices.RegistrationException:
> > > > Failed to register assembly.
> > > >
> > > > Is it possible to configure the permission to allow registration of
> > > Serviced
> > > > Components from within Visual Studio 2003?
> > > >
> > > > Thanks in advance!
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
webservices and datasets androoo ASP .Net 3 08-06-2005 04:06 AM
Webservices and "pass through" security Tom ASP .Net 1 06-23-2005 02:43 AM
Webservices SOAP and Namespace prefixes =?Utf-8?B?Q29ybmUgUmFiZQ==?= ASP .Net 2 10-26-2004 11:07 AM
Async Webservices and Polling!! Jay ASP .Net 0 06-22-2004 02:35 PM
Webservices and OLE object jib ASP .Net 0 07-08-2003 03:10 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57