Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP CreateObject fails on EXE COM Object

Status
Not open for further replies.

BeanDog

Programmer
Jul 15, 2000
60
0
0
US
I have created a COM object in an EXE COM project. I set
up IIS on my XP Pro system. I can create the object
easily in VB with CreateObject("..."), but when I try to
do Server.CreateObject("...") in a localhosted ASP page,
the site hangs and no information is sent down. It spawns
the .EXE (I can see it in Task Manager) but seems to hang
when creating the object. Again, the object works fine
from VB.

Any ideas?



~BenDilts( void );
 
Howdy,

I think there are some problems with rights here:
An ASP page creates the object with the rights of the IUSR_<Servername> user. The VB project creates the object with the userrights of the currently logged in user.
If you're reading from the registry, the IUSR_<Servername> user needs to have these rights (a guest cannot read the registry of p.e. HKEY_LOCAL_MACHINE)

So: read trough your code in the COM object and check for needed rights...

Greetz,
Kees

P.S. Watch share rights!!: I had problems accessing a Novell share with (amongst others) a database: it wasn't safe to give user IUSR_<servername> read rights on this particular Novell share, so the object couldn't access this database directly; I had to instantiate a MTS object which runs as a user that has the appropriate rights.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top