473,796 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8640
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.go v.uk.(donotspam )> a écrit dans le message de
news:EF******** *************** ***********@mic rosoft.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.go v.uk.(donotspam )> a écrit dans le message de
news:EF******** *************** ***********@mic rosoft.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.go v.uk.(donotspam )> a écrit dans le message de
news:22******** *************** ***********@mic rosoft.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.go v.uk.(donotspam )> a écrit dans le message de news:EF******** *************** ***********@mic rosoft.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
10787
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 Business method, which calls a Data method which calls an SP in MS SQL. My code compiles well, but the page throws "Index was outside the bounds of the array". I really can't figure why, take a look maybe you pros see can read between the...
0
2766
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, binded to dataview. Here's a catch - whenever I select a client, and then find a car which belongs to this client, and click on empty space in datagrid (that is in gray area below rows) - I get "Index was outside the bounds of the array" error......
1
2339
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 a callback for an Async webmethod call. My guess is that it has something to do with the threads not being in sync yet.
1
4012
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, and I try to re-show all the rows again by setting rowFilter = "", after setting the rowStateFilter i obtain the "Index was outside the bounds of the array",. If the dataview is not empty this code works fine. Here is the code: ...
0
2125
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 remoted object is called several times every day and works perfectly except every 2-3 weeks when we call the remoted object, the response returns the error shown below. Does anyone have any clues how to resolve this problem? Server Error in...
2
3807
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 error: An unhandled exception of
0
1300
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: "Index was outside the bounds of the array datagrid" I've tried this structure: Dim oldList As Business.MyBaseCollection = DirectCast(dgDetails.DataSource,
4
3612
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 of testing if there is data than testing the length of the xml string I used as stringreader to create the dataset, but thats a side issue. I think I tried isdbnull and is nothing and stuff like that and they cause
0
2382
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 myUserId; }
4
17624
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 argArray) { SqlCommand sqlcmd = new SqlCommand(); SqlConnection sqlconnection1 = new SqlConnection(); sqlcmd.Connection = sqlconnection1;
0
9680
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9528
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10456
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10230
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10012
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5442
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.