473,399 Members | 2,858 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,399 software developers and data experts.

REE: Error in ASP internal code causing sessions to be dropped

I have gotten the same exception in multiple projects.

I have solved the underlying problem.

My question is if anyone knew of a setting that would cause this
exception to be thrown.

A codeveloper on the same project can get a copy of the project from
VSS and does not get this exception, ever. I do. We both have the
code that causes this exception to be thrown. We do NOT checkin our
solution files into VSS so they are different.

To detail the problem:

I recompile and play the ASP.NET application for debugging on my local
development PC (VS2003, Win2003 server). The build is clean.

Before the first page loads I receive an exeption dialog in the IDE:
'System.ArgumentException'
Additional information: An entry with the same key
already exists.

If I break, no source code is avaiable. So I reviewed the call stack.
It appears to be the same as Andrew's post below.
System.Collections.Specialized.ListDictionary::Add
(System.Object key = {String*}, System.Object value =
{String*}) + 0xee bytes


I noticed earlier in the call stack that it was processing one of my
ascx files, and in my call stack the {String*} was specific to an html
attibute tag that I had in the ascx. I found that the attibute
"cellspacing" was used twice in my html: <table CellSpacing="0"
cellspacing="1" ......

So removing the duplicate attributes solved this problem.

So to repeat my question: why is My DEV environment throwing this
exception, and my codeveloper on this project does NOT throw this
exception during ASP.NET debugging?
Thanks

Duane H.
This is a new question and reply to the following thread:
----------------------------------------------------------
From: Andrew Ressler (an****@microoutsource.com)
Subject: Error in ASP internal code causing sessions to be dropped
View this article only
Newsgroups: microsoft.public.dotnet.framework.aspnet
Date: 2002-03-19 08:52:21 PST
I get an exception thrown on a particular page
sporadically. It appears to be some kind of parsing
error on the first declaration in my aspx file. Can
someone else verify to Microsoft that this is an
important bug to fix?

This is a really obnoxious error because everytime I make
a change in an ASPx page and restart and then by the time
I click to get to the page to test, it throws away the
session and I have to start again.

Here is the error message:
:A first chance exception of
type 'System.ArgumentException' occurred in system.dll

Additional information: An entry with the same key
already exists."

Here is the first line:
<%@ Page Language="c#" CodeBehind="MnFrm.aspx.cs"
AutoEventWireup="false" Inherits="ISHelp.Home.MnFrm" %>

I may have narrowed it down to only happening after I
have done a rebuild of my source code. After getting the
error, if I continue past it and than stop debugging and
start again, I don't get the error.

Also, I am only visually seeing the error because I have
break execution on for all exceptions.

I don't get this error for any other pages. Including
several others that are coded similarly to this one.

Anybody else see this bug. It seems to screw up my
system when that happens. However, it is pretty random
when it happens.

Here is a stack trace.
system.dll!

