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

Index was outside the bounds of the array

Hi there,

We have a web application written in asp.net (1.1). I'm not going to go
into too much detail but we use a DLL to communicate with the database and
also a couple of webservices. When we deployed version 1, everything
deployed OK on our webserver. We deployed the application and 1 webservice
under default web site, the other webservice (3rd party supplied) is on
another server and services many other application in our organisation
sucessfully.

Recently we have tried to deploy version 2, but this time we have assigned
another IP address to the web server and tried to install the application
under a new website. Everything looked OK the application installed OK and
most of the functionallity works just fine but 1 or 2 of the webservice calls
fails with the error:
"Index was outside the bounds of the array"
I get this error on both webservices, on specific webmethods, but it DOES
work OK on default website....

Any help on this would be appreciated

Cammie

Nov 28 '05 #1
3 8598
You are using an array index that is outside the valid range (i.e. not
between 0 and number of elements-1).

--
Patrice

"Cammie Watson" <cw*****@pkc.gov.uk.(donotspam)> a écrit dans le message de
news:EF**********************************@microsof t.com...
Hi there,

We have a web application written in asp.net (1.1). I'm not going to go
into too much detail but we use a DLL to communicate with the database and
also a couple of webservices. When we deployed version 1, everything
deployed OK on our webserver. We deployed the application and 1 webservice under default web site, the other webservice (3rd party supplied) is on
another server and services many other application in our organisation
sucessfully.

Recently we have tried to deploy version 2, but this time we have assigned
another IP address to the web server and tried to install the application
under a new website. Everything looked OK the application installed OK and most of the functionallity works just fine but 1 or 2 of the webservice calls fails with the error:
"Index was outside the bounds of the array"
I get this error on both webservices, on specific webmethods, but it DOES
work OK on default website....

Any help on this would be appreciated

Cammie

Nov 28 '05 #2
Hi Patrice,

Thanks for your interest.

This may be the case, but before I go looking through the code in too much
detail, I keep wondering why it works OK when deployed to 'Default' website
in IIS.

Cammie

"Patrice" wrote:
You are using an array index that is outside the valid range (i.e. not
between 0 and number of elements-1).

--
Patrice

"Cammie Watson" <cw*****@pkc.gov.uk.(donotspam)> a écrit dans le message de
news:EF**********************************@microsof t.com...
Hi there,

We have a web application written in asp.net (1.1). I'm not going to go
into too much detail but we use a DLL to communicate with the database and
also a couple of webservices. When we deployed version 1, everything
deployed OK on our webserver. We deployed the application and 1

webservice
under default web site, the other webservice (3rd party supplied) is on
another server and services many other application in our organisation
sucessfully.

Recently we have tried to deploy version 2, but this time we have assigned
another IP address to the web server and tried to install the application
under a new website. Everything looked OK the application installed OK

and
most of the functionallity works just fine but 1 or 2 of the webservice

calls
fails with the error:
"Index was outside the bounds of the array"
I get this error on both webservices, on specific webmethods, but it DOES
work OK on default website....

Any help on this would be appreciated

Cammie


Nov 28 '05 #3
I would really start by looking at the code. Once the error is located, it
should be much easier to figure out why it worked under some other
circumstances. Else you can only guess and you'll have anyway to look at the
code...

--
Patrice

"Cammie Watson" <cw*****@pkc.gov.uk.(donotspam)> a écrit dans le message de
news:22**********************************@microsof t.com...
Hi Patrice,

Thanks for your interest.

This may be the case, but before I go looking through the code in too much
detail, I keep wondering why it works OK when deployed to 'Default' website in IIS.

Cammie

"Patrice" wrote:
You are using an array index that is outside the valid range (i.e. not
between 0 and number of elements-1).

--
Patrice

"Cammie Watson" <cw*****@pkc.gov.uk.(donotspam)> a écrit dans le message de news:EF**********************************@microsof t.com...
Hi there,

We have a web application written in asp.net (1.1). I'm not going to go into too much detail but we use a DLL to communicate with the database and also a couple of webservices. When we deployed version 1, everything
deployed OK on our webserver. We deployed the application and 1

webservice
under default web site, the other webservice (3rd party supplied) is on another server and services many other application in our organisation
sucessfully.

Recently we have tried to deploy version 2, but this time we have assigned another IP address to the web server and tried to install the application under a new website. Everything looked OK the application installed OK
and
most of the functionallity works just fine but 1 or 2 of the
webservice calls
fails with the error:
"Index was outside the bounds of the array"
I get this error on both webservices, on specific webmethods, but it

DOES work OK on default website....

Any help on this would be appreciated

Cammie


Nov 28 '05 #4

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

Similar topics

1
by: kim | last post by:
Scenario (I'm a newbie): I have a datagrid with countries listed and 5 parameters in each row. I want to add a row to this datagrid via an Event Handler. Very basic stuff. This method then call a...
0
by: Eugene | last post by:
Hello all, I've been trying to figure this out for a few days now, and still have no clue what's going on... I have a few related tables in MS Access (Clients, Cars, Sales), and a datagrid,...
1
by: Joe | last post by:
This is a weird problem. when doing trying to add a tabpage to a tabcontrol I get an error: Index was outside the bounds of the array. Now this only happens when I call a function from within...
1
by: iCeCLoW | last post by:
Hi there, I´m using the rowFilter property for filtering the rows in a DataView object. If the filter is set to an inexistent value , that is, after filtering i have 0 rows in the DataView,...
0
by: scotthutchinson | last post by:
I have a .NET Remoting object hosted in IIS6 on Windows Server 2003 (happens before and after installing SP1) at an endpoint (ASP.NET application virtual folder) named "CompanyXYZReporting". The...
2
by: Denis C | last post by:
Hi there, I'm trying to convert part of a byte array into a series of fixed length strings but half way through the for loop I get an error that I'm accessing outside the buffer bounds. The...
0
by: Trapulo | last post by:
I've a datagrid filled with a collection of objects that inherits from basecollection. When I remove an item from this collection and then click onto the datagrid, I've always this error: ...
4
by: Antoine | last post by:
Herfried and Cor:- I used tracing and actually tracked down the code that was causing the problem most likely. I wonder if you wanted to comment on it. Also I wonder if there is a better way...
0
by: Beaker | last post by:
I am having some trouble with an array object and a web service I have. I have a farly simple user object public class User { private Guid myUserId; public Guid UserId { get { return...
4
by: weird0 | last post by:
I have no idea why this error this is coming and how can i fix it? Can anyone please help me with it..............? public static class BillManager { private static Object ExecuteSP(Object...
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: 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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.