|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
address already in use
Quote:
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 |
|
#5
|
|||
|
|||
|
csaritha_g, check the following MS KB article:
http://support.microsoft.com/?id=261194 Does that help at all? |
|
#6
|
|||
|
|||
|
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:
|
|
#7
|
|||
|
|||
|
acchir did you notice this thread was almost a year old?
|
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > Application_OnStart runs twice |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|