473,412 Members | 2,005 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,412 software developers and data experts.

ASP & COM+'s enable object construction

I have a site that has been working for a few years now. the web site
is using a DB Access DLL written in VB. the DB's connection string is
passed to the DLL using the COM+ enable object construction option and
using CreateObject in the ASP code.

we are now trying to install this application on a new server and we
have a very strange problem:

Server info: Win2K SP4. the COM+ package is a server package with
identity set to be the administrator.

When the ASP page is trying to call createobject the call runs fine
even though it is not going through COM+ (if i look at the currently
running objects in my package, the count is 0) and the connection
string is empty since no construction string was passed to the DLL

if i run the same createobject call in a VBS file while logged in as
the administrator, it does go through COM+ and the connection string
is fine.

so obviously it is some kind of permissions problem but i do not know
where. i have tried setting the IIS's site to use the administrators
account for anonymous access but that did not solve the problem.

any ideas anyone?
Jul 19 '05 #1
4 2714
Sometimes we have to create a user belonging to administrators group and
then put this user to the COM+ package.

"Dan Avni" <da*****@officecore.com> wrote in message
news:fc**************************@posting.google.c om...
I have a site that has been working for a few years now. the web site
is using a DB Access DLL written in VB. the DB's connection string is
passed to the DLL using the COM+ enable object construction option and
using CreateObject in the ASP code.

we are now trying to install this application on a new server and we
have a very strange problem:

Server info: Win2K SP4. the COM+ package is a server package with
identity set to be the administrator.

When the ASP page is trying to call createobject the call runs fine
even though it is not going through COM+ (if i look at the currently
running objects in my package, the count is 0) and the connection
string is empty since no construction string was passed to the DLL

if i run the same createobject call in a VBS file while logged in as
the administrator, it does go through COM+ and the connection string
is fine.

so obviously it is some kind of permissions problem but i do not know
where. i have tried setting the IIS's site to use the administrators
account for anonymous access but that did not solve the problem.

any ideas anyone?

Jul 19 '05 #2
Even if i put the administrator himself? what is the diffrence between
the administrator and another member of the admins group?

thx for the quick reply!

Dan Avni
OfficeCore

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3
Well as it turns out (and don't ask me why)
after restarting the PC everything was suddenly working (Call it an act
of god or another great feature of Windows)

thanks all!

Dan Avni
OfficeCore

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #4
i made an "IdentityCOM_User"
belonging to "users" and "guest"
like "SYSTEM" account
....still works....

--
atte,
Hernán Castelo
UTN - Buenos Aires
.. . . . . . . . . . . . . . . . . . . . . . . . . .
.. . . .

"Antes de poner caco-citas al final de los mensajes, pensemos un poco"
(de El chamán de Calidelphia,
opus póstuma de Kânr Djkmilÿa)

"Dan Avni" <da*****@officecore.com> escribió en el mensaje
news:ud**************@TK2MSFTNGP09.phx.gbl...
Well as it turns out (and don't ask me why)
after restarting the PC everything was suddenly working (Call it an act
of god or another great feature of Windows)

thanks all!

Dan Avni
OfficeCore

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #5

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

Similar topics

3
by: Mick Turner | last post by:
I have connected to SQL Server database (server-side vbscript) and read some data from the tables. This works correctly. I now have the data in an array (server-side). I have to draw a...
4
by: Jerivix Entadi | last post by:
I'm attempting to create an application to work with a fluid database of people. I'm doing this in a command line, text-based manner. I need to know two things: 1) How do I save data, perhaps a...
25
by: Victor Bazarov | last post by:
In the project I'm maintaining I've seen two distinct techniques used for returning an object from a function. One is AType function(AType const& arg) { AType retval(arg); // or default...
27
by: Daniel Vallstrom | last post by:
I'm having problems with inconsistent floating point behavior resulting in e.g. assert( x > 0.0 && putchar('\n') && x == 0.0 ); holding. (Actually, my problem is the dual one where I get...
1
by: ratnakarp | last post by:
Hi, I have a search text box. The user enters the value in the text box and click on enter button. In code behind on button click i'm writing the code to get the values from the database and...
10
by: Immortalist | last post by:
Various aquisition devices that guide learning along particular pathways towards human biases. And as E.O. Wilson might say mental development appears to be genetically constrained. (1) Language...
3
by: Nindi73 | last post by:
Hi, I am in need of a deep copy smart pointer (Boost doesn't provide one) which doesnt require the contained types to have a virtual copy constructor. I wrote a smart pointer class that I think...
30
by: Alf P. Steinbach | last post by:
I once suggested in that SomeOne Else(TM) should propose a string value class that accepted literals and char pointers and so on, with possible custom deleter, and in case of literal strings just...
3
by: Donald A. Fisher | last post by:
Hello. I've been working a vb project and have a form with a button on it that performs some actions after disabling the button when clicked: Code disabling button and starting actions: Private...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.