473,616 Members | 2,973 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Client request is processed twice

Hello,
I have a problem with an ASP.NET 2.0 Application.
A client request is processed in parrallel by two threads.
This ends with the following exception :

<Source>Syste m</Source>
<StackTrace at System.Collecti ons.Specialized .ListDictionary .Add(Object
key, Object value)
at System.Web.UI.C lientScriptMana ger.RegisterScr iptBlock(Script Key key,
String script, ListDictionary& amp; scriptBlocks, ArrayList&amp; scriptList,
Boolean needsScriptTags , Boolean&amp; inScriptBlock)
at System.Web.UI.C lientScriptMana ger.RegisterScr iptBlock(Script Key key,
String script, ClientAPIRegist erType type)
at System.Web.UI.C lientScriptMana ger.RegisterCli entScriptInclud e(Type
type, String key, String url)
at
System.Web.UI.S criptRegistrati onManager.Regis terClientScript Include(Control
control, Type type, String key, String url)
at
System.Web.UI.S criptManager.Re gisterClientScr iptIncludeInter nal(Control
control, Type type, String key, String url)
at System.Web.UI.S criptManager.Re gisterScripts()
at System.Web.UI.S criptManager.On PagePreRenderCo mplete(Object sender,
EventArgs e)
at System.EventHan dler.Invoke(Obj ect sender, EventArgs e)
at System.Web.UI.P age.OnPreRender Complete(EventA rgs e)
at System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean
includeStagesAf terAsyncPoint)</StackTrace>
<Message>An entry with the same key already exists.</Message>

Any idea ?
Thanks in advance.
Sep 5 '07 #1
4 2696
More information :
After further analysis, it appears that :
- There is 2 disctinct session for the request (Session_Start in
global.asax)
- One of the session ends (Session_End in global.asax).
- The ramining session is used for subsequent requests, and everything works
fine.

"Olivier Matrot" <ol************ ****@online.nos pamwrote in message
news:uS******** ******@TK2MSFTN GP02.phx.gbl...
Hello,
I have a problem with an ASP.NET 2.0 Application.
A client request is processed in parrallel by two threads.
This ends with the following exception :

<Source>Syste m</Source>
<StackTrace at
System.Collecti ons.Specialized .ListDictionary .Add(Object key, Object
value)
at System.Web.UI.C lientScriptMana ger.RegisterScr iptBlock(Script Key key,
String script, ListDictionary& amp; scriptBlocks, ArrayList&amp;
scriptList, Boolean needsScriptTags , Boolean&amp; inScriptBlock)
at System.Web.UI.C lientScriptMana ger.RegisterScr iptBlock(Script Key key,
String script, ClientAPIRegist erType type)
at System.Web.UI.C lientScriptMana ger.RegisterCli entScriptInclud e(Type
type, String key, String url)
at
System.Web.UI.S criptRegistrati onManager.Regis terClientScript Include(Control
control, Type type, String key, String url)
at
System.Web.UI.S criptManager.Re gisterClientScr iptIncludeInter nal(Control
control, Type type, String key, String url)
at System.Web.UI.S criptManager.Re gisterScripts()
at System.Web.UI.S criptManager.On PagePreRenderCo mplete(Object sender,
EventArgs e)
at System.EventHan dler.Invoke(Obj ect sender, EventArgs e)
at System.Web.UI.P age.OnPreRender Complete(EventA rgs e)
at System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean
includeStagesAf terAsyncPoint)</StackTrace>
<Message>An entry with the same key already exists.</Message>

Any idea ?
Thanks in advance.

Sep 5 '07 #2
IMO you'll have to explain a bit what you meant or how you do :
- A client request is processed in parrallel by two threads
- There is 2 disctinct session for the request
or what it your overall goal.

The standard situation is that an HTTP request is processed by a single
thread and is binded to a single session so it would seems you try something
special. My first thought would be that you try to add the same key twice in
distinct threads when you have a single request coming and that the
clientscriptman ager is likely not designed to handle such an unusual
situation

