473,386 Members | 1,775 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,386 software developers and data experts.

ASP.NET 2.0 Web Page Problem?

Hi all --

I have a strange issue.

I have obtained a scripted database and compiled ASP.NET 2.0 application
from a sister site that I'm trying to implement locally. I have
successfully created the database and accessed various ASP.NET 2.0 admin web
pages for populating some of the fields. The issue is, on one particular
page that has two dropdown listboxes, where second was is populated with a
list of customer numbers after the "group" is selected from the first
dropdown appears to be throwing an ASP.NET exception error.

Originally, we thought it may have been a database issue. However, I have
backed up and given the database to our sister center and it works fine for
the on their existing system.

For the life of me I cannot get the page to work. I have checked IIS
settings, application settings, etc., and cannot find anything. Its not too
complicated of a web page and the only IIS configuration was creating a
virtual directory/application and assigning .NET 2.0 to it.

I have requested that they resend me the ASP.NET code/assemblies since I
have no source to look at.

I'm uncertain how the same code/database works on another system and throws
an index error for me.
The error is below.

If anyone has any ideas, I'd be more than appreciative.

Server Error in '/intranet' Application.
--------------------------------------------------------------------------------

Index was outside the bounds of the array.
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.IndexOutOfRangeException: Index was outside the
bounds of the array.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:
[IndexOutOfRangeException: Index was outside the bounds of the array.]
Operations_HBMBlockStatus.Repeater1_ItemCreated(Ob ject sender,
RepeaterItemEventArgs e) +1285
System.Web.UI.WebControls.Repeater.OnItemCreated(R epeaterItemEventArgs e)
+105
System.Web.UI.WebControls.Repeater.CreateItem(Int3 2 itemIndex,
ListItemType itemType, Boolean dataBind, Object dataItem) +92
System.Web.UI.WebControls.Repeater.CreateControlHi erarchy(Boolean
useDataSource) +454
System.Web.UI.WebControls.Repeater.OnDataBinding(E ventArgs e) +53
System.Web.UI.WebControls.Repeater.DataBind() +72
System.Web.UI.WebControls.Repeater.EnsureDataBound () +55
System.Web.UI.WebControls.Repeater.OnPreRender(Eve ntArgs e) +12
System.Web.UI.Control.PreRenderRecursiveInternal() +86
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433;
ASP.NET Version:2.0.50727.1433

Jun 27 '08 #1
2 1554
That's called a bug :)

Based on the stack trace you've shown the problem is when the
Operations_HBMBlockStatus page's Repeater1 ItemCreated event is being
raised. The index out of range exception occurs when trying to access the
index of a collection that is outside the bounds of the collection.

For example: You have an array consisting of 2 objects, and the code tries
to access the 3rd.

You sister site might be hiding the exception by logging it or ignoring them
somehow, I'd need to see the code to say for sure (which I don't want). It's
not a problem with how your server is configured, the page wouldn't have
started rendering if that was the case. If push comes to shove and you have
to look at the code (assuming they haven't obfuscated it) go download Lutz
Roeder's .NET Reflector and look at the disassembled code.

"dm3281" <dm****@nospam.netwrote in message
news:70**********************************@microsof t.com...
Hi all --

I have a strange issue.

I have obtained a scripted database and compiled ASP.NET 2.0 application
from a sister site that I'm trying to implement locally. I have
successfully created the database and accessed various ASP.NET 2.0 admin
web pages for populating some of the fields. The issue is, on one
particular page that has two dropdown listboxes, where second was is
populated with a list of customer numbers after the "group" is selected
from the first dropdown appears to be throwing an ASP.NET exception error.

Originally, we thought it may have been a database issue. However, I have
backed up and given the database to our sister center and it works fine
for the on their existing system.

For the life of me I cannot get the page to work. I have checked IIS
settings, application settings, etc., and cannot find anything. Its not
too complicated of a web page and the only IIS configuration was creating
a virtual directory/application and assigning .NET 2.0 to it.

I have requested that they resend me the ASP.NET code/assemblies since I
have no source to look at.

I'm uncertain how the same code/database works on another system and
throws an index error for me.
The error is below.

If anyone has any ideas, I'd be more than appreciative.

Server Error in '/intranet' Application.
--------------------------------------------------------------------------------

Index was outside the bounds of the array.
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.IndexOutOfRangeException: Index was outside the
bounds of the array.

Source Error:

An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:
[IndexOutOfRangeException: Index was outside the bounds of the array.]
Operations_HBMBlockStatus.Repeater1_ItemCreated(Ob ject sender,
RepeaterItemEventArgs e) +1285
System.Web.UI.WebControls.Repeater.OnItemCreated(R epeaterItemEventArgs
e) +105
System.Web.UI.WebControls.Repeater.CreateItem(Int3 2 itemIndex,
ListItemType itemType, Boolean dataBind, Object dataItem) +92
System.Web.UI.WebControls.Repeater.CreateControlHi erarchy(Boolean
useDataSource) +454
System.Web.UI.WebControls.Repeater.OnDataBinding(E ventArgs e) +53
System.Web.UI.WebControls.Repeater.DataBind() +72
System.Web.UI.WebControls.Repeater.EnsureDataBound () +55
System.Web.UI.WebControls.Repeater.OnPreRender(Eve ntArgs e) +12
System.Web.UI.Control.PreRenderRecursiveInternal() +86
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433;
ASP.NET Version:2.0.50727.1433
Jun 27 '08 #2
I actually found out that the problem wasn't the repeater control or
anything.

Somewhere in the code it was getting the identity of the user and splitting
it into array by slash separator, such as domainname\username. Evidently
the next line of code was trying to assign the username only to another
string. I didn't have nt authentication enabled and was using anonymous by
default. I turned on NT authentication, answered authentication dialogue,
and then I was off to the races.


"Jeff Winn" <jw***@nospam.comwrote in message
news:9E**********************************@microsof t.com...
That's called a bug :)

Based on the stack trace you've shown the problem is when the
Operations_HBMBlockStatus page's Repeater1 ItemCreated event is being
raised. The index out of range exception occurs when trying to access the
index of a collection that is outside the bounds of the collection.

For example: You have an array consisting of 2 objects, and the code tries
to access the 3rd.

You sister site might be hiding the exception by logging it or ignoring
them somehow, I'd need to see the code to say for sure (which I don't
want). It's not a problem with how your server is configured, the page
wouldn't have started rendering if that was the case. If push comes to
shove and you have to look at the code (assuming they haven't obfuscated
it) go download Lutz Roeder's .NET Reflector and look at the disassembled
code.

