473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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>System</Source>
<StackTrace at System.Collections.Specialized.ListDictionary.Add( Object
key, Object value)
at System.Web.UI.ClientScriptManager.RegisterScriptBl ock(ScriptKey key,
String script, ListDictionary&amp; scriptBlocks, ArrayList&amp; scriptList,
Boolean needsScriptTags, Boolean&amp; inScriptBlock)
at System.Web.UI.ClientScriptManager.RegisterScriptBl ock(ScriptKey key,
String script, ClientAPIRegisterType type)
at System.Web.UI.ClientScriptManager.RegisterClientSc riptInclude(Type
type, String key, String url)
at
System.Web.UI.ScriptRegistrationManager.RegisterCl ientScriptInclude(Control
control, Type type, String key, String url)
at
System.Web.UI.ScriptManager.RegisterClientScriptIn cludeInternal(Control
control, Type type, String key, String url)
at System.Web.UI.ScriptManager.RegisterScripts()
at System.Web.UI.ScriptManager.OnPagePreRenderComplet e(Object sender,
EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Page.OnPreRenderComplete(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint)</StackTrace>
<Message>An entry with the same key already exists.</Message>

Any idea ?
Thanks in advance.
Sep 5 '07 #1
4 2678
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.nospamwrote in message
news:uS**************@TK2MSFTNGP02.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>System</Source>
<StackTrace at
System.Collections.Specialized.ListDictionary.Add( Object key, Object
value)
at System.Web.UI.ClientScriptManager.RegisterScriptBl ock(ScriptKey key,
String script, ListDictionary&amp; scriptBlocks, ArrayList&amp;
scriptList, Boolean needsScriptTags, Boolean&amp; inScriptBlock)
at System.Web.UI.ClientScriptManager.RegisterScriptBl ock(ScriptKey key,
String script, ClientAPIRegisterType type)
at System.Web.UI.ClientScriptManager.RegisterClientSc riptInclude(Type
type, String key, String url)
at
System.Web.UI.ScriptRegistrationManager.RegisterCl ientScriptInclude(Control
control, Type type, String key, String url)
at
System.Web.UI.ScriptManager.RegisterClientScriptIn cludeInternal(Control
control, Type type, String key, String url)
at System.Web.UI.ScriptManager.RegisterScripts()
at System.Web.UI.ScriptManager.OnPagePreRenderComplet e(Object sender,
EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Page.OnPreRenderComplete(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint)</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
clientscriptmanager 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.nospama écrit dans le message
de news: %2****************@TK2MSFTNGP06.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.nospamwrote in message
news:uS**************@TK2MSFTNGP02.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>System</Source>
<StackTrace at
System.Collections.Specialized.ListDictionary.Add (Object key, Object
value)
at System.Web.UI.ClientScriptManager.RegisterScriptBl ock(ScriptKey key,
String script, ListDictionary&amp; scriptBlocks, ArrayList&amp;
scriptList, Boolean needsScriptTags, Boolean&amp; inScriptBlock)
at System.Web.UI.ClientScriptManager.RegisterScriptBl ock(ScriptKey key,
String script, ClientAPIRegisterType type)
at System.Web.UI.ClientScriptManager.RegisterClientSc riptInclude(Type
type, String key, String url)
at
System.Web.UI.ScriptRegistrationManager.RegisterC lientScriptInclude(Control
control, Type type, String key, String url)
at
System.Web.UI.ScriptManager.RegisterClientScriptI ncludeInternal(Control
control, Type type, String key, String url)
at System.Web.UI.ScriptManager.RegisterScripts()
at System.Web.UI.ScriptManager.OnPagePreRenderComplet e(Object sender,
EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Page.OnPreRenderComplete(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint)</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.611| + |
Hit|Session starting from [196.201.XX.XXX]...|

28388| 00000007|05/09/2007|13:35:33.611| 0|
Browsers|Browser is : [IE] Version [6.0] on [WinXP]|

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

28394| 00000001|05/09/2007|13:35:33.611| 0|
Browsers|Browser is : [IE] Version [6.0] on [WinXP]|

28396| 00000007|05/09/2007|13:35:33.783| 172|Client Language
Preferences|Prefered Language is [fr] LCID -12|

28397| 00000001|05/09/2007|13:35:33.783| 0|Client Language
Preferences|Prefered Language is [fr] LCID -12|

28398| 00000001|05/09/2007|13:35:33.798| 15|
|AcquireRequestState|

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

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

28401| 00000001|05/09/2007|13:35:33.798| 0| ||

28402| 00000007|05/09/2007|13:35:33.798| 0|
|AcquireRequestState|

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

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

28408| 00000001|05/09/2007|13:35:34.564| 31|
StartEndFunction|Entering InitSessionUserId()|

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

28410| 00000007|05/09/2007|13:35:34.564| 0|
StartEndFunction|Entering InitSessionUserId()|

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

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

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

28414| 00000007|05/09/2007|13:35:35.251| 47|
RTEFBLDAPUser|Finding existing user [xx************@yahoo.fr] in []...|

28415| 00000001|05/09/2007|13:35:35.251| 0|
RTEFBLDAPUser|Finding existing user [xx************@yahoo.fr] in []...|

28416| 00000001|05/09/2007|13:35:35.267| 16|
DirectoryHelper|DetectDirectory [LDAP://rcs.private]|

28417| 00000007|05/09/2007|13:35:35.267| 0|
DirectoryHelper|DetectDirectory [LDAP://rcs.private]|

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

28419| 00000001|05/09/2007|13:35:35.267| 0|
DirectoryHelper|Naming context from RootDSE is [DC=rcs,DC=private]|

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

28421| 00000007|05/09/2007|13:35:35.267| 0|
DirectoryHelper|Naming context from RootDSE is [DC=rcs,DC=private]|

28422| 00000001|05/09/2007|13:35:35.267| 0|
DirectoryHelper|GetDefaultContainer
[LDAP://rcs.private/ou=XXXXXXXXXXXXXXX,OU=XXXXXXXXXX,DC=rcs,DC=private] with
user [RCS\rw.gofaxbox] and AuthenticationTypes [Secure] |

28423| 00000007|05/09/2007|13:35:35.267| 0|
DirectoryHelper|GetDefaultContainer
[LDAP://rcs.private/ou=XXXXXXXXXXXXXXX,OU=XXXXXXXXXX,DC=rcs,DC=private] with
user [RCS\rw.gofaxbox] and AuthenticationTypes [Secure] |

28424| 00000001|05/09/2007|13:35:35.267| 0|
RTEFBLDAPUser|DirectorySearcher Filter is
[(&((objectClass=user)(ma****************@yahoo.fr) ))] Scope is [Subtree]|

28425| 00000007|05/09/2007|13:35:35.267| 0|
RTEFBLDAPUser|DirectorySearcher Filter is
[(&((objectClass=user)(ma****************@yahoo.fr) ))] Scope is [Subtree]|

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

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

28429| 00000001|05/09/2007|13:35:35.329| 15|
StartEndFunction|Leaving InitSessionUserId()|

28430| 00000007|05/09/2007|13:35:35.329| 0|
StartEndFunction|Leaving InitSessionUserId()|

28431| 00000007|05/09/2007|13:35:35.329| 0|
StartEndFunction|End PageLoad|

28432| 00000001|05/09/2007|13:35:35.329| 0|
StartEndFunction|End PageLoad|

28433| 00000001|05/09/2007|13:35:36.142| 813| Application Error|An
entry with the same key already exists.<?xml version="1.0"
encoding="utf-8"?>[0D][0A]<RTELogClientExceptionContainer
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">[0D][0A]
<Source>System</Source>[0D][0A] <StackTrace at
System.Collections.Specialized.ListDictionary.Add( Object key, Object
value)[0D][0A] at
System.Web.UI.ClientScriptManager.RegisterScriptBl ock(ScriptKey key, String
script, ListDictionary&amp; scriptBlocks, ArrayList&amp; scriptList, Boolean
needsScriptTags, Boolean&amp; inScriptBlock)[0D][0A] at
System.Web.UI.ClientScriptManager.RegisterScriptBl ock(ScriptKey key, String
script, ClientAPIRegisterType type)[0D][0A] at
System.Web.UI.ClientScriptManager.RegisterClientSc riptInclude(Type type,
String key, String url)[0D][0A] at
System.Web.UI.ScriptRegistrationManager.RegisterCl ientScriptInclude(Control
control, Type type, String key, String url)[0D][0A] at
System.Web.UI.ScriptManager.RegisterClientScriptIn cludeInternal(Control
control, Type type, String key, String url)[0D][0A] at
System.Web.UI.ScriptManager.RegisterScripts()[0D][0A] at
System.Web.UI.ScriptManager.OnPagePreRenderComplet e(Object sender, EventArgs
e)[0D][0A] at System.EventHandler.Invoke(Object sender, EventArgs
e)[0D][0A] at System.Web.UI.Page.OnPreRenderComplete(EventArgs e)[0D][0A]
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint)</StackTrace>[0D][0A] <Message>An entry with
the same key already
exists.</Message>[0D][0A]</RTELogClientExceptionContainer>|


"Patrice" <http://www.chez.com/scribe/wrote in message
news:Oh****************@TK2MSFTNGP05.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 clientscriptmanager 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.nospama écrit dans le
message de news: %2****************@TK2MSFTNGP06.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.nospamwrote in message
news:uS**************@TK2MSFTNGP02.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>System</Source>
<StackTrace at
System.Collections.Specialized.ListDictionary.Ad d(Object key, Object
value)
at System.Web.UI.ClientScriptManager.RegisterScriptBl ock(ScriptKey
key, String script, ListDictionary&amp; scriptBlocks, ArrayList&amp;
scriptList, Boolean needsScriptTags, Boolean&amp; inScriptBlock)
at System.Web.UI.ClientScriptManager.RegisterScriptBl ock(ScriptKey
key, String script, ClientAPIRegisterType type)
at System.Web.UI.ClientScriptManager.RegisterClientSc riptInclude(Type
type, String key, String url)
at
System.Web.UI.ScriptRegistrationManager.Register ClientScriptInclude(Control
control, Type type, String key, String url)
at
System.Web.UI.ScriptManager.RegisterClientScript IncludeInternal(Control
control, Type type, String key, String url)
at System.Web.UI.ScriptManager.RegisterScripts()
at System.Web.UI.ScriptManager.OnPagePreRenderComplet e(Object sender,
EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Page.OnPreRenderComplete(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint)</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.nospama é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.611| + | Hit|Session starting from
[196.201.XX.XXX]...|

28388| 00000007|05/09/2007|13:35:33.611| 0| Browsers|Browser is : [IE]
Version [6.0] on [WinXP]|

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

28394| 00000001|05/09/2007|13:35:33.611| 0| Browsers|Browser is : [IE]
Version [6.0] on [WinXP]|

28396| 00000007|05/09/2007|13:35:33.783| 172|Client Language
Preferences|Prefered Language is [fr] LCID -12|

28397| 00000001|05/09/2007|13:35:33.783| 0|Client Language
Preferences|Prefered Language is [fr] LCID -12|

28398| 00000001|05/09/2007|13:35:33.798| 15| |AcquireRequestState|

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

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

28401| 00000001|05/09/2007|13:35:33.798| 0|
||

28402| 00000007|05/09/2007|13:35:33.798| 0| |AcquireRequestState|

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

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

28408| 00000001|05/09/2007|13:35:34.564| 31| StartEndFunction|Entering
InitSessionUserId()|

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

28410| 00000007|05/09/2007|13:35:34.564| 0| StartEndFunction|Entering
InitSessionUserId()|

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

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

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

28414| 00000007|05/09/2007|13:35:35.251| 47| RTEFBLDAPUser|Finding
existing user [xx************@yahoo.fr] in []...|

28415| 00000001|05/09/2007|13:35:35.251| 0| RTEFBLDAPUser|Finding
existing user [xx************@yahoo.fr] in []...|

28416| 00000001|05/09/2007|13:35:35.267| 16|
DirectoryHelper|DetectDirectory [LDAP://rcs.private]|

28417| 00000007|05/09/2007|13:35:35.267| 0|
DirectoryHelper|DetectDirectory [LDAP://rcs.private]|

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

28419| 00000001|05/09/2007|13:35:35.267| 0| DirectoryHelper|Naming
context from RootDSE is [DC=rcs,DC=private]|

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

28421| 00000007|05/09/2007|13:35:35.267| 0| DirectoryHelper|Naming
context from RootDSE is [DC=rcs,DC=private]|

28422| 00000001|05/09/2007|13:35:35.267| 0|
DirectoryHelper|GetDefaultContainer
[LDAP://rcs.private/ou=XXXXXXXXXXXXXXX,OU=XXXXXXXXXX,DC=rcs,DC=private]
with user [RCS\rw.gofaxbox] and AuthenticationTypes [Secure] |

28423| 00000007|05/09/2007|13:35:35.267| 0|
DirectoryHelper|GetDefaultContainer
[LDAP://rcs.private/ou=XXXXXXXXXXXXXXX,OU=XXXXXXXXXX,DC=rcs,DC=private]
with user [RCS\rw.gofaxbox] and AuthenticationTypes [Secure] |

28424| 00000001|05/09/2007|13:35:35.267| 0|
RTEFBLDAPUser|DirectorySearcher Filter is
[(&((objectClass=user)(ma****************@yahoo.fr) ))] Scope is [Subtree]|

28425| 00000007|05/09/2007|13:35:35.267| 0|
RTEFBLDAPUser|DirectorySearcher Filter is
[(&((objectClass=user)(ma****************@yahoo.fr) ))] Scope is [Subtree]|

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

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

28429| 00000001|05/09/2007|13:35:35.329| 15| StartEndFunction|Leaving
InitSessionUserId()|

28430| 00000007|05/09/2007|13:35:35.329| 0| StartEndFunction|Leaving
InitSessionUserId()|

28431| 00000007|05/09/2007|13:35:35.329| 0| StartEndFunction|End
PageLoad|

28432| 00000001|05/09/2007|13:35:35.329| 0| StartEndFunction|End
PageLoad|

28433| 00000001|05/09/2007|13:35:36.142| 813| Application
Error|An entry with the same key already exists.<?xml version="1.0"
encoding="utf-8"?>[0D][0A]<RTELogClientExceptionContainer
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">[0D][0A]
<Source>System</Source>[0D][0A] <StackTrace at
System.Collections.Specialized.ListDictionary.Add( Object key, Object
value)[0D][0A] at
System.Web.UI.ClientScriptManager.RegisterScriptBl ock(ScriptKey key,
String script, ListDictionary&amp; scriptBlocks, ArrayList&amp;
scriptList, Boolean needsScriptTags, Boolean&amp; inScriptBlock)[0D][0A]
at System.Web.UI.ClientScriptManager.RegisterScriptBl ock(ScriptKey key,
String script, ClientAPIRegisterType type)[0D][0A] at
System.Web.UI.ClientScriptManager.RegisterClientSc riptInclude(Type type,
String key, String url)[0D][0A] at
System.Web.UI.ScriptRegistrationManager.RegisterCl ientScriptInclude(Control
control, Type type, String key, String url)[0D][0A] at
System.Web.UI.ScriptManager.RegisterClientScriptIn cludeInternal(Control
control, Type type, String key, String url)[0D][0A] at
System.Web.UI.ScriptManager.RegisterScripts()[0D][0A] at
System.Web.UI.ScriptManager.OnPagePreRenderComplet e(Object sender,
EventArgs e)[0D][0A] at System.EventHandler.Invoke(Object sender,
EventArgs e)[0D][0A] at System.Web.UI.Page.OnPreRenderComplete(EventArgs
e)[0D][0A] at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint)</StackTrace>[0D][0A] <Message>An entry with
the same key already
exists.</Message>[0D][0A]</RTELogClientExceptionContainer>|


"Patrice" <http://www.chez.com/scribe/wrote in message
news:Oh****************@TK2MSFTNGP05.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 clientscriptmanager 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.nospama écrit dans le
message de news: %2****************@TK2MSFTNGP06.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.nospamwrote in message
news:uS**************@TK2MSFTNGP02.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>System</Source>
<StackTrace at
System.Collections.Specialized.ListDictionary.A dd(Object key, Object
value)
at System.Web.UI.ClientScriptManager.RegisterScriptBl ock(ScriptKey
key, String script, ListDictionary&amp; scriptBlocks, ArrayList&amp;
scriptList, Boolean needsScriptTags, Boolean&amp; inScriptBlock)
at System.Web.UI.ClientScriptManager.RegisterScriptBl ock(ScriptKey
key, String script, ClientAPIRegisterType type)
at System.Web.UI.ClientScriptManager.RegisterClientSc riptInclude(Type
type, String key, String url)
at
System.Web.UI.ScriptRegistrationManager.Registe rClientScriptInclude(Control
control, Type type, String key, String url)
at
System.Web.UI.ScriptManager.RegisterClientScrip tIncludeInternal(Control
control, Type type, String key, String url)
at System.Web.UI.ScriptManager.RegisterScripts()
at System.Web.UI.ScriptManager.OnPagePreRenderComplet e(Object sender,
EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Page.OnPreRenderComplete(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint)</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
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...
2
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...
32
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...
1
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...
1
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
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...
1
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...
1
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
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...
0
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...

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.