Groups | Blog | Home
all groups > inetserver asp general > july 2004 >

inetserver asp general : Application object lost?


OsD
7/29/2004 4:29:10 PM
I'm having trouble with the workflow described bellow:

1. Asp page 1 on server A contains an iframe.
2. Asp page 1 submits a form targeted to the iframe, to Asp page 2 on
server B.
3. Asp page 2 runs in the iframe and at some point might decide to submit a
form targeted to the _top frame, to page 3 on Server B.
4. Page 3 loads in the top frame.

This usually works well, but occasionally when page 3 loads various asp
errors occur, in the manner of "Object not found" and "Object does not
support this method". The objects referred to are always objects held in the
Application object, and were put there by the global.asa file. Once it was
the Application object itself that was not found, when a direct call to it
failed.

Server A and server B are not necessarily different servers, but they are
always different virtual directories. Page 2 and Page 3 always run in the
same virtual directory, under the same application scope.

Any help on figuring out why these errors occur would be appreciated. At
least an idea why sometimes it works and sometimes not.

thorpe
7/30/2004 9:59:23 AM
i would think you couldnt share application objects accross different
applications. besides, you shouldnt be storing objects in application scope.


[quoted text, click to view]

Bob Barrows [MVP]
8/1/2004 7:23:42 AM
[quoted text, click to view]

Time to bite the bullet ...


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

OsD
8/1/2004 8:06:51 AM
Yes, I know storing objects in the application scope is bad, but until the
development team decides to rewrite a few hundred asp pages, I don't have
much choice.

As for application object sharing, I guess I didn't explain myself too well.
There is no sharing.
Page 1 uses one application object, while Pages 2 and 3 use a different
application object. They both should use the same application object, since
they are both in the same application, but for some reason even though Page
2 always processes without errors, Page 3 sometimes cannot access the
application object.


[quoted text, click to view]

AddThis Social Bookmark Button