Connecting Tech Pros Worldwide Forums | Help | Site Map

trouble creating object in win 2000

mcmg
Guest
 
Posts: n/a
#1: Jul 22 '05
Hi,

I have an asp app that works fine on a windows xp machine but does not work
on a windows 2000 server.

I have the following code in my global.asa:

<OBJECT RUNAT=Server
SCOPE=SESSION
ID=MyID
PROGID="MyAppName.MyID">
</OBJECT>

I get the following error when trying to run my app:

Active Server Pages (0x8002802B)
An error occurred while creating object 'MyID'

Initial searches pointed me towards a permissions error but I still can't
find the problem (everybody has full permission to the app folder).

Once agian it works on windows xp machines running IIS 5.1 but does not
works on win 2000 IIS 5.0. I think I've changed every setting in IIS but
still can't get it to work.

Any suggestions on what might be the problem or how I can troubleshoot this?
I'd be happy to post whatever more info might be helpful. Thanks!

Michael

Jeff Cochran
Guest
 
Posts: n/a
#2: Jul 22 '05

re: trouble creating object in win 2000


On Wed, 5 Jan 2005 16:11:07 -0800, "mcmg"
<mcmg@discussions.microsoft.com> wrote:
[color=blue]
>Hi,
>
>I have an asp app that works fine on a windows xp machine but does not work
>on a windows 2000 server.
>
>I have the following code in my global.asa:
>
><OBJECT RUNAT=Server
> SCOPE=SESSION
> ID=MyID
> PROGID="MyAppName.MyID">
></OBJECT>
>
>I get the following error when trying to run my app:
>
>Active Server Pages (0x8002802B)
>An error occurred while creating object 'MyID'
>
>Initial searches pointed me towards a permissions error but I still can't
>find the problem (everybody has full permission to the app folder).[/color]

"Everybody" as in every user account or "Everybody" as in the group
Everybody, which doesn't inlcude the IUSR anonymous user account?
[color=blue]
>Once agian it works on windows xp machines running IIS 5.1 but does not
>works on win 2000 IIS 5.0. I think I've changed every setting in IIS but
>still can't get it to work.[/color]

What about NTFS permissions?
[color=blue]
>Any suggestions on what might be the problem or how I can troubleshoot this?
> I'd be happy to post whatever more info might be helpful. Thanks![/color]

Maybe:

http://www.aspfaq.com/show.asp?id=2323

Jeff
mcmg
Guest
 
Posts: n/a
#3: Jul 22 '05

re: trouble creating object in win 2000


Thanks for the reply,

IIS is set to Anonymous Access (IUSR Account), NTFS permissions (full
control) have been given to the group "Everyone" and the IIS accounts IUSR
and IWAM.

my object (a .dll build with powerbuilder9) registers successfully

