baffled...

L

Lloyd Dupont

I'm playing with ASP.NET 2.0

I have a simple master page withe a headsection like this:
<head runat="server">
<title>Untitled Page</title>
<% Response.Write(CssInclude); %>
</head>

and while it runs fine on IE, I keep having this strange error with Firefox:
(any thought ?)


Specified argument was out of the range of valid values. Parameter name:
index
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Specified argument
was out of the range of valid values. Parameter name: index

Source Error:

Line 5: <html xmlns="http://www.w3.org/1999/xhtml" >
Line 6: <head runat="server">
Line 7: <title>Untitled Page</title>
Line 8: <% Response.Write(CssInclude); %>
Line 9: </head>

Source File: l:\AppSource\WebSiteGalador\MasterLayout.master Line: 7

Stack Trace:

[ArgumentOutOfRangeException: Specified argument was out of the range of
valid values.
Parameter name: index]
System.Web.UI.ControlCollection.get_Item(Int32 index) +3071930
MasterLayout_master.__Render__control2(HtmlTextWriter __w, Control
parameterContainer) in l:\AppSource\WebSiteGalador\MasterLayout.master:7
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +3153695
System.Web.UI.HtmlControls.HtmlHead.RenderChildren(HtmlTextWriter writer)
+44
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter
writer) +25
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter) +23
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter
adapter) +139
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +91
System.Web.UI.Control.Render(HtmlTextWriter writer) +5
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter) +23
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter
adapter) +139
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +91
System.Web.UI.Page.Render(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter) +23
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter
adapter) +139
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5916
 
K

Karl

The error happens on both IE and Firefox for me. i'm not sure I understand
the error, however, the code is pretty poorly written...not sure if you are
just testing/trying to break it or you would actually write this code.

You can always report a bug..

Karl

Lloyd Dupont said:
I'm playing with ASP.NET 2.0

I have a simple master page withe a headsection like this:
<head runat="server">
<title>Untitled Page</title>
<% Response.Write(CssInclude); %>
</head>

and while it runs fine on IE, I keep having this strange error with Firefox:
(any thought ?)


Specified argument was out of the range of valid values. Parameter name:
index
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Specified argument
was out of the range of valid values. Parameter name: index

Source Error:

Line 5: <html xmlns="http://www.w3.org/1999/xhtml" >
Line 6: <head runat="server">
Line 7: <title>Untitled Page</title>
Line 8: <% Response.Write(CssInclude); %>
Line 9: </head>

Source File: l:\AppSource\WebSiteGalador\MasterLayout.master Line: 7

Stack Trace:

[ArgumentOutOfRangeException: Specified argument was out of the range of
valid values.
Parameter name: index]
System.Web.UI.ControlCollection.get_Item(Int32 index) +3071930
MasterLayout_master.__Render__control2(HtmlTextWriter __w, Control
parameterContainer) in l:\AppSource\WebSiteGalador\MasterLayout.master:7
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +3153695
System.Web.UI.HtmlControls.HtmlHead.RenderChildren(HtmlTextWriter writer)
+44
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter
writer) +25
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter) +23
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter
adapter) +139
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +91
System.Web.UI.Control.Render(HtmlTextWriter writer) +5
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter) +23
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter
adapter) +139
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +91
System.Web.UI.Page.Render(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter) +23
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter
adapter) +139
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5916



-------------------------------------------------------------------------- ------
Version Information: Microsoft .NET Framework Version:2.0.40607.16; ASP.NET
Version:2.0.40607.16
 
L

Lloyd Dupont

hu....
I'm not sure I understand you....

my problem is I call no function! so I don't see how an argument could be
wrong!

BTW see how I could improve a sample of just 1 line of code !

Also, if you just write it like that it would bug, you should have something
like that in your code behind master class:

string CssInclude { get { return "<--qwerty1234-->"; } }

and different behavior on IE & .......
forget it I understand!

in my code I call
Request.Brower.Browser

obviously the problem is one of them is null somewhere.. I get it!


Karl said:
The error happens on both IE and Firefox for me. i'm not sure I understand
the error, however, the code is pretty poorly written...not sure if you are
just testing/trying to break it or you would actually write this code.

You can always report a bug..

Karl

Lloyd Dupont said:
I'm playing with ASP.NET 2.0

I have a simple master page withe a headsection like this:
<head runat="server">
<title>Untitled Page</title>
<% Response.Write(CssInclude); %>
</head>

and while it runs fine on IE, I keep having this strange error with Firefox:
(any thought ?)


Specified argument was out of the range of valid values. Parameter name:
index
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Specified argument
was out of the range of valid values. Parameter name: index

Source Error:

Line 5: <html xmlns="http://www.w3.org/1999/xhtml" >
Line 6: <head runat="server">
Line 7: <title>Untitled Page</title>
Line 8: <% Response.Write(CssInclude); %>
Line 9: </head>

Source File: l:\AppSource\WebSiteGalador\MasterLayout.master Line: 7

Stack Trace:

[ArgumentOutOfRangeException: Specified argument was out of the range of
valid values.
Parameter name: index]
System.Web.UI.ControlCollection.get_Item(Int32 index) +3071930
MasterLayout_master.__Render__control2(HtmlTextWriter __w, Control
parameterContainer) in l:\AppSource\WebSiteGalador\MasterLayout.master:7
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +3153695
System.Web.UI.HtmlControls.HtmlHead.RenderChildren(HtmlTextWriter writer)
+44
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter
writer) +25
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter) +23
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter
adapter) +139
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +91
System.Web.UI.Control.Render(HtmlTextWriter writer) +5
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter) +23
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter
adapter) +139
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +91
System.Web.UI.Page.Render(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter) +23
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter
adapter) +139
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5916
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top