Error 70/$46 with ASP/COM

J

Jean-Yves

Hi

I have an ASP page that uses one of my COM object reference stored in a session variable. It makes a call like "set v= session("grrrr") / call v.method()". Randomly the call to "method" generates a 70 / $46 error. I'm connected as the anonymous user. The IUSR_* user is member of the Administrators group. I really don't understand! If somebody has an idea... Thank-you in advance

Kind regards
Jean-Yves
 
R

Ray at

What's a 70/$46 error?

Perhaps the session is timing out.

Storing objects in session variables is ill-advised.
(http://www.aspfaq.com/show.asp?id=2053)

Ray at work

Jean-Yves said:
Hi,

I have an ASP page that uses one of my COM object reference stored in a
session variable. It makes a call like "set v= session("grrrr") / call
v.method()". Randomly the call to "method" generates a 70 / $46 error. I'm
connected as the anonymous user. The IUSR_* user is member of the
Administrators group. I really don't understand! If somebody has an idea...
Thank-you in advance.
 
J

Jean-Yves Jourdain

Hi Ray,

In fact, I made a mistake in my question, that's an application level
variable. So I make something like that: "set v= application("grrrr")".
Another thing is that if I refresh the page, all is fine!? I have the same
"access denied" error whatever the protection level I use for my IIS
application...

Thank-you very much for your help.

Kind regards,

Jean-Yves
------------------------------------------
 
R

Ray at

Session or application, you should not be storing this object in either.

Have you allowed launch permissions for iwam and/or iusr in dcomcnfg?

Ray at work

Jean-Yves Jourdain said:
Hi Ray,

In fact, I made a mistake in my question, that's an application level
variable. So I make something like that: "set v= application("grrrr")".
Another thing is that if I refresh the page, all is fine!? I have the same
"access denied" error whatever the protection level I use for my IIS
application...

Thank-you very much for your help.

Kind regards,

Jean-Yves
------------------------------------------

What's a 70/$46 error?

Perhaps the session is timing out.

Storing objects in session variables is ill-advised.
(http://www.aspfaq.com/show.asp?id=2053)

Ray at work


session variable. It makes a call like "set v= session("grrrr") / call
v.method()". Randomly the call to "method" generates a 70 / $46 error. I'm
connected as the anonymous user. The IUSR_* user is member of the
Administrators group. I really don't understand! If somebody has an idea...
Thank-you in advance.
[/QUOTE]
 
J

Jean-Yves Jourdain

Hi Ray,
Session or application, you should not be storing this object in either.
Yes I agree, but in that case, I didn't find another solution.

About the error, yes the IUSR_* user and the IUWAM_* user rights are OK in
DCOMCNFG.

The strange thing is that I do not have the error systematically. And when I
have the error, if I make a refresh, that always works. It really seems
that's a problem with the link with the ASP code and the COM component. I
don't think that, in that case, the COM method is called...

I hope you'll have another idea ;-). Thank-you very much for your help!

Kind regards,

------------------------------------------
Jean-Yves Jourdain
J2S
29, rue Fourmentel - 59800 Lille - France
Tel : +33 (0)3 28 36 82 00
Fax : +33 (0)3 20 17 63 01
http://www.j2s.net
------------------------------------------



Session or application, you should not be storing this object in either.

Have you allowed launch permissions for iwam and/or iusr in dcomcnfg?

Ray at work
[/QUOTE]
 
R

Ray at

Perhaps it's because the session is timing out and the object no longer
exists in the session variable (or app variable). Take your object out of
the session/application and try it. Again, storing objects in
session/application variables is bound to cause problems.

Ray at work

Jean-Yves Jourdain said:
Hi Ray,

Yes I agree, but in that case, I didn't find another solution.

About the error, yes the IUSR_* user and the IUWAM_* user rights are OK in
DCOMCNFG.

The strange thing is that I do not have the error systematically. And when I
have the error, if I make a refresh, that always works. It really seems
that's a problem with the link with the ASP code and the COM component. I
don't think that, in that case, the COM method is called...

I hope you'll have another idea ;-). Thank-you very much for your help!

Kind regards,

------------------------------------------
Jean-Yves Jourdain
J2S
29, rue Fourmentel - 59800 Lille - France
Tel : +33 (0)3 28 36 82 00
Fax : +33 (0)3 20 17 63 01
http://www.j2s.net
------------------------------------------



Session or application, you should not be storing this object in either.

Have you allowed launch permissions for iwam and/or iusr in dcomcnfg?

Ray at work
[/QUOTE]
 
J

Jean-Yves Jourdain

Hi Ray,

But how can I do if I have to use often a COM object without to store it at
the application level?

Thank-you for your help again!

Kind regards,

Jean-Yves
------------------------------------------


Perhaps it's because the session is timing out and the object no longer
exists in the session variable (or app variable). Take your object out of
the session/application and try it. Again, storing objects in
session/application variables is bound to cause problems.

Ray at work
[/QUOTE]
 
J

Jean-Yves Jourdain

Hi Ray,

OK but the problem is that I don't want to create the object every times I
need it. That's a too heavy operation. That's why I save the object instance
in an application variable.

Thank-you for your help!

Kind regards,

Jean-Yves
------------------------------------------
 
R

Ray at

Did you read this page and the links to the KB articles?
http://www.aspfaq.com/show.asp?id=2053

Ray at home

Jean-Yves Jourdain said:
Hi Ray,

OK but the problem is that I don't want to create the object every times I
need it. That's a too heavy operation. That's why I save the object instance
in an application variable.

Thank-you for your help!

Kind regards,

Jean-Yves
------------------------------------------

In what way do you mean how?

Set oVar = CreateObject("Your.Object")

Ray at home

it
at out
of OK
in component.
I stored
in
[/QUOTE]
 
J

Jean-Yves Jourdain

Hi Ray,

Just to close the discussion. I finally contacted the Microsoft support. And
after some days or research, they found a recent "hotfix". That's it!

Thank-you again for your help.

Kind regards,

------------------------------------------
Jean-Yves Jourdain
J2S
29, rue Fourmentel - 59800 Lille - France
Tel : +33 (0)3 28 36 82 00
Fax : +33 (0)3 20 17 63 01
http://www.j2s.net
------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,146
Messages
2,570,832
Members
47,374
Latest member
anuragag27

Latest Threads

Top