" If you see an 8002802b error on any other COM object, make sure you are
using set objectName = Server.CreateObject("Valid.ProgID"). If you are using
an <OBJECT Progid=> tag, this error can be more likely to occur."
(http://www.aspfaq.com/show.asp?id=2323)

As per above, I tried setting my object in script rather than using an
object tag, still no luck.

Searches of error 8002802B have turned up a couple ideas but nothing that
has worked yet. Any other suggestions? Thanks...

Michael


"Jeff Cochran" wrote:
[color=blue]
> On Wed, 5 Jan 2005 16:11:07 -0800, "mcmg"
> <mcmg@discussions.microsoft.com> wrote:
>[color=green]
> >Hi,
> >
> >I have an asp app that works fine on a windows xp machine but does not work
> >on a windows 2000 server.
> >
> >I have the following code in my global.asa:
> >
> ><OBJECT RUNAT=Server
> > SCOPE=SESSION
> > ID=MyID
> > PROGID="MyAppName.MyID">
> ></OBJECT>
> >
> >I get the following error when trying to run my app:
> >
> >Active Server Pages (0x8002802B)
> >An error occurred while creating object 'MyID'
> >
> >Initial searches pointed me towards a permissions error but I still can't
> >find the problem (everybody has full permission to the app folder).[/color]
>
> "Everybody" as in every user account or "Everybody" as in the group
> Everybody, which doesn't inlcude the IUSR anonymous user account?
>[color=green]
> >Once agian it works on windows xp machines running IIS 5.1 but does not
> >works on win 2000 IIS 5.0. I think I've changed every setting in IIS but
> >still can't get it to work.[/color]
>
> What about NTFS permissions?
>[color=green]
> >Any suggestions on what might be the problem or how I can troubleshoot this?
> > I'd be happy to post whatever more info might be helpful. Thanks![/color]
>
> Maybe:
>
> http://www.aspfaq.com/show.asp?id=2323
>
> Jeff
>[/color]
Mark Schupp
Guest
 
Posts: n/a
#4: Jul 22 '05

re: trouble creating object in win 2000


to determine if it is a file security problem temporarily set the anonymous
user account to an administrator account (might need to re-start web
services).

If the app works then you will need to identify the files that do not have
the correct permissions for the IUSR account. They will not necessarily be
in the web directory. Most likely there are some dlls in the system
directory that the component relies on.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com


"mcmg" <mcmg@discussions.microsoft.com> wrote in message
news:3B6C34F4-AFDB-46E6-A41E-40022CC26429@microsoft.com...[color=blue]
> Thanks for the reply,
>
> IIS is set to Anonymous Access (IUSR Account), NTFS permissions (full
> control) have been given to the group "Everyone" and the IIS accounts IUSR
> and IWAM.
>
> my object (a .dll build with powerbuilder9) registers successfully
>
> " If you see an 8002802b error on any other COM object, make sure you are
> using set objectName = Server.CreateObject("Valid.ProgID"). If you are[/color]
using[color=blue]
> an <OBJECT Progid=> tag, this error can be more likely to occur."
> (http://www.aspfaq.com/show.asp?id=2323)
>
> As per above, I tried setting my object in script rather than using an
> object tag, still no luck.
>
> Searches of error 8002802B have turned up a couple ideas but nothing that
> has worked yet. Any other suggestions? Thanks...
>
> Michael
>
>
> "Jeff Cochran" wrote:
>[color=green]
> > On Wed, 5 Jan 2005 16:11:07 -0800, "mcmg"
> > <mcmg@discussions.microsoft.com> wrote:
> >[color=darkred]
> > >Hi,
> > >
> > >I have an asp app that works fine on a windows xp machine but does not[/color][/color][/color]
work[color=blue][color=green][color=darkred]
> > >on a windows 2000 server.
> > >
> > >I have the following code in my global.asa:
> > >
> > ><OBJECT RUNAT=Server
> > > SCOPE=SESSION
> > > ID=MyID
> > > PROGID="MyAppName.MyID">
> > ></OBJECT>
> > >
> > >I get the following error when trying to run my app:
> > >
> > >Active Server Pages (0x8002802B)
> > >An error occurred while creating object 'MyID'
> > >
> > >Initial searches pointed me towards a permissions error but I still[/color][/color][/color]
can't[color=blue][color=green][color=darkred]
> > >find the problem (everybody has full permission to the app folder).[/color]
> >
> > "Everybody" as in every user account or "Everybody" as in the group
> > Everybody, which doesn't inlcude the IUSR anonymous user account?
> >[color=darkred]
> > >Once agian it works on windows xp machines running IIS 5.1 but does not
> > >works on win 2000 IIS 5.0. I think I've changed every setting in IIS[/color][/color][/color]
but[color=blue][color=green][color=darkred]
> > >still can't get it to work.[/color]
> >
> > What about NTFS permissions?
> >[color=darkred]
> > >Any suggestions on what might be the problem or how I can troubleshoot[/color][/color][/color]
this?[color=blue][color=green][color=darkred]
> > > I'd be happy to post whatever more info might be helpful. Thanks![/color]
> >
> > Maybe:
> >
> > http://www.aspfaq.com/show.asp?id=2323
> >
> > Jeff
> >[/color][/color]


mcmg
Guest
 
Posts: n/a
#5: Jul 22 '05

re: trouble creating object in win 2000


good advice, I tried with an admin account and still no luck so it doesn't
look like a security issue...hmm, maybe it's just a general compatibility
issue my dll is having with win 2k, although it does register and I've made
sure all it's dependencies are present. argg, this is getting frustrating....

"Mark Schupp" wrote:
[color=blue]
> to determine if it is a file security problem temporarily set the anonymous
> user account to an administrator account (might need to re-start web
> services).
>
> If the app works then you will need to identify the files that do not have
> the correct permissions for the IUSR account. They will not necessarily be
> in the web directory. Most likely there are some dlls in the system
> directory that the component relies on.
>
> --
> Mark Schupp
> Head of Development
> Integrity eLearning
> www.ielearning.com
>
>
> "mcmg" <mcmg@discussions.microsoft.com> wrote in message
> news:3B6C34F4-AFDB-46E6-A41E-40022CC26429@microsoft.com...[color=green]
> > Thanks for the reply,
> >
> > IIS is set to Anonymous Access (IUSR Account), NTFS permissions (full
> > control) have been given to the group "Everyone" and the IIS accounts IUSR
> > and IWAM.
> >
> > my object (a .dll build with powerbuilder9) registers successfully
> >
> > " If you see an 8002802b error on any other COM object, make sure you are
> > using set objectName = Server.CreateObject("Valid.ProgID"). If you are[/color]
> using[color=green]
> > an <OBJECT Progid=> tag, this error can be more likely to occur."
> > (http://www.aspfaq.com/show.asp?id=2323)
> >
> > As per above, I tried setting my object in script rather than using an
> > object tag, still no luck.
> >
> > Searches of error 8002802B have turned up a couple ideas but nothing that
> > has worked yet. Any other suggestions? Thanks...
> >
> > Michael
> >
> >
> > "Jeff Cochran" wrote:
> >[color=darkred]
> > > On Wed, 5 Jan 2005 16:11:07 -0800, "mcmg"
> > > <mcmg@discussions.microsoft.com> wrote:
> > >
> > > >Hi,
> > > >
> > > >I have an asp app that works fine on a windows xp machine but does not[/color][/color]
> work[color=green][color=darkred]
> > > >on a windows 2000 server.
> > > >
> > > >I have the following code in my global.asa:
> > > >
> > > ><OBJECT RUNAT=Server
> > > > SCOPE=SESSION
> > > > ID=MyID
> > > > PROGID="MyAppName.MyID">
> > > ></OBJECT>
> > > >
> > > >I get the following error when trying to run my app:
> > > >
> > > >Active Server Pages (0x8002802B)
> > > >An error occurred while creating object 'MyID'
> > > >
> > > >Initial searches pointed me towards a permissions error but I still[/color][/color]
> can't[color=green][color=darkred]
> > > >find the problem (everybody has full permission to the app folder).
> > >
> > > "Everybody" as in every user account or "Everybody" as in the group
> > > Everybody, which doesn't inlcude the IUSR anonymous user account?
> > >
> > > >Once agian it works on windows xp machines running IIS 5.1 but does not
> > > >works on win 2000 IIS 5.0. I think I've changed every setting in IIS[/color][/color]
> but[color=green][color=darkred]
> > > >still can't get it to work.
> > >
> > > What about NTFS permissions?
> > >
> > > >Any suggestions on what might be the problem or how I can troubleshoot[/color][/color]
> this?[color=green][color=darkred]
> > > > I'd be happy to post whatever more info might be helpful. Thanks!
> > >
> > > Maybe:
> > >
> > > http://www.aspfaq.com/show.asp?id=2323
> > >
> > > Jeff
> > >[/color][/color]
>
>
>[/color]
Mark Schupp
Guest
 
Posts: n/a
#6: Jul 22 '05

re: trouble creating object in win 2000


try calling it from a .vbs file while logged onto the server

Dim obj

Set obj = CreateObject("Valid.ProgID")

set obj = Nothing


--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com


"mcmg" <mcmg@discussions.microsoft.com> wrote in message
news:1A27A108-07B6-484A-9185-DF67EBFA7956@microsoft.com...[color=blue]
> good advice, I tried with an admin account and still no luck so it doesn't
> look like a security issue...hmm, maybe it's just a general compatibility
> issue my dll is having with win 2k, although it does register and I've[/color]
made[color=blue]
> sure all it's dependencies are present. argg, this is getting[/color]
frustrating....[color=blue]
>
> "Mark Schupp" wrote:
>[color=green]
> > to determine if it is a file security problem temporarily set the[/color][/color]
anonymous[color=blue][color=green]
> > user account to an administrator account (might need to re-start web
> > services).
> >
> > If the app works then you will need to identify the files that do not[/color][/color]
have[color=blue][color=green]
> > the correct permissions for the IUSR account. They will not necessarily[/color][/color]
be[color=blue][color=green]
> > in the web directory. Most likely there are some dlls in the system
> > directory that the component relies on.
> >
> > --
> > Mark Schupp
> > Head of Development
> > Integrity eLearning
> > www.ielearning.com
> >
> >
> > "mcmg" <mcmg@discussions.microsoft.com> wrote in message
> > news:3B6C34F4-AFDB-46E6-A41E-40022CC26429@microsoft.com...[color=darkred]
> > > Thanks for the reply,
> > >
> > > IIS is set to Anonymous Access (IUSR Account), NTFS permissions (full
> > > control) have been given to the group "Everyone" and the IIS accounts[/color][/color][/color]
IUSR[color=blue][color=green][color=darkred]
> > > and IWAM.
> > >
> > > my object (a .dll build with powerbuilder9) registers successfully
> > >
> > > " If you see an 8002802b error on any other COM object, make sure you[/color][/color][/color]
are[color=blue][color=green][color=darkred]
> > > using set objectName = Server.CreateObject("Valid.ProgID"). If you are[/color]
> > using[color=darkred]
> > > an <OBJECT Progid=> tag, this error can be more likely to occur."
> > > (http://www.aspfaq.com/show.asp?id=2323)
> > >
> > > As per above, I tried setting my object in script rather than using an
> > > object tag, still no luck.
> > >
> > > Searches of error 8002802B have turned up a couple ideas but nothing[/color][/color][/color]
that[color=blue][color=green][color=darkred]
> > > has worked yet. Any other suggestions? Thanks...
> > >
> > > Michael
> > >
> > >
> > > "Jeff Cochran" wrote:
> > >
> > > > On Wed, 5 Jan 2005 16:11:07 -0800, "mcmg"
> > > > <mcmg@discussions.microsoft.com> wrote:
> > > >
> > > > >Hi,
> > > > >
> > > > >I have an asp app that works fine on a windows xp machine but does[/color][/color][/color]
not[color=blue][color=green]
> > work[color=darkred]
> > > > >on a windows 2000 server.
> > > > >
> > > > >I have the following code in my global.asa:
> > > > >
> > > > ><OBJECT RUNAT=Server
> > > > > SCOPE=SESSION
> > > > > ID=MyID
> > > > > PROGID="MyAppName.MyID">
> > > > ></OBJECT>
> > > > >
> > > > >I get the following error when trying to run my app:
> > > > >
> > > > >Active Server Pages (0x8002802B)
> > > > >An error occurred while creating object 'MyID'
> > > > >
> > > > >Initial searches pointed me towards a permissions error but I still[/color]
> > can't[color=darkred]
> > > > >find the problem (everybody has full permission to the app folder).
> > > >
> > > > "Everybody" as in every user account or "Everybody" as in the group
> > > > Everybody, which doesn't inlcude the IUSR anonymous user account?
> > > >
> > > > >Once agian it works on windows xp machines running IIS 5.1 but does[/color][/color][/color]
not[color=blue][color=green][color=darkred]
> > > > >works on win 2000 IIS 5.0. I think I've changed every setting in[/color][/color][/color]
IIS[color=blue][color=green]
> > but[color=darkred]
> > > > >still can't get it to work.
> > > >
> > > > What about NTFS permissions?
> > > >
> > > > >Any suggestions on what might be the problem or how I can[/color][/color][/color]
troubleshoot[color=blue][color=green]
> > this?[color=darkred]
> > > > > I'd be happy to post whatever more info might be helpful. Thanks!
> > > >
> > > > Maybe:
> > > >
> > > > http://www.aspfaq.com/show.asp?id=2323
> > > >
> > > > Jeff
> > > >[/color]
> >
> >
> >[/color][/color]


mcmg
Guest
 
Posts: n/a
#7: Jul 22 '05

re: trouble creating object in win 2000


sorry if I did this wrong, haven't really worked with .vbs files...if I
simply put

Dim obj
Set obj = CreateObject("Valid.ProgID")
set obj = Nothing

and saved it as "testobj.vbs". I ran it I got:

Error: 0xFFFFDF8F
Code: FFFFDF8F

if I comment out my object tag and add in a
<SCRIPT language=VBScript src="testobj.vbs"></SCRIPT>

then ie returns the error:
ActiveX component can't create object: "MyApp.MyProgID"

please correct me if I did this wrong, I'm completely new to server side
apps and fairly new to scripting. Earlier I tried somehing very similar,
commenting out my object tag and adding a Set obj =
Server.CreateObject("Valid.ProgID") into Session_OnStart in my global.asa.
Still no success :-s

Michael
ps ..and yes I am replacing "Valid.ProgID" with a valid ProgID that is in
the registry ;-)

"Mark Schupp" wrote:
[color=blue]
> try calling it from a .vbs file while logged onto the server
>
> Dim obj
>
> Set obj = CreateObject("Valid.ProgID")
>
> set obj = Nothing
>
>
> --
> Mark Schupp
> Head of Development
> Integrity eLearning
> www.ielearning.com
>
>
> "mcmg" <mcmg@discussions.microsoft.com> wrote in message
> news:1A27A108-07B6-484A-9185-DF67EBFA7956@microsoft.com...[color=green]
> > good advice, I tried with an admin account and still no luck so it doesn't
> > look like a security issue...hmm, maybe it's just a general compatibility
> > issue my dll is having with win 2k, although it does register and I've[/color]
> made[color=green]
> > sure all it's dependencies are present. argg, this is getting[/color]
> frustrating....[color=green]
> >
> > "Mark Schupp" wrote:
> >[color=darkred]
> > > to determine if it is a file security problem temporarily set the[/color][/color]
> anonymous[color=green][color=darkred]
> > > user account to an administrator account (might need to re-start web
> > > services).
> > >
> > > If the app works then you will need to identify the files that do not[/color][/color]
> have[color=green][color=darkred]
> > > the correct permissions for the IUSR account. They will not necessarily[/color][/color]
> be[color=green][color=darkred]
> > > in the web directory. Most likely there are some dlls in the system
> > > directory that the component relies on.
> > >
> > > --
> > > Mark Schupp
> > > Head of Development
> > > Integrity eLearning
> > > www.ielearning.com
> > >
> > >
> > > "mcmg" <mcmg@discussions.microsoft.com> wrote in message
> > > news:3B6C34F4-AFDB-46E6-A41E-40022CC26429@microsoft.com...
> > > > Thanks for the reply,
> > > >
> > > > IIS is set to Anonymous Access (IUSR Account), NTFS permissions (full
> > > > control) have been given to the group "Everyone" and the IIS accounts[/color][/color]
> IUSR[color=green][color=darkred]
> > > > and IWAM.
> > > >
> > > > my object (a .dll build with powerbuilder9) registers successfully
> > > >
> > > > " If you see an 8002802b error on any other COM object, make sure you[/color][/color]
> are[color=green][color=darkred]
> > > > using set objectName = Server.CreateObject("Valid.ProgID"). If you are
> > > using
> > > > an <OBJECT Progid=> tag, this error can be more likely to occur."
> > > > (http://www.aspfaq.com/show.asp?id=2323)
> > > >
> > > > As per above, I tried setting my object in script rather than using an
> > > > object tag, still no luck.
> > > >
> > > > Searches of error 8002802B have turned up a couple ideas but nothing[/color][/color]
> that[color=green][color=darkred]
> > > > has worked yet. Any other suggestions? Thanks...
> > > >
> > > > Michael
> > > >
> > > >
> > > > "Jeff Cochran" wrote:
> > > >
> > > > > On Wed, 5 Jan 2005 16:11:07 -0800, "mcmg"
> > > > > <mcmg@discussions.microsoft.com> wrote:
> > > > >
> > > > > >Hi,
> > > > > >
> > > > > >I have an asp app that works fine on a windows xp machine but does[/color][/color]
> not[color=green][color=darkred]
> > > work
> > > > > >on a windows 2000 server.
> > > > > >
> > > > > >I have the following code in my global.asa:
> > > > > >
> > > > > ><OBJECT RUNAT=Server
> > > > > > SCOPE=SESSION
> > > > > > ID=MyID
> > > > > > PROGID="MyAppName.MyID">
> > > > > ></OBJECT>
> > > > > >
> > > > > >I get the following error when trying to run my app:
> > > > > >
> > > > > >Active Server Pages (0x8002802B)
> > > > > >An error occurred while creating object 'MyID'
> > > > > >
> > > > > >Initial searches pointed me towards a permissions error but I still
> > > can't
> > > > > >find the problem (everybody has full permission to the app folder).
> > > > >
> > > > > "Everybody" as in every user account or "Everybody" as in the group
> > > > > Everybody, which doesn't inlcude the IUSR anonymous user account?
> > > > >
> > > > > >Once agian it works on windows xp machines running IIS 5.1 but does[/color][/color]
> not[color=green][color=darkred]
> > > > > >works on win 2000 IIS 5.0. I think I've changed every setting in[/color][/color]
> IIS[color=green][color=darkred]
> > > but
> > > > > >still can't get it to work.
> > > > >
> > > > > What about NTFS permissions?
> > > > >
> > > > > >Any suggestions on what might be the problem or how I can[/color][/color]
> troubleshoot[color=green][color=darkred]
> > > this?
> > > > > > I'd be happy to post whatever more info might be helpful. Thanks!
> > > > >
> > > > > Maybe:
> > > > >
> > > > > http://www.aspfaq.com/show.asp?id=2323
> > > > >
> > > > > Jeff
> > > > >
> > >
> > >
> > >[/color][/color]
>
>
>[/color]
Mark Schupp
Guest
 
Posts: n/a
#8: Jul 22 '05

re: trouble creating object in win 2000


In order to run a vbs file it must be called from the scripting environment.
Usually there is a file association already but maybe there isn't on your
system.

With the original vbs code, start a console prompt and try "cscript
testobj.vbs". If that still gives you the "cannot create object" error then
there is probably something wrong with your object or it is missing a
dependant component on the server. You may want to get FileMon
(http://www.sysinternals.com/) and see if file access is failing.

--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

"mcmg" <mcmg@discussions.microsoft.com> wrote in message
news:F2F02E5C-ACA5-4FE0-89D9-C44662C50D45@microsoft.com...[color=blue]
> sorry if I did this wrong, haven't really worked with .vbs files...if I
> simply put
>
> Dim obj
> Set obj = CreateObject("Valid.ProgID")
> set obj = Nothing
>
> and saved it as "testobj.vbs". I ran it I got:
>
> Error: 0xFFFFDF8F
> Code: FFFFDF8F
>
> if I comment out my object tag and add in a
> <SCRIPT language=VBScript src="testobj.vbs"></SCRIPT>
>
> then ie returns the error:
> ActiveX component can't create object: "MyApp.MyProgID"
>
> please correct me if I did this wrong, I'm completely new to server side
> apps and fairly new to scripting. Earlier I tried somehing very similar,
> commenting out my object tag and adding a Set obj =
> Server.CreateObject("Valid.ProgID") into Session_OnStart in my
> global.asa.
> Still no success :-s
>
> Michael
> ps ..and yes I am replacing "Valid.ProgID" with a valid ProgID that is in
> the registry ;-)
>
> "Mark Schupp" wrote:
>[color=green]
>> try calling it from a .vbs file while logged onto the server
>>
>> Dim obj
>>
>> Set obj = CreateObject("Valid.ProgID")
>>
>> set obj = Nothing
>>
>>
>> --
>> Mark Schupp
>> Head of Development
>> Integrity eLearning
>> www.ielearning.com
>>
>>
>> "mcmg" <mcmg@discussions.microsoft.com> wrote in message
>> news:1A27A108-07B6-484A-9185-DF67EBFA7956@microsoft.com...[color=darkred]
>> > good advice, I tried with an admin account and still no luck so it
>> > doesn't
>> > look like a security issue...hmm, maybe it's just a general
>> > compatibility
>> > issue my dll is having with win 2k, although it does register and I've[/color]
>> made[color=darkred]
>> > sure all it's dependencies are present. argg, this is getting[/color]
>> frustrating....[color=darkred]
>> >
>> > "Mark Schupp" wrote:
>> >
>> > > to determine if it is a file security problem temporarily set the[/color]
>> anonymous[color=darkred]
>> > > user account to an administrator account (might need to re-start web
>> > > services).
>> > >
>> > > If the app works then you will need to identify the files that do not[/color]
>> have[color=darkred]
>> > > the correct permissions for the IUSR account. They will not
>> > > necessarily[/color]
>> be[color=darkred]
>> > > in the web directory. Most likely there are some dlls in the system
>> > > directory that the component relies on.
>> > >
>> > > --
>> > > Mark Schupp
>> > > Head of Development
>> > > Integrity eLearning
>> > > www.ielearning.com
>> > >
>> > >
>> > > "mcmg" <mcmg@discussions.microsoft.com> wrote in message
>> > > news:3B6C34F4-AFDB-46E6-A41E-40022CC26429@microsoft.com...
>> > > > Thanks for the reply,
>> > > >
>> > > > IIS is set to Anonymous Access (IUSR Account), NTFS permissions
>> > > > (full
>> > > > control) have been given to the group "Everyone" and the IIS
>> > > > accounts[/color]
>> IUSR[color=darkred]
>> > > > and IWAM.
>> > > >
>> > > > my object (a .dll build with powerbuilder9) registers successfully
>> > > >
>> > > > " If you see an 8002802b error on any other COM object, make sure
>> > > > you[/color]
>> are[color=darkred]
>> > > > using set objectName = Server.CreateObject("Valid.ProgID"). If you
>> > > > are
>> > > using
>> > > > an <OBJECT Progid=> tag, this error can be more likely to occur."
>> > > > (http://www.aspfaq.com/show.asp?id=2323)
>> > > >
>> > > > As per above, I tried setting my object in script rather than using
>> > > > an
>> > > > object tag, still no luck.
>> > > >
>> > > > Searches of error 8002802B have turned up a couple ideas but
>> > > > nothing[/color]
>> that[color=darkred]
>> > > > has worked yet. Any other suggestions? Thanks...
>> > > >
>> > > > Michael
>> > > >
>> > > >
>> > > > "Jeff Cochran" wrote:
>> > > >
>> > > > > On Wed, 5 Jan 2005 16:11:07 -0800, "mcmg"
>> > > > > <mcmg@discussions.microsoft.com> wrote:
>> > > > >
>> > > > > >Hi,
>> > > > > >
>> > > > > >I have an asp app that works fine on a windows xp machine but
>> > > > > >does[/color]
>> not[color=darkred]
>> > > work
>> > > > > >on a windows 2000 server.
>> > > > > >
>> > > > > >I have the following code in my global.asa:
>> > > > > >
>> > > > > ><OBJECT RUNAT=Server
>> > > > > > SCOPE=SESSION
>> > > > > > ID=MyID
>> > > > > > PROGID="MyAppName.MyID">
>> > > > > ></OBJECT>
>> > > > > >
>> > > > > >I get the following error when trying to run my app:
>> > > > > >
>> > > > > >Active Server Pages (0x8002802B)
>> > > > > >An error occurred while creating object 'MyID'
>> > > > > >
>> > > > > >Initial searches pointed me towards a permissions error but I
>> > > > > >still
>> > > can't
>> > > > > >find the problem (everybody has full permission to the app
>> > > > > >folder).
>> > > > >
>> > > > > "Everybody" as in every user account or "Everybody" as in the
>> > > > > group
>> > > > > Everybody, which doesn't inlcude the IUSR anonymous user account?
>> > > > >
>> > > > > >Once agian it works on windows xp machines running IIS 5.1 but
>> > > > > >does[/color]
>> not[color=darkred]
>> > > > > >works on win 2000 IIS 5.0. I think I've changed every setting
>> > > > > >in[/color]
>> IIS[color=darkred]
>> > > but
>> > > > > >still can't get it to work.
>> > > > >
>> > > > > What about NTFS permissions?
>> > > > >
>> > > > > >Any suggestions on what might be the problem or how I can[/color]
>> troubleshoot[color=darkred]
>> > > this?
>> > > > > > I'd be happy to post whatever more info might be helpful.
>> > > > > > Thanks!
>> > > > >
>> > > > > Maybe:
>> > > > >
>> > > > > http://www.aspfaq.com/show.asp?id=2323
>> > > > >
>> > > > > Jeff
>> > > > >
>> > >
>> > >
>> > >[/color]
>>
>>
>>[/color][/color]


mcmg
Guest
 
Posts: n/a
#9: Jul 22 '05

re: trouble creating object in win 2000


YES! Thank for all your help, I think I've got it now after using FileMon.
Here was the problem...

I have my app setup something like this:
<_private>
<path>
global.asa
*.asp
*.css
etc

in the path directory I have my dll plus several powerbuilder
redistributables. It turns out even though I added this directory to the
environmental variable PATH, win2k was unable to locate pbvm90.dll (one of
the powerbuilder redistributables). winxp does not have this problem. I
moved the pb redistributables to the system folder and now it doesn't have a
problem creating the object :-D

FileMon turned out to be just what I needed to see exactly where the problem
was. thx for the help Mark!

Michael


"Mark Schupp" wrote:
[color=blue]
> In order to run a vbs file it must be called from the scripting environment.
> Usually there is a file association already but maybe there isn't on your
> system.
>
> With the original vbs code, start a console prompt and try "cscript
> testobj.vbs". If that still gives you the "cannot create object" error then
> there is probably something wrong with your object or it is missing a
> dependant component on the server. You may want to get FileMon
> (http://www.sysinternals.com/) and see if file access is failing.
>
> --
> --Mark Schupp
> Head of Development
> Integrity eLearning
> www.ielearning.com
>
> "mcmg" <mcmg@discussions.microsoft.com> wrote in message
> news:F2F02E5C-ACA5-4FE0-89D9-C44662C50D45@microsoft.com...[color=green]
> > sorry if I did this wrong, haven't really worked with .vbs files...if I
> > simply put
> >
> > Dim obj
> > Set obj = CreateObject("Valid.ProgID")
> > set obj = Nothing
> >
> > and saved it as "testobj.vbs". I ran it I got:
> >
> > Error: 0xFFFFDF8F
> > Code: FFFFDF8F
> >
> > if I comment out my object tag and add in a
> > <SCRIPT language=VBScript src="testobj.vbs"></SCRIPT>
> >
> > then ie returns the error:
> > ActiveX component can't create object: "MyApp.MyProgID"
> >
> > please correct me if I did this wrong, I'm completely new to server side
> > apps and fairly new to scripting. Earlier I tried somehing very similar,
> > commenting out my object tag and adding a Set obj =
> > Server.CreateObject("Valid.ProgID") into Session_OnStart in my
> > global.asa.
> > Still no success :-s
> >
> > Michael
> > ps ..and yes I am replacing "Valid.ProgID" with a valid ProgID that is in
> > the registry ;-)
> >
> > "Mark Schupp" wrote:
> >[color=darkred]
> >> try calling it from a .vbs file while logged onto the server
> >>
> >> Dim obj
> >>
> >> Set obj = CreateObject("Valid.ProgID")
> >>
> >> set obj = Nothing
> >>
> >>
> >> --
> >> Mark Schupp
> >> Head of Development
> >> Integrity eLearning
> >> www.ielearning.com
> >>
> >>
> >> "mcmg" <mcmg@discussions.microsoft.com> wrote in message
> >> news:1A27A108-07B6-484A-9185-DF67EBFA7956@microsoft.com...
> >> > good advice, I tried with an admin account and still no luck so it
> >> > doesn't
> >> > look like a security issue...hmm, maybe it's just a general
> >> > compatibility
> >> > issue my dll is having with win 2k, although it does register and I've
> >> made
> >> > sure all it's dependencies are present. argg, this is getting
> >> frustrating....
> >> >
> >> > "Mark Schupp" wrote:
> >> >
> >> > > to determine if it is a file security problem temporarily set the
> >> anonymous
> >> > > user account to an administrator account (might need to re-start web
> >> > > services).
> >> > >
> >> > > If the app works then you will need to identify the files that do not
> >> have
> >> > > the correct permissions for the IUSR account. They will not
> >> > > necessarily
> >> be
> >> > > in the web directory. Most likely there are some dlls in the system
> >> > > directory that the component relies on.
> >> > >
> >> > > --
> >> > > Mark Schupp
> >> > > Head of Development
> >> > > Integrity eLearning
> >> > > www.ielearning.com
> >> > >
> >> > >
> >> > > "mcmg" <mcmg@discussions.microsoft.com> wrote in message
> >> > > news:3B6C34F4-AFDB-46E6-A41E-40022CC26429@microsoft.com...
> >> > > > Thanks for the reply,
> >> > > >
> >> > > > IIS is set to Anonymous Access (IUSR Account), NTFS permissions
> >> > > > (full
> >> > > > control) have been given to the group "Everyone" and the IIS
> >> > > > accounts
> >> IUSR
> >> > > > and IWAM.
> >> > > >
> >> > > > my object (a .dll build with powerbuilder9) registers successfully
> >> > > >
> >> > > > " If you see an 8002802b error on any other COM object, make sure
> >> > > > you
> >> are
> >> > > > using set objectName = Server.CreateObject("Valid.ProgID"). If you
> >> > > > are
> >> > > using
> >> > > > an <OBJECT Progid=> tag, this error can be more likely to occur."
> >> > > > (http://www.aspfaq.com/show.asp?id=2323)
> >> > > >
> >> > > > As per above, I tried setting my object in script rather than using
> >> > > > an
> >> > > > object tag, still no luck.
> >> > > >
> >> > > > Searches of error 8002802B have turned up a couple ideas but
> >> > > > nothing
> >> that
> >> > > > has worked yet. Any other suggestions? Thanks...
> >> > > >
> >> > > > Michael
> >> > > >
> >> > > >
> >> > > > "Jeff Cochran" wrote:
> >> > > >
> >> > > > > On Wed, 5 Jan 2005 16:11:07 -0800, "mcmg"
> >> > > > > <mcmg@discussions.microsoft.com> wrote:
> >> > > > >
> >> > > > > >Hi,
> >> > > > > >
> >> > > > > >I have an asp app that works fine on a windows xp machine but
> >> > > > > >does
> >> not
> >> > > work
> >> > > > > >on a windows 2000 server.
> >> > > > > >
> >> > > > > >I have the following code in my global.asa:
> >> > > > > >
> >> > > > > ><OBJECT RUNAT=Server
> >> > > > > > SCOPE=SESSION
> >> > > > > > ID=MyID
> >> > > > > > PROGID="MyAppName.MyID">
> >> > > > > ></OBJECT>
> >> > > > > >
> >> > > > > >I get the following error when trying to run my app:
> >> > > > > >
> >> > > > > >Active Server Pages (0x8002802B)
> >> > > > > >An error occurred while creating object 'MyID'
> >> > > > > >
> >> > > > > >Initial searches pointed me towards a permissions error but I
> >> > > > > >still
> >> > > can't
> >> > > > > >find the problem (everybody has full permission to the app
> >> > > > > >folder).
> >> > > > >
> >> > > > > "Everybody" as in every user account or "Everybody" as in the
> >> > > > > group
> >> > > > > Everybody, which doesn't inlcude the IUSR anonymous user account?
> >> > > > >
> >> > > > > >Once agian it works on windows xp machines running IIS 5.1 but
> >> > > > > >does
> >> not
> >> > > > > >works on win 2000 IIS 5.0. I think I've changed every setting
> >> > > > > >in
> >> IIS
> >> > > but
> >> > > > > >still can't get it to work.
> >> > > > >
> >> > > > > What about NTFS permissions?
> >> > > > >
> >> > > > > >Any suggestions on what might be the problem or how I can
> >> troubleshoot
> >> > > this?
> >> > > > > > I'd be happy to post whatever more info might be helpful.
> >> > > > > > Thanks!
> >> > > > >
> >> > > > > Maybe:
> >> > > > >
> >> > > > > http://www.aspfaq.com/show.asp?id=2323
> >> > > > >
> >> > > > > Jeff
> >> > > > >
> >> > >
> >> > >
> >> > >
> >>
> >>
> >>[/color][/color]
>
>
>[/color]
Closed Thread