"dm3281" <dm****@nospam.netwrote in message
news:70**********************************@microsof t.com...
>Hi all --

I have a strange issue.

I have obtained a scripted database and compiled ASP.NET 2.0 application
from a sister site that I'm trying to implement locally. I have
successfully created the database and accessed various ASP.NET 2.0 admin
web pages for populating some of the fields. The issue is, on one
particular page that has two dropdown listboxes, where second was is
populated with a list of customer numbers after the "group" is selected
from the first dropdown appears to be throwing an ASP.NET exception
error.

Originally, we thought it may have been a database issue. However, I
have backed up and given the database to our sister center and it works
fine for the on their existing system.

For the life of me I cannot get the page to work. I have checked IIS
settings, application settings, etc., and cannot find anything. Its not
too complicated of a web page and the only IIS configuration was creating
a virtual directory/application and assigning .NET 2.0 to it.

I have requested that they resend me the ASP.NET code/assemblies since I
have no source to look at.

I'm uncertain how the same code/database works on another system and
throws an index error for me.
The error is below.

If anyone has any ideas, I'd be more than appreciative.

Server Error in '/intranet' Application.
--------------------------------------------------------------------------------

Index was outside the bounds of the array.
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.IndexOutOfRangeException: Index was outside the
bounds of the array.

Source Error:

An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:
[IndexOutOfRangeException: Index was outside the bounds of the array.]
Operations_HBMBlockStatus.Repeater1_ItemCreated(Ob ject sender,
RepeaterItemEventArgs e) +1285
System.Web.UI.WebControls.Repeater.OnItemCreated(R epeaterItemEventArgs
e) +105
System.Web.UI.WebControls.Repeater.CreateItem(Int3 2 itemIndex,
ListItemType itemType, Boolean dataBind, Object dataItem) +92
System.Web.UI.WebControls.Repeater.CreateControlHi erarchy(Boolean
useDataSource) +454
System.Web.UI.WebControls.Repeater.OnDataBinding(E ventArgs e) +53
System.Web.UI.WebControls.Repeater.DataBind() +72
System.Web.UI.WebControls.Repeater.EnsureDataBound () +55
System.Web.UI.WebControls.Repeater.OnPreRender(Eve ntArgs e) +12
System.Web.UI.Control.PreRenderRecursiveInternal() +86
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+2041


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433;
ASP.NET Version:2.0.50727.1433
Jun 27 '08 #3

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

Similar topics

8
by: Raphael Gluck | last post by:
Hi Everyone I am having some problems with a master detail page i have set up to catalogue brochures from my site. On my master page www.tripakltd.com/brochures.asp users are invited to select...
6
by: Ed | last post by:
I first noticed this in my own app. Images would show up missing randomly on IE 6.0.2800.1106 on Windows 2000 server. I then was able to repro this problem on Microsoft's website!!! The page I...
7
by: Aaron Prohaska | last post by:
I have just run into a problem where I have a page that posts back to itself to execute code, except when the page does the post back it somehow executes code that is in our home page for the site....
7
by: Brian Paul | last post by:
When a user clicks on a linkbutton on a page, i would like to render a printer-friendly version of the asp.net page and download it as an html attachment to the browser. The code below works great,...
4
by: Richard St?en | last post by:
Hi! We are experiencing a problem with running an .aspx page inside an iframe. The .aspx page is loading perfectly the first time (on load), but when we try to interact/navigate within the .aspx...
3
by: Vince Mele | last post by:
We are having a small problem with a couple of reports we developed for a client website. On two of the reports, sometimes (most of the time) we receive a warning message before the output of...
1
by: Lenard Gunda | last post by:
Hi! I have the following problem. From my main page, when someone clicks a button, it uses client side javascript to open another .aspx page. This page displays content, based on what the...
1
by: Daniel Alvarez | last post by:
Hello. First of all, I'm working in an ASP.NET 1.1 project, which has a large page (due to client requirements, a huge page is needed to process the information, and it has a lot of interactivity...
5
by: henryrhenryr | last post by:
Appologies for unclear title. I don't really understand the problem I'm facing. My system: PHP 5.2.1, Win2K, Apache 2, MySQL 5 (local - problem is same on my live site running php 4.3.9, Linux,...
4
by: Goran Djuranovic | last post by:
Hi all, I am experiencing a strange thing happening with a "designer.vb" page. Controls I manually declare in this page are automatically deleted after I drop another control on a ".aspx" page. -...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.