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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • D A H

    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.Argumen tException'
    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.Collecti ons.Specialized .ListDictionary ::Add[color=blue]
    > (System.Object key = {String*}, System.Object value =
    > {String*}) + 0xee bytes[/color]

    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
    "cellspacin g" 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 (andrew@microou tsource.com)
    Subject: Error in ASP internal code causing sessions to be dropped


    View this article only
    Newsgroups: microsoft.publi c.dotnet.framew ork.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.Argumen tException' occurred in system.dll

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

    Here is the first line:
    <%@ Page Language="c#" CodeBehind="MnF rm.aspx.cs"
    AutoEventWireup ="false" Inherits="ISHel p.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.
    [color=blue][color=green]
    > > system.dll![/color]
    > System.Collecti ons.Specialized .ListDictionary ::Add
    > (System.Object key = {String*}, System.Object value =
    > {String*}) + 0xee bytes
    > system.web.dll!
    > System.Web.UI.T emplateParser:: ProcessAttribut es
    > (System.Text.Re gularExpression s.Match match =
    > {System.Text.Re gularExpression s.Match},
    > System.Collecti ons.IDictionary attribs =
    > {System.Collect ions.Specialize d.ListDictionar y}, bool
    > fDirective = false, String* duplicateAttrib ute = null) +
    > 0x25f bytes
    > system.web.dll!
    > System.Web.UI.T emplateParser:: ProcessBeginTag
    > (System.Text.Re gularExpression s.Match match =
    > {System.Text.Re gularExpression s.Match}, String* inputText
    > = "<%@ Page Language="c#" CodeBehind="MnF rm.aspx.cs"
    > AutoEventWireup ="false" Inherits="ISHel p.Home.MnFrm" %
    >")
    > + 0x474 bytes
    > system.web.dll!
    > System.Web.UI.T emplateParser:: ParseString(Str ing* text
    > = "<%@ Page Language="c#" CodeBehind="MnF rm.aspx.cs"
    > AutoEventWireup ="false" Inherits="ISHel p.Home.MnFrm" %
    >",
    > String* virtualPath = "/ISHelp/Home/MnFrm.aspx", String*
    > basePhysicalDir = "c:\inetpub\www root\ISHelp\Hom e") +
    > 0xa5 bytes
    > system.web.dll!
    > System.Web.UI.T emplateParser:: ParseReader
    > (System.IO.Text Reader input = {System.IO.Stre amReader},
    > String* virtualPath = "/ISHelp/Home/MnFrm.aspx", String*
    > basePhysicalDir = "c:\inetpub\www root\ISHelp\Hom e") +
    > 0x34 bytes
    >
    > .[/color]
    Message 2 in thread
    From: MSFT (radomirz@onlin emicrosoft.com_ (Radomir)
    Subject: RE: Error in ASP internal code causing sessions to be dropped


    View this article only
    Newsgroups: microsoft.publi c.dotnet.framew ork.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.Argumen tException' occurred in system.dll

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

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


    D A H wrote:[color=blue]
    > 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[/color]
    local[color=blue]
    > development PC (VS2003, Win2003 server). The build is clean.
    >
    > Before the first page loads I receive an exeption dialog in the IDE:
    > 'System.Argumen tException'
    > Additional information: An entry with the same key
    > already exists.
    >
    > If I break, no source code is avaiable. So I reviewed the call stack.[/color]
    [color=blue]
    > It appears to be the same as Andrew's post below.
    > System.Collecti ons.Specialized .ListDictionary ::Add[color=green]
    > > (System.Object key = {String*}, System.Object value =
    > > {String*}) + 0xee bytes[/color]
    >
    > 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[/color]
    html[color=blue]
    > attibute tag that I had in the ascx. I found that the attibute
    > "cellspacin g" 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 (andrew@microou tsource.com)
    > Subject: Error in ASP internal code causing sessions to be dropped
    >
    >
    > View this article only
    > Newsgroups: microsoft.publi c.dotnet.framew ork.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.Argumen tException' occurred in system.dll
    >
    > Additional information: An entry with the same key
    > already exists."
    >
    > Here is the first line:
    > <%@ Page Language="c#" CodeBehind="MnF rm.aspx.cs"
    > AutoEventWireup ="false" Inherits="ISHel p.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.
    >[color=green][color=darkred]
    > > > system.dll![/color]
    > > System.Collecti ons.Specialized .ListDictionary ::Add
    > > (System.Object key = {String*}, System.Object value =
    > > {String*}) + 0xee bytes
    > > system.web.dll!
    > > System.Web.UI.T emplateParser:: ProcessAttribut es
    > > (System.Text.Re gularExpression s.Match match =
    > > {System.Text.Re gularExpression s.Match},
    > > System.Collecti ons.IDictionary attribs =
    > > {System.Collect ions.Specialize d.ListDictionar y}, bool
    > > fDirective = false, String* duplicateAttrib ute = null) +
    > > 0x25f bytes
    > > system.web.dll!
    > > System.Web.UI.T emplateParser:: ProcessBeginTag
    > > (System.Text.Re gularExpression s.Match match =
    > > {System.Text.Re gularExpression s.Match}, String* inputText
    > > = "<%@ Page Language="c#" CodeBehind="MnF rm.aspx.cs"
    > > AutoEventWireup ="false" Inherits="ISHel p.Home.MnFrm" %
    > >")
    > > + 0x474 bytes
    > > system.web.dll!
    > > System.Web.UI.T emplateParser:: ParseString(Str ing* text
    > > = "<%@ Page Language="c#" CodeBehind="MnF rm.aspx.cs"
    > > AutoEventWireup ="false" Inherits="ISHel p.Home.MnFrm" %
    > >",
    > > String* virtualPath = "/ISHelp/Home/MnFrm.aspx", String*
    > > basePhysicalDir = "c:\inetpub\www root\ISHelp\Hom e") +
    > > 0xa5 bytes
    > > system.web.dll!
    > > System.Web.UI.T emplateParser:: ParseReader
    > > (System.IO.Text Reader input = {System.IO.Stre amReader},
    > > String* virtualPath = "/ISHelp/Home/MnFrm.aspx", String*
    > > basePhysicalDir = "c:\inetpub\www root\ISHelp\Hom e") +
    > > 0x34 bytes
    > >
    > > .[/color]
    > Message 2 in thread
    > From: MSFT (radomirz@onlin emicrosoft.com_ (Radomir)
    > Subject: RE: Error in ASP internal code causing sessions to be[/color]
    dropped[color=blue]
    >
    >
    > View this article only
    > Newsgroups: microsoft.publi c.dotnet.framew ork.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.Argumen tException' occurred in system.dll
    >
    > Additional information: An entry with the same key
    > already exists."
    > --[/color]

    Comment

    Working...