It's likely that your best bet is first to explain what you are trying to do
so that we can better grasp the context (you have build in capabilites for
async processing in .NET 2.0 that you could perhaps use ?)...

--
Patrice

"Olivier Matrot" <ol************ ****@online.nos pama écrit dans le message
de news: %2************* ***@TK2MSFTNGP0 6.phx.gbl...
More information :
After further analysis, it appears that :
- There is 2 disctinct session for the request (Session_Start in
global.asax)
- One of the session ends (Session_End in global.asax).
- The ramining session is used for subsequent requests, and everything
works fine.

"Olivier Matrot" <ol************ ****@online.nos pamwrote in message
news:uS******** ******@TK2MSFTN GP02.phx.gbl...
>Hello,
I have a problem with an ASP.NET 2.0 Application.
A client request is processed in parrallel by two threads.
This ends with the following exception :

<Source>Syste m</Source>
<StackTrace at
System.Collect ions.Specialize d.ListDictionar y.Add(Object key, Object
value)
at System.Web.UI.C lientScriptMana ger.RegisterScr iptBlock(Script Key key,
String script, ListDictionary& amp; scriptBlocks, ArrayList&amp;
scriptList, Boolean needsScriptTags , Boolean&amp; inScriptBlock)
at System.Web.UI.C lientScriptMana ger.RegisterScr iptBlock(Script Key key,
String script, ClientAPIRegist erType type)
at System.Web.UI.C lientScriptMana ger.RegisterCli entScriptInclud e(Type
type, String key, String url)
at
System.Web.UI. ScriptRegistrat ionManager.Regi sterClientScrip tInclude(Contro l
control, Type type, String key, String url)
at
System.Web.UI. ScriptManager.R egisterClientSc riptIncludeInte rnal(Control
control, Type type, String key, String url)
at System.Web.UI.S criptManager.Re gisterScripts()
at System.Web.UI.S criptManager.On PagePreRenderCo mplete(Object sender,
EventArgs e)
at System.EventHan dler.Invoke(Obj ect sender, EventArgs e)
at System.Web.UI.P age.OnPreRender Complete(EventA rgs e)
at System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesB eforeAsyncPoint , Boolean
includeStagesA fterAsyncPoint) </StackTrace>
<Message>An entry with the same key already exists.</Message>

Any idea ?
Thanks in advance.


Sep 5 '07 #3
My goal is not to have a client request processed twice.
This is a weird behavior I have on my web site.
This is happening primarily when the application is started for the first
time, but sometimes it is on a simple page request. No page in particular is
concerned, and I can't reproduce it myself.
My application generates a log file, and the facts exposed here are clearly
visible in that file.
The IIS log file shows that only one request is comming from the client.
Take a look at the following :

Line |Thread Id| Date| Hour|Delta|
Category|Text

------------------------------------------------------------------------------------------

28387| 00000007|05/09/2007|13:35:33.6 11| + |
Hit|Session starting from [196.201.XX.XXX]...|

28388| 00000007|05/09/2007|13:35:33.6 11| 0|
Browsers|Browse r is : [IE] Version [6.0] on [WinXP]|

28393| 00000001|05/09/2007|13:35:33.6 11| 0|
Hit|Session starting from [196.201.XX.XXX]...|

28394| 00000001|05/09/2007|13:35:33.6 11| 0|
Browsers|Browse r is : [IE] Version [6.0] on [WinXP]|

28396| 00000007|05/09/2007|13:35:33.7 83| 172|Client Language
Preferences|Pre fered Language is [fr] LCID -12|

28397| 00000001|05/09/2007|13:35:33.7 83| 0|Client Language
Preferences|Pre fered Language is [fr] LCID -12|

28398| 00000001|05/09/2007|13:35:33.7 98| 15|
|AcquireRequest State|

28399| 00000001|05/09/2007|13:35:33.7 98| 0| |No
Cookie with prefered language. Browser languages will be analysed (english
is default) !|

28400| 00000001|05/09/2007|13:35:33.7 98| 0|
|Selected runtime culture is [fr]|

