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

D

D A H

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 ([email protected])
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.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 ([email protected]_(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."
--
 
L

LenM22

D said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top