System.Collections.Specialized.ListDictionary::Add
(System.Object key = {String*}, System.Object value =
{String*}) + 0xee bytes
system.web.dll!
System.Web.UI.TemplateParser::ProcessAttributes
(System.Text.RegularExpressions.Match match =
{System.Text.RegularExpressions.Match},
System.Collections.IDictionary attribs =
{System.Collections.Specialized.ListDictionary}, bool
fDirective = false, String* duplicateAttribute = null) +
0x25f bytes
system.web.dll!
System.Web.UI.TemplateParser::ProcessBeginTag
(System.Text.RegularExpressions.Match match =
{System.Text.RegularExpressions.Match}, String* inputText
= "<%@ Page Language="c#" CodeBehind="MnFrm.aspx.cs"
AutoEventWireup="false" Inherits="ISHelp.Home.MnFrm" %
")
+ 0x474 bytes
system.web.dll!
System.Web.UI.TemplateParser::ParseString(String* text
= "<%@ Page Language="c#" CodeBehind="MnFrm.aspx.cs"
AutoEventWireup="false" Inherits="ISHelp.Home.MnFrm" %
",
String* virtualPath = "/ISHelp/Home/MnFrm.aspx", String*
basePhysicalDir = "c:\inetpub\wwwroot\ISHelp\Home") +
0xa5 bytes
system.web.dll!
System.Web.UI.TemplateParser::ParseReader
(System.IO.TextReader input = {System.IO.StreamReader},
String* virtualPath = "/ISHelp/Home/MnFrm.aspx", String*
basePhysicalDir = "c:\inetpub\wwwroot\ISHelp\Home") +
0x34 bytes

.

Message 2 in thread
From: MSFT (ra******@onlinemicrosoft.com_(Radomir)
Subject: RE: Error in ASP internal code causing sessions to be dropped
View this article only
Newsgroups: microsoft.public.dotnet.framework.aspnet
Date: 2002-03-19 09:47:30 PST
Hi Andrew,

Can you post your code, and the steps to reproduce this problem?

Also, please note that if you recompile your code, the application
will
restart resulting in a loss of session variables (when using InProc
mode).

Thanks!

This posting is provided "AS IS" with no warranties, and confers no
rights.

--Original message---

I get an exception thrown on a particular page
sporadically. It appears to be some kind of parsing
error on the first declaration in my aspx file. Can
someone else verify to Microsoft that this is an
important bug to fix?

This is a really obnoxious error because everytime I make
a change in an ASPx page and restart and then by the time
I click to get to the page to test, it throws away the
session and I have to start again.

Here is the error message:
:A first chance exception of
type 'System.ArgumentException' occurred in system.dll

Additional information: An entry with the same key
already exists."
--
Nov 18 '05 #1
1 1873

D A H wrote:
I have gotten the same exception in multiple projects.

I have solved the underlying problem.

My question is if anyone knew of a setting that would cause this
exception to be thrown.

A codeveloper on the same project can get a copy of the project from
VSS and does not get this exception, ever. I do. We both have the
code that causes this exception to be thrown. We do NOT checkin our
solution files into VSS so they are different.

To detail the problem:

I recompile and play the ASP.NET application for debugging on my local development PC (VS2003, Win2003 server). The build is clean.

Before the first page loads I receive an exeption dialog in the IDE:
'System.ArgumentException'
Additional information: An entry with the same key
already exists.

If I break, no source code is avaiable. So I reviewed the call stack. It appears to be the same as Andrew's post below.
System.Collections.Specialized.ListDictionary::Add
(System.Object key = {String*}, System.Object value =
{String*}) + 0xee bytes
I noticed earlier in the call stack that it was processing one of my
ascx files, and in my call stack the {String*} was specific to an

html attibute tag that I had in the ascx. I found that the attibute
"cellspacing" was used twice in my html: <table CellSpacing="0"
cellspacing="1" ......

So removing the duplicate attributes solved this problem.

So to repeat my question: why is My DEV environment throwing this
exception, and my codeveloper on this project does NOT throw this
exception during ASP.NET debugging?
Thanks

Duane H.
This is a new question and reply to the following thread:
----------------------------------------------------------
From: Andrew Ressler (an****@microoutsource.com)
Subject: Error in ASP internal code causing sessions to be dropped
View this article only
Newsgroups: microsoft.public.dotnet.framework.aspnet
Date: 2002-03-19 08:52:21 PST
I get an exception thrown on a particular page
sporadically. It appears to be some kind of parsing
error on the first declaration in my aspx file. Can
someone else verify to Microsoft that this is an
important bug to fix?

This is a really obnoxious error because everytime I make
a change in an ASPx page and restart and then by the time
I click to get to the page to test, it throws away the
session and I have to start again.

Here is the error message:
:A first chance exception of
type 'System.ArgumentException' occurred in system.dll

Additional information: An entry with the same key
already exists."

Here is the first line:
<%@ Page Language="c#" CodeBehind="MnFrm.aspx.cs"
AutoEventWireup="false" Inherits="ISHelp.Home.MnFrm" %>

I may have narrowed it down to only happening after I
have done a rebuild of my source code. After getting the
error, if I continue past it and than stop debugging and
start again, I don't get the error.

Also, I am only visually seeing the error because I have
break execution on for all exceptions.

I don't get this error for any other pages. Including
several others that are coded similarly to this one.

Anybody else see this bug. It seems to screw up my
system when that happens. However, it is pretty random
when it happens.

Here is a stack trace.
system.dll! System.Collections.Specialized.ListDictionary::Add
(System.Object key = {String*}, System.Object value =
{String*}) + 0xee bytes
system.web.dll!
System.Web.UI.TemplateParser::ProcessAttributes
(System.Text.RegularExpressions.Match match =
{System.Text.RegularExpressions.Match},
System.Collections.IDictionary attribs =
{System.Collections.Specialized.ListDictionary}, bool
fDirective = false, String* duplicateAttribute = null) +
0x25f bytes
system.web.dll!
System.Web.UI.TemplateParser::ProcessBeginTag
(System.Text.RegularExpressions.Match match =
{System.Text.RegularExpressions.Match}, String* inputText
= "<%@ Page Language="c#" CodeBehind="MnFrm.aspx.cs"
AutoEventWireup="false" Inherits="ISHelp.Home.MnFrm" %
")
+ 0x474 bytes
system.web.dll!
System.Web.UI.TemplateParser::ParseString(String* text
= "<%@ Page Language="c#" CodeBehind="MnFrm.aspx.cs"
AutoEventWireup="false" Inherits="ISHelp.Home.MnFrm" %
",
String* virtualPath = "/ISHelp/Home/MnFrm.aspx", String*
basePhysicalDir = "c:\inetpub\wwwroot\ISHelp\Home") +
0xa5 bytes
system.web.dll!
System.Web.UI.TemplateParser::ParseReader
(System.IO.TextReader input = {System.IO.StreamReader},
String* virtualPath = "/ISHelp/Home/MnFrm.aspx", String*
basePhysicalDir = "c:\inetpub\wwwroot\ISHelp\Home") +
0x34 bytes

.

Message 2 in thread
From: MSFT (ra******@onlinemicrosoft.com_(Radomir)
Subject: RE: Error in ASP internal code causing sessions to be

dropped

View this article only
Newsgroups: microsoft.public.dotnet.framework.aspnet
Date: 2002-03-19 09:47:30 PST
Hi Andrew,

Can you post your code, and the steps to reproduce this problem?

Also, please note that if you recompile your code, the application
will
restart resulting in a loss of session variables (when using InProc
mode).

Thanks!

This posting is provided "AS IS" with no warranties, and confers no
rights.

--Original message---

I get an exception thrown on a particular page
sporadically. It appears to be some kind of parsing
error on the first declaration in my aspx file. Can
someone else verify to Microsoft that this is an
important bug to fix?

This is a really obnoxious error because everytime I make
a change in an ASPx page and restart and then by the time
I click to get to the page to test, it throws away the
session and I have to start again.

Here is the error message:
:A first chance exception of
type 'System.ArgumentException' occurred in system.dll

Additional information: An entry with the same key
already exists."
--


Nov 19 '05 #2

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

Similar topics

1
by: j-marvin | last post by:
hi- with the keyfocus webserver using php i get this error. "Internal Server Error", 500 error when using a CGI request http://www.keyfocus.net/kfws/faq/faqcommonproblems.php#PROBLEM5a ...
1
by: Thiko | last post by:
Hi I have a corrupt PK index on a table column. It is a unique PK. It needs to be dropped and recreated to cure the corruption. The table is on a backup database which is in replication...
30
by: Neil Zanella | last post by:
Hello, Allow me to share my frustrations with GNU g++. This is the second time something similar happens to me: I can't find anything wrong with my C++ program and yet I get segfaults, and...
0
by: RichG | last post by:
I have a problem where DB2 is returning error 'DIA9999E An internal error occurred. Report the following error code : "error code -32"'. This is happening on DB2 for Windows, v7.2.9 when compiling...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
5
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I have a page when run in browser(firefox), it has some error message from from javascript console. It says Error: Expected ':' but found ';'. Declaration dropped. Source File:...
1
by: Anonymous | last post by:
My code has suddenly stopped compiling after some refactoring I carried out last week. I am using VC8 on W2K professional I get the following cryptic error: Error 77 fatal error C1001: An...
1
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that...
4
by: Chronictank | last post by:
Hi, as a bit of background (and seeing as it is my first post :)) i am a complete newbie at perl. I literally picked it up a week ago to do this project as it seemed like the best choice for 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.