28401| 00000001|05/09/2007|13:35:33.7 98| 0| ||

28402| 00000007|05/09/2007|13:35:33.7 98| 0|
|AcquireRequest State|

28406| 00000001|05/09/2007|13:35:34.5 33| 735|
StartEndFunctio n|Page [/members/Web/SendFax.aspx] is requested for the first
time.|

28407| 00000007|05/09/2007|13:35:34.5 33| 0|
StartEndFunctio n|Page [/members/Web/SendFax.aspx] is requested for the first
time.|

28408| 00000001|05/09/2007|13:35:34.5 64| 31|
StartEndFunctio n|Entering InitSessionUser Id()|

28409| 00000001|05/09/2007|13:35:34.5 64| 0|
|Time zone offset (GMT) cookie value is [0]|

28410| 00000007|05/09/2007|13:35:34.5 64| 0|
StartEndFunctio n|Entering InitSessionUser Id()|

28411| 00000007|05/09/2007|13:35:34.5 64| 0|
|Time zone offset (GMT) cookie value is [0]|

28412| 00000001|05/09/2007|13:35:35.1 89| 625|
|********* TEMP : GetRoles() : User is
[54************* *************** *************** @yahoo.fr] *********|

28413| 00000007|05/09/2007|13:35:35.2 04| 15|
|********* TEMP : GetRoles() : User is
[54************* *************** *************** @yahoo.fr] *********|

28414| 00000007|05/09/2007|13:35:35.2 51| 47|
RTEFBLDAPUser|F inding existing user [xx************@ yahoo.fr] in []...|

28415| 00000001|05/09/2007|13:35:35.2 51| 0|
RTEFBLDAPUser|F inding existing user [xx************@ yahoo.fr] in []...|

