IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 8th, 2004, 10:35 AM
technoob technoob is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 4 technoob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Application_OnStart runs twice

IIS 6 on 2003 Server. Application_OnStart runs when the first page is accessed (as it should). The next page is a frameset with 3 frames (2 ASP, 1 HTML). One of the ASPs properly accesses the existing Application object, the other ASP causes Application_OnStart to run again. Any idea why this is happening / how to prevent it?

I am only encountering this on one server, which leads me to think it is related to IIS settings.

More info: The site is set up as a virtual directory. The frameset and content pages reside in a sub-directory (also virtual, but no separate application object defined).

-Thanks

Reply With Quote
  #2  
Old November 8th, 2004, 05:40 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,829 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 20 h 23 m 12 sec
Reputation Power: 765
How are you determining that Application_OnStart is executing twice?
__________________
======
Doug G
======
"Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton

Reply With Quote
  #3  
Old November 8th, 2004, 08:38 PM
technoob technoob is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 4 technoob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
IIS returns an error from global.asa instead of the expected frame contents. The error indicates a line within the Application_OnStart sub (an error is generated because the ASP is not in the root directory of the application). This suggests that Application_OnStart is running a second time.

I verified that it ran the first time by checking the values of Application variables that get initialized by Application_OnStart. I checked before accessing the frameset.

Reply With Quote
  #4  
Old November 8th, 2004, 10:00 PM
csaritha_g csaritha_g is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 1 csaritha_g User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
address already in use

Quote:
Originally Posted by Doug G
How are you determining that Application_OnStart is executing twice?

hi
i am having a problem with my iis,i have loaded oracle in my system ,
the default website in iis stopped running,when i started it ,it is saying address already in use.
i am doing a project and i wanted to connect to the asp and oracle.but with this i am not able to do
could u please find me a solution

Reply With Quote
  #5  
Old November 9th, 2004, 10:12 AM
technoob technoob is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 4 technoob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
csaritha_g, check the following MS KB article:

http://support.microsoft.com/?id=261194

Does that help at all?

Reply With Quote
  #6  
Old July 28th, 2005, 07:49 AM
acchir@yahoo.co acchir@yahoo.co is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 1 acchir@yahoo.co User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 5 sec
Reputation Power: 0
Hi Technoob,

I've had a similar issue while using Application OnStart, it was running the script twice.
However using Application Lock & Application Unlock seems to have fixed my issue.
Do let me know if you had another solution to this problem.


Quote:
Originally Posted by technoob
IIS 6 on 2003 Server. Application_OnStart runs when the first page is accessed (as it should). The next page is a frameset with 3 frames (2 ASP, 1 HTML). One of the ASPs properly accesses the existing Application object, the other ASP causes Application_OnStart to run again. Any idea why this is happening / how to prevent it?

I am only encountering this on one server, which leads me to think it is related to IIS settings.

More info: The site is set up as a virtual directory. The frameset and content pages reside in a sub-directory (also virtual, but no separate application object defined).

-Thanks

Reply With Quote
  #7  
Old July 28th, 2005, 10:46 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,829 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 20 h 23 m 12 sec
Reputation Power: 765
acchir did you notice this thread was almost a year old?

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Application_OnStart runs twice


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway