473,387 Members | 1,362 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,387 software developers and data experts.

Give access to a COM component

Hi there,

this is certainly not the right NG, anyway... I need to launch a registered
COM component from within an Asp.Net web page, with the worker process. But
this is impossible since the aspnet account isn't authorize for this.
How can I change that ?

Best regards

Aug 28 '08 #1
10 981
"Oriane" <or****@noemail.noemailwrote in message
news:OZ*************@TK2MSFTNGP06.phx.gbl...
this is certainly not the right NG, anyway... I need to launch a
registered COM component from within an Asp.Net web page, with the worker
process. But this is impossible since the aspnet account isn't authorize
for this.
How can I change that ?
Presumably, you mean that you need to launch the COM component on the
server, not the client browser, otherwise you wouldn't be talking about the
ASPNET account...?

If so, what you need here is impersonation:
http://www.google.co.uk/search?sourc...+impersonation
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 28 '08 #2
Hello Mark,
"Mark Rae [MVP]" <ma**@markNOSPAMrae.neta écrit dans le message de
news:%2****************@TK2MSFTNGP04.phx.gbl...
"Oriane" <or****@noemail.noemailwrote in message
news:OZ*************@TK2MSFTNGP06.phx.gbl...

Presumably, you mean that you need to launch the COM component on the
server, not the client browser, otherwise you wouldn't be talking about
the ASPNET account...?
Yes indeed...
If so, what you need here is impersonation:
http://www.google.co.uk/search?sourc...+impersonation
Yes. It is already done. However even if I use impersonation, I would like
to know how to control the ACL on a COM component.
Another question: if I use a builin/domain account to impersonate the site,
how van I be sure that it would be authorize to launch the Com component ?

Thanks for your answer.

Aug 28 '08 #3

Yes. It is already done. However even if I use impersonation, I would like
to know how to control the ACL on a COM component.
Another question: if I use a builin/domain account to impersonate the
site, how van I be sure that it would be authorize to launch the Com
component ?
If it is local user account on the server, the local admin would be the one
to set permissions;
if it is domain account, the domain admin is the one to do it.
>
Thanks for your answer.
Aug 28 '08 #4
Hi Norman,
"Norman Yuan" <Fa******@FakeEmail.Nota écrit dans le message de
news:%2****************@TK2MSFTNGP05.phx.gbl...
>
If it is local user account on the server, the local admin would be the
one to set permissions;
if it is domain account, the domain admin is the one to do it.
Yes for sure but you don't answer my question...

Best regards

Aug 28 '08 #5
"Oriane" <or****@noemail.noemailwrote in message
news:O6**************@TK2MSFTNGP04.phx.gbl...
Yes. It is already done. However even if I use impersonation, I would like
to know how to control the ACL on a COM component.
I'm not sure I know what you mean... You administer the account which
ASP.NET impersonates just like you would administer any other account i.e.
with the MMC snap-in...
Another question: if I use a builin/domain account to impersonate the
site, how van I be sure that it would be authorize to launch the Com
component ?
Again, I think you've got this backwards. You need to provide whatever
permissions etc are required for the COM component in question...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 28 '08 #6

"Mark Rae [MVP]" <ma**@markNOSPAMrae.neta écrit dans le message de
news:eP**************@TK2MSFTNGP02.phx.gbl...
Again, I think you've got this backwards. You need to provide whatever
permissions etc are required for the COM component in question...
Yes I want to know how you set the permissions. I know how to set
permissions on files, but not on COM component.

Aug 28 '08 #7
"Oriane" <or****@noemail.noemailwrote in message
news:ey**************@TK2MSFTNGP05.phx.gbl...
>Again, I think you've got this backwards. You need to provide whatever
permissions etc are required for the COM component in question...
Yes I want to know how you set the permissions. I know how to set
permissions on files, but not on COM component.
You assign permissions to the account which will be used to call the COM
component...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 28 '08 #8

"Oriane" <or****@noemail.noemailwrote in message
news:ey**************@TK2MSFTNGP05.phx.gbl...
>
"Mark Rae [MVP]" <ma**@markNOSPAMrae.neta écrit dans le message de
news:eP**************@TK2MSFTNGP02.phx.gbl...
Again, I think you've got this backwards. You need to provide whatever
permissions etc are required for the COM component in question...
Yes I want to know how you set the permissions. I know how to set
permissions on files, but not on COM component.
Unless the COM component is actually a DCOM component or is placed in a COM+
application there is no other place to set permissions for access to the
component than on the dll file itself.

However the component may then attempt to access other resources which may
also require permissions.

--
Anthony Jones - MVP ASP/ASP.NET
Aug 28 '08 #9
Hi Anthony,
"Anthony Jones" <An*@yadayadayada.coma écrit dans le message de
news:eo****************@TK2MSFTNGP03.phx.gbl...
>
>>

Unless the COM component is actually a DCOM component or is placed in a
COM+
application there is no other place to set permissions for access to the
component than on the dll file itself.
It could be the case since setting permissions on the exe (it's not a DLL)
has no effect, and my web service is unable to start it, unless I
impersonate it with a local account. Now that's why I'm a bit "out of topic"
but I don't know a relevant NG.

Here's the error I get (translated from french :-( ):

System.UnauthorizedAccessException: The "providing" of the COM class
factory for the component with CLSID {DFDB36F2-7A63-4112-B9C5-D01155AB7254}
has failed; error: 80070005.
à System.RuntimeTypeHandle.CreateInstance(RuntimeTyp e type, Boolean
publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle&
ctor, Boolean& bNeedSecurityCheck)
à System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean
fillCache)
à System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean
skipVisibilityChecks, Boolean fillCache)
à System.Activator.CreateInstance(Type type, Boolean nonPublic)
à System.Activator.CreateInstance(Type type)

Aug 29 '08 #10
I have authorize the COM component via the DCOM configuration tool for
Network service, and it seems to work now...

Thanks again for your help and next time, I will try to make myself clear !!

Oriane

Aug 29 '08 #11

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

Similar topics

11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
3
by: Ian | last post by:
The beginning of my assembly that I am getting the access error from looks like this. ********************************* Imports System.EnterpriseServices Imports System Imports...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
20
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to...
6
by: F-13 | last post by:
I'm working on a BOM in Access 200 from an example downloaded from from the web. The sample database contains three tables, Assemblies (the list of items needed to assemble any assembly),...
9
by: Stan | last post by:
Here is my scenario: Web server ------------ Framework 1.1 Application proxy for the serviced component Component server ------------------- Framework 1.0
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
0
by: m.posseth | last post by:
Hello All , I encounter the following strange situation ,,, I have developed a remoting component , this functions fine ,,, however a customer wanted to have the ability to access this...
0
by: p.thorn.ru | last post by:
Hello, I am running db2 express-c 9.5 under linux (fedora 7), and my error log frequently shows messages like these: 2008-01-08-18.30.01.952964+180 I651334G1048 LEVEL: Error (OS) PID ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.