28416| 00000001|05/09/2007|13:35:35.2 67| 16|
DirectoryHelper |DetectDirector y [LDAP://rcs.private]|

28417| 00000007|05/09/2007|13:35:35.2 67| 0|
DirectoryHelper |DetectDirector y [LDAP://rcs.private]|

28418| 00000001|05/09/2007|13:35:35.2 67| 0|
DirectoryHelper |Directory is detected as [ActiveDirectory]|

28419| 00000001|05/09/2007|13:35:35.2 67| 0|
DirectoryHelper |Naming context from RootDSE is [DC=rcs,DC=priva te]|

28420| 00000007|05/09/2007|13:35:35.2 67| 0|
DirectoryHelper |Directory is detected as [ActiveDirectory]|

28421| 00000007|05/09/2007|13:35:35.2 67| 0|
DirectoryHelper |Naming context from RootDSE is [DC=rcs,DC=priva te]|

28422| 00000001|05/09/2007|13:35:35.2 67| 0|
DirectoryHelper |GetDefaultCont ainer
[LDAP://rcs.private/ou=XXXXXXXXXXXX XXX,OU=XXXXXXXX XX,DC=rcs,DC=pr ivate] with
user [RCS\rw.gofaxbox] and AuthenticationT ypes [Secure] |

28423| 00000007|05/09/2007|13:35:35.2 67| 0|
DirectoryHelper |GetDefaultCont ainer
[LDAP://rcs.private/ou=XXXXXXXXXXXX XXX,OU=XXXXXXXX XX,DC=rcs,DC=pr ivate] with
user [RCS\rw.gofaxbox] and AuthenticationT ypes [Secure] |

28424| 00000001|05/09/2007|13:35:35.2 67| 0|
RTEFBLDAPUser|D irectorySearche r Filter is
[(&((objectClass =user)(ma****** **********@yaho o.fr)))] Scope is [Subtree]|

28425| 00000007|05/09/2007|13:35:35.2 67| 0|
RTEFBLDAPUser|D irectorySearche r Filter is
[(&((objectClass =user)(ma****** **********@yaho o.fr)))] Scope is [Subtree]|

28427| 00000001|05/09/2007|13:35:35.3 14| 47|
|Find all user's email...|

28428| 00000007|05/09/2007|13:35:35.3 14| 0|
|Find all user's email...|

28429| 00000001|05/09/2007|13:35:35.3 29| 15|
StartEndFunctio n|Leaving InitSessionUser Id()|

28430| 00000007|05/09/2007|13:35:35.3 29| 0|
StartEndFunctio n|Leaving InitSessionUser Id()|

28431| 00000007|05/09/2007|13:35:35.3 29| 0|
StartEndFunctio n|End PageLoad|

28432| 00000001|05/09/2007|13:35:35.3 29| 0|
StartEndFunctio n|End PageLoad|

28433| 00000001|05/09/2007|13:35:36.1 42| 813| Application Error|An
entry with the same key already exists.<?xml version="1.0"
encoding="utf-8"?>[0D][0A]<RTELogClientEx ceptionContaine r
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema">[0D][0A]
<Source>Syste m</Source>[0D][0A] <StackTrace at
System.Collecti ons.Specialized .ListDictionary .Add(Object key, Object
value)[0D][0A] at
System.Web.UI.C lientScriptMana ger.RegisterScr iptBlock(Script Key key, String
script, ListDictionary& amp; scriptBlocks, ArrayList&amp; scriptList, Boolean
needsScriptTags , Boolean&amp; inScriptBlock)[0D][0A] at
System.Web.UI.C lientScriptMana ger.RegisterScr iptBlock(Script Key key, String
script, ClientAPIRegist erType type)[0D][0A] at
System.Web.UI.C lientScriptMana ger.RegisterCli entScriptInclud e(Type type,
String key, String url)[0D][0A] at
System.Web.UI.S criptRegistrati onManager.Regis terClientScript Include(Control
control, Type type, String key, String url)[0D][0A] at
System.Web.UI.S criptManager.Re gisterClientScr iptIncludeInter nal(Control
control, Type type, String key, String url)[0D][0A] at
System.Web.UI.S criptManager.Re gisterScripts()[0D][0A] at
System.Web.UI.S criptManager.On PagePreRenderCo mplete(Object sender, EventArgs
e)[0D][0A] at System.EventHan dler.Invoke(Obj ect sender, EventArgs
e)[0D][0A] at System.Web.UI.P age.OnPreRender Complete(EventA rgs e)[0D][0A]
at System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean
includeStagesAf terAsyncPoint)</StackTrace>[0D][0A] <Message>An entry with
the same key already
exists.</Message>[0D][0A]</RTELogClientExc eptionContainer >|


"Patrice" <http://www.chez.com/scribe/wrote in message
news:Oh******** ********@TK2MSF TNGP05.phx.gbl. ..
IMO you'll have to explain a bit what you meant or how you do :
- A client request is processed in parrallel by two threads
- There is 2 disctinct session for the request
or what it your overall goal.

The standard situation is that an HTTP request is processed by a single
thread and is binded to a single session so it would seems you try
something special. My first thought would be that you try to add the same
key twice in distinct threads when you have a single request coming and
that the clientscriptman ager is likely not designed to handle such an
unusual situation

It's likely that your best bet is first to explain what you are trying to
do so that we can better grasp the context (you have build in capabilites
for async processing in .NET 2.0 that you could perhaps use ?)...

--
Patrice

"Olivier Matrot" <ol************ ****@online.nos pama écrit dans le
message de news: %2************* ***@TK2MSFTNGP0 6.phx.gbl...
>More information :
After further analysis, it appears that :
- There is 2 disctinct session for the request (Session_Start in
global.asax)
- One of the session ends (Session_End in global.asax).
- The ramining session is used for subsequent requests, and everything
works fine.

"Olivier Matrot" <ol************ ****@online.nos pamwrote in message
news:uS******* *******@TK2MSFT NGP02.phx.gbl.. .
>>Hello,
I have a problem with an ASP.NET 2.0 Application.
A client request is processed in parrallel by two threads.
This ends with the following exception :

<Source>Syste m</Source>
<StackTrace at
System.Collec tions.Specializ ed.ListDictiona ry.Add(Object key, Object
value)
at System.Web.UI.C lientScriptMana ger.RegisterScr iptBlock(Script Key
key, String script, ListDictionary& amp; scriptBlocks, ArrayList&amp;
scriptList, Boolean needsScriptTags , Boolean&amp; inScriptBlock)
at System.Web.UI.C lientScriptMana ger.RegisterScr iptBlock(Script Key
key, String script, ClientAPIRegist erType type)
at System.Web.UI.C lientScriptMana ger.RegisterCli entScriptInclud e(Type
type, String key, String url)
at
System.Web.UI .ScriptRegistra tionManager.Reg isterClientScri ptInclude(Contr ol
control, Type type, String key, String url)
at
System.Web.UI .ScriptManager. RegisterClientS criptIncludeInt ernal(Control
control, Type type, String key, String url)
at System.Web.UI.S criptManager.Re gisterScripts()
at System.Web.UI.S criptManager.On PagePreRenderCo mplete(Object sender,
EventArgs e)
at System.EventHan dler.Invoke(Obj ect sender, EventArgs e)
at System.Web.UI.P age.OnPreRender Complete(EventA rgs e)
at System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStages BeforeAsyncPoin t, Boolean
includeStages AfterAsyncPoint )</StackTrace>
<Message>An entry with the same key already exists.</Message>

Any idea ?
Thanks in advance.



Sep 6 '07 #4
Humm... Never seen this.

My first thought would be having the ASPX page handler registered twice ?
But as you don't have this yourself perhaps those users are behind a network
equipement such as a proxy. But then the IIS log show anyway a single
request so it would be something server side ?

Really weird...

Good luck.
--
Patrice

"Olivier Matrot" <ol************ ****@online.nos pama écrit dans le message
de news: uA************* *@TK2MSFTNGP05. phx.gbl...
My goal is not to have a client request processed twice.
This is a weird behavior I have on my web site.
This is happening primarily when the application is started for the first
time, but sometimes it is on a simple page request. No page in particular
is concerned, and I can't reproduce it myself.
My application generates a log file, and the facts exposed here are
clearly visible in that file.
The IIS log file shows that only one request is comming from the client.
Take a look at the following :

Line |Thread Id| Date| Hour|Delta| Category|Text

------------------------------------------------------------------------------------------

28387| 00000007|05/09/2007|13:35:33.6 11| + | Hit|Session starting from
[196.201.XX.XXX]...|

28388| 00000007|05/09/2007|13:35:33.6 11| 0| Browsers|Browse r is : [IE]
Version [6.0] on [WinXP]|

28393| 00000001|05/09/2007|13:35:33.6 11| 0| Hit|Session starting from
[196.201.XX.XXX]...|

28394| 00000001|05/09/2007|13:35:33.6 11| 0| Browsers|Browse r is : [IE]
Version [6.0] on [WinXP]|

28396| 00000007|05/09/2007|13:35:33.7 83| 172|Client Language
Preferences|Pre fered Language is [fr] LCID -12|

28397| 00000001|05/09/2007|13:35:33.7 83| 0|Client Language
Preferences|Pre fered Language is [fr] LCID -12|

28398| 00000001|05/09/2007|13:35:33.7 98| 15| |AcquireRequest State|

28399| 00000001|05/09/2007|13:35:33.7 98| 0|
|No Cookie with prefered language. Browser languages will be analysed
(english is default) !|

28400| 00000001|05/09/2007|13:35:33.7 98| 0| |Selected runtime culture
is [fr]|

28401| 00000001|05/09/2007|13:35:33.7 98| 0|
||

28402| 00000007|05/09/2007|13:35:33.7 98| 0| |AcquireRequest State|

28406| 00000001|05/09/2007|13:35:34.5 33| 735| StartEndFunctio n|Page
[/members/Web/SendFax.aspx] is requested for the first time.|

28407| 00000007|05/09/2007|13:35:34.5 33| 0| StartEndFunctio n|Page
[/members/Web/SendFax.aspx] is requested for the first time.|

28408| 00000001|05/09/2007|13:35:34.5 64| 31| StartEndFunctio n|Entering
InitSessionUser Id()|

28409| 00000001|05/09/2007|13:35:34.5 64| 0| |Time zone offset (GMT)
cookie value is [0]|

28410| 00000007|05/09/2007|13:35:34.5 64| 0| StartEndFunctio n|Entering
InitSessionUser Id()|

28411| 00000007|05/09/2007|13:35:34.5 64| 0| |Time zone offset (GMT)
cookie value is [0]|

28412| 00000001|05/09/2007|13:35:35.1 89| 625| |********* TEMP :
GetRoles() : User is
[54************* *************** *************** @yahoo.fr] *********|

28413| 00000007|05/09/2007|13:35:35.2 04| 15| |********* TEMP :
GetRoles() : User is
[54************* *************** *************** @yahoo.fr] *********|

28414| 00000007|05/09/2007|13:35:35.2 51| 47| RTEFBLDAPUser|F inding
existing user [xx************@ yahoo.fr] in []...|

28415| 00000001|05/09/2007|13:35:35.2 51| 0| RTEFBLDAPUser|F inding
existing user [xx************@ yahoo.fr] in []...|

28416| 00000001|05/09/2007|13:35:35.2 67| 16|
DirectoryHelper |DetectDirector y [LDAP://rcs.private]|

28417| 00000007|05/09/2007|13:35:35.2 67| 0|
DirectoryHelper |DetectDirector y [LDAP://rcs.private]|

28418| 00000001|05/09/2007|13:35:35.2 67| 0| DirectoryHelper |Directory
is detected as [ActiveDirectory]|

28419| 00000001|05/09/2007|13:35:35.2 67| 0| DirectoryHelper |Naming
context from RootDSE is [DC=rcs,DC=priva te]|

28420| 00000007|05/09/2007|13:35:35.2 67| 0| DirectoryHelper |Directory
is detected as [ActiveDirectory]|

28421| 00000007|05/09/2007|13:35:35.2 67| 0| DirectoryHelper |Naming
context from RootDSE is [DC=rcs,DC=priva te]|

28422| 00000001|05/09/2007|13:35:35.2 67| 0|
DirectoryHelper |GetDefaultCont ainer
[LDAP://rcs.private/ou=XXXXXXXXXXXX XXX,OU=XXXXXXXX XX,DC=rcs,DC=pr ivate]
with user [RCS\rw.gofaxbox] and AuthenticationT ypes [Secure] |

28423| 00000007|05/09/2007|13:35:35.2 67| 0|
DirectoryHelper |GetDefaultCont ainer
[LDAP://rcs.private/ou=XXXXXXXXXXXX XXX,OU=XXXXXXXX XX,DC=rcs,DC=pr ivate]
with user [RCS\rw.gofaxbox] and AuthenticationT ypes [Secure] |

28424| 00000001|05/09/2007|13:35:35.2 67| 0|
RTEFBLDAPUser|D irectorySearche r Filter is
[(&((objectClass =user)(ma****** **********@yaho o.fr)))] Scope is [Subtree]|

28425| 00000007|05/09/2007|13:35:35.2 67| 0|
RTEFBLDAPUser|D irectorySearche r Filter is
[(&((objectClass =user)(ma****** **********@yaho o.fr)))] Scope is [Subtree]|

28427| 00000001|05/09/2007|13:35:35.3 14| 47| |Find all user's email...|

28428| 00000007|05/09/2007|13:35:35.3 14| 0| |Find all user's email...|

28429| 00000001|05/09/2007|13:35:35.3 29| 15| StartEndFunctio n|Leaving
InitSessionUser Id()|

28430| 00000007|05/09/2007|13:35:35.3 29| 0| StartEndFunctio n|Leaving
InitSessionUser Id()|

28431| 00000007|05/09/2007|13:35:35.3 29| 0| StartEndFunctio n|End
PageLoad|

28432| 00000001|05/09/2007|13:35:35.3 29| 0| StartEndFunctio n|End
PageLoad|

28433| 00000001|05/09/2007|13:35:36.1 42| 813| Application
Error|An entry with the same key already exists.<?xml version="1.0"
encoding="utf-8"?>[0D][0A]<RTELogClientEx ceptionContaine r
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema">[0D][0A]
<Source>Syste m</Source>[0D][0A] <StackTrace at
System.Collecti ons.Specialized .ListDictionary .Add(Object key, Object
value)[0D][0A] at
System.Web.UI.C lientScriptMana ger.RegisterScr iptBlock(Script Key key,
String script, ListDictionary& amp; scriptBlocks, ArrayList&amp;
scriptList, Boolean needsScriptTags , Boolean&amp; inScriptBlock)[0D][0A]
at System.Web.UI.C lientScriptMana ger.RegisterScr iptBlock(Script Key key,
String script, ClientAPIRegist erType type)[0D][0A] at
System.Web.UI.C lientScriptMana ger.RegisterCli entScriptInclud e(Type type,
String key, String url)[0D][0A] at
System.Web.UI.S criptRegistrati onManager.Regis terClientScript Include(Control
control, Type type, String key, String url)[0D][0A] at
System.Web.UI.S criptManager.Re gisterClientScr iptIncludeInter nal(Control
control, Type type, String key, String url)[0D][0A] at
System.Web.UI.S criptManager.Re gisterScripts()[0D][0A] at
System.Web.UI.S criptManager.On PagePreRenderCo mplete(Object sender,
EventArgs e)[0D][0A] at System.EventHan dler.Invoke(Obj ect sender,
EventArgs e)[0D][0A] at System.Web.UI.P age.OnPreRender Complete(EventA rgs
e)[0D][0A] at System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean
includeStagesAf terAsyncPoint)</StackTrace>[0D][0A] <Message>An entry with
the same key already
exists.</Message>[0D][0A]</RTELogClientExc eptionContainer >|


"Patrice" <http://www.chez.com/scribe/wrote in message
news:Oh******** ********@TK2MSF TNGP05.phx.gbl. ..
>IMO you'll have to explain a bit what you meant or how you do :
- A client request is processed in parrallel by two threads
- There is 2 disctinct session for the request
or what it your overall goal.

The standard situation is that an HTTP request is processed by a single
thread and is binded to a single session so it would seems you try
something special. My first thought would be that you try to add the same
key twice in distinct threads when you have a single request coming and
that the clientscriptman ager is likely not designed to handle such an
unusual situation

It's likely that your best bet is first to explain what you are trying to
do so that we can better grasp the context (you have build in capabilites
for async processing in .NET 2.0 that you could perhaps use ?)...

--
Patrice

"Olivier Matrot" <ol************ ****@online.nos pama écrit dans le
message de news: %2************* ***@TK2MSFTNGP0 6.phx.gbl...
>>More information :
After further analysis, it appears that :
- There is 2 disctinct session for the request (Session_Start in
global.asax )
- One of the session ends (Session_End in global.asax).
- The ramining session is used for subsequent requests, and everything
works fine.

"Olivier Matrot" <ol************ ****@online.nos pamwrote in message
news:uS****** ********@TK2MSF TNGP02.phx.gbl. ..
Hello,
I have a problem with an ASP.NET 2.0 Application.
A client request is processed in parrallel by two threads.
This ends with the following exception :

<Source>Syste m</Source>
<StackTrace at
System.Colle ctions.Speciali zed.ListDiction ary.Add(Object key, Object
value)
at System.Web.UI.C lientScriptMana ger.RegisterScr iptBlock(Script Key
key, String script, ListDictionary& amp; scriptBlocks, ArrayList&amp;
scriptList , Boolean needsScriptTags , Boolean&amp; inScriptBlock)
at System.Web.UI.C lientScriptMana ger.RegisterScr iptBlock(Script Key
key, String script, ClientAPIRegist erType type)
at System.Web.UI.C lientScriptMana ger.RegisterCli entScriptInclud e(Type
type, String key, String url)
at
System.Web.U I.ScriptRegistr ationManager.Re gisterClientScr iptInclude(Cont rol
control, Type type, String key, String url)
at
System.Web.U I.ScriptManager .RegisterClient ScriptIncludeIn ternal(Control
control, Type type, String key, String url)
at System.Web.UI.S criptManager.Re gisterScripts()
at System.Web.UI.S criptManager.On PagePreRenderCo mplete(Object sender,
EventArgs e)
at System.EventHan dler.Invoke(Obj ect sender, EventArgs e)
at System.Web.UI.P age.OnPreRender Complete(EventA rgs e)
at System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStage sBeforeAsyncPoi nt, Boolean
includeStage sAfterAsyncPoin t)</StackTrace>
<Message>An entry with the same key already exists.</Message>

Any idea ?
Thanks in advance.



Sep 6 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1743
by: JT | last post by:
im trying to use the following code to log whenever a user clicks through this particlular message box - however, this currently logs regardless of whether or not the message box was clicked - im assuming this is because the server-side code can't see the client side if condition. but how can i set the varMsgBox variable as a server-side variable? <!--switch to client-side VBScript to use the MsgBox--> <script language="VBSCRIPT"> dim...
2
1744
by: quotto | last post by:
I have written a web server application using ASP.Net that handles requests from an HTTP client. I wrote a small test client in VB6 using the MSINet ActiveX control, to load test the server. The client makes repeated requests of the server and keeps track of the number per second it is able to get processed. When I run both the client and server on one machine, I get about 150 per second. When I move the client to another machine on my LAN, the...
32
4126
by: James Curran | last post by:
I'd like to make the following proposal for a new feature for the C# language. I have no connection with the C# team at Microsoft. I'm posting it here to gather input to refine it, in an "open Source" manner, and in an attempt to build a ground-swell of support to convince the folks at Microsoft to add it. Proposal: "first:" "last:" sections in a "foreach" block The problem: The foreach statement allows iterating over all the...
1
1987
by: Darren McDowell via .NET 247 | last post by:
I have a situation, I was wondering if someone could help me. Wehave a .net web service, it runs several transactions in sqlserver 2000. We have several clients which connect to this webservice in order to run their transactions. If the client lossesconnectivity during the transaction, our web service transactioncompletes, but these believe they have a failure. Is thereanyway to check the client connectivity and rollback thetransaction if the...
1
3411
by: WebServiceSecurity | last post by:
The issue involves the following technologies: - 1. .NET 2.0 Framework 2. WSE2.0 (WS-Security) 3. X.509 certificates 4. BEA Weblogic 8.1.5
3
1911
by: asadikhan | last post by:
Hi, I have a client server application where the client sends a request to the server with a filename. The server needs to read the file contents, massage the data, and then add it to the database. However, if two requests show up at the same time, I need to create some sort of a waiting mechanism or queue. I was thinking about using a Singleton Server Activation object for this reason, but I am not sure how I can implement the...
1
1407
by: beachdog | last post by:
I have a scenario that I think is probably not all that uncommon, and I would like to fall into the standard pattern of implementing it, if one exists. I have a process which wants to expose a web service that is a bit more complicated that an standard request-response, or in- out, message exchange pattern. In my case, my service will receive a request and transmit a response immediately acknowledging the request. I then want to send...
1
1862
by: Olivier Matrot | last post by:
I have a problem with an ASP.NET 2.0 Application. A client request is processed in parrallel by two threads. After further analysis, it appears that : - There is 2 disctinct session for the request (Session_Start in global.asax) - One of the session ends (Session_End in global.asax). - The ramining session is used for subsequent requests, and everything works fine. - This is happening primarily when the application is started for the...
3
1219
by: Achim Domma | last post by:
Hi, I have a weird problem, which is quite hard to debug: An ascx-Control seems to be constructed and processed twice. The AutoEventWireup attribute is set to true. Looking at google, I found a lot of hints about OnInit and Page_Load called twice. So I set AutoEventWireup to false and connected the Page_Load event via code. And it's still called twice! Then I implemented a new default constructor and a boolean member
0
8146
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8647
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8592
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8297
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7121
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4063
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2579
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.