I can't work out what is causing this problem. Can anyone suggest what the
typical causes beyond the obvious might be? Could you get it with datasets?
Maybe I should run in debug mode and test certain bits of code for
"erroneous" and unpredictable values?
Many thanks!
"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:
[IndexOutOfRange Exception: Index was outside the bounds of the array.]
System.Array.In ternalGetValue( Int32 index1, Int32 index2, Int32 index3)
+0
System.Array.Ge tValue(Int32 index) +32
Microsoft.Visua lBasic.Compiler Services.LateBi nding.LateIndex Get(Object o,
Object[] args, String[] paramnames) +187
sharedcal.Share Cal.o() +655
sharedcal.Share Cal.Page_Load(O bject o, EventArgs e) +799
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +750 10 16642
Antoine,
The first thing you can do is set in top of your program file (vb code)
Option Strict On
Maybe than you see some errors.
I hope this helps?
Cor
"Antoine" <mf****@dsl-spam.pipex.com>
... I can't work out what is causing this problem. Can anyone suggest what the typical causes beyond the obvious might be? Could you get it with datasets? Maybe I should run in debug mode and test certain bits of code for "erroneous" and unpredictable values? Many thanks!
"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:
[IndexOutOfRange Exception: Index was outside the bounds of the array.] System.Array.In ternalGetValue( Int32 index1, Int32 index2, Int32 index3) +0 System.Array.Ge tValue(Int32 index) +32 Microsoft.Visua lBasic.Compiler Services.LateBi nding.LateIndex Get(Object o, Object[] args, String[] paramnames) +187 sharedcal.Share Cal.o() +655 sharedcal.Share Cal.Page_Load(O bject o, EventArgs e) +799 System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67 System.Web.UI.C ontrol.LoadRecu rsive() +35 System.Web.UI.P age.ProcessRequ estMain() +750
"Antoine" <mf****@dsl-spam.pipex.com> schrieb: I can't work out what is causing this problem. Can anyone suggest what the typical causes beyond the obvious might be? Could you get it with datasets? Maybe I should run in debug mode and test certain bits of code for "erroneous" and unpredictable values?
Yes, you should to that. Without seeing some code it's impossble to solve
the problem.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. .. Antoine,
The first thing you can do is set in top of your program file (vb code)
Option Strict On
Maybe than you see some errors.
I hope this helps?
Cor
Thank you. But It needs to work in a remote scenario, without the debugger.
Would this have any impact ?
I sent the PDB to one guy who has the problem. However unlike my IIS test
virtual directory, which reveals linenumbers when it fails - his didn't.
Do you think the above might help with that, if I recompiled with it on (and
then did my dotfuscate) ?
Otherwise I am going to have to try putting in something like individual
debug writelines at various points in the code, so it can hopefully trap
where roughly its at when it fails. But I have never done this, because I
had some problems with it recognising the debug.writeln command even after I
explicitly used imports system.diagnost ics.debug etc.
The thing is, other that referring to rows within a dataset via an integer
value, I don't know of anywhere else it might get this error as they are
pretty bulletproof and trapped ranges eg something like
dim string test as string()
string(1) = "test1"
string(2) = "test2"
for i = 0 to 2
if othervalue = i then otherstring = string(i)
end for
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. "Antoine" <mf****@dsl-spam.pipex.com> schrieb:I can't work out what is causing this problem. Can anyone suggest what
the typical causes beyond the obvious might be? Could you get it with datasets? Maybe I should run in debug mode and test certain bits of code for "erroneous" and unpredictable values?
Yes, you should to that. Without seeing some code it's impossble to solve the problem.
Thanks. Is there any easy way (using vb.net and asp.net technolgies) that I
could add trace of the problem to my project when debugging, eg even a rough
line would help? I tried sending the pdb to a person with the problem but it
did not reveal the line during debug, just the same error as before.
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. "Antoine" <mf****@dsl-spam.pipex.com> schrieb:I can't work out what is causing this problem. Can anyone suggest what
the typical causes beyond the obvious might be? Could you get it with datasets? Maybe I should run in debug mode and test certain bits of code for "erroneous" and unpredictable values?
Yes, you should to that. Without seeing some code it's impossble to solve the problem.
I should add that part of the frustration is I can't replicate it ( well I
did for a very short interval when ran as a runtime version from a demo
virtual directory, but then recompiled again and it went away, but the guys
still say they have it though my deployments dont).
I couldn't debug also without slightly modifiying code because I have been
having SOAP problems so have to alter the code for a specific username when
in the debugger, as opposed to during the demo virtual test (which might be
an Active Directory problem). A wierd little issue but when its compiled it
uses the default credentials anyway.
So frustratingly, even though it happened for an inteval for myself, I was
unable to replicate further and reprudce it for debugging and the build is
currently ok now when run (though not at his site). So I really need some
other debug techniques I havent tried, that will work remotely.
Thanks
Antoine
"Antoine" <mf****@dsl-spam.pipex.com> schrieb: The thing is, other that referring to rows within a dataset via an integer value, I don't know of anywhere else it might get this error as they are pretty bulletproof and trapped ranges eg something like
dim string test as string() string(1) = "test1" string(2) = "test2" for i = 0 to 2 if othervalue = i then otherstring = string(i)
end for
This code doesn't even compile!
\\\
Dim Test() As String = {"test1", "test2"}
For i As Integer = 0 To Test.Length - 1
If OtherValue = i Then
OtherString = Test(i)
End If
Next i
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Sorry as I indicated it was an example and off the top of my head the best I
could do to approximate what I am doing. I am only new to VB.NET.
You obviously have the idea. That is not the issue, as my code does compile
but I dont have it to hand. Its a matter of what could it be, since the sort
of example below could not possible cause this error could it?
Thanks
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:eM******** ******@TK2MSFTN GP12.phx.gbl... "Antoine" <mf****@dsl-spam.pipex.com> schrieb: The thing is, other that referring to rows within a dataset via an
integer value, I don't know of anywhere else it might get this error as they are pretty bulletproof and trapped ranges eg something like
dim string test as string() string(1) = "test1" string(2) = "test2" for i = 0 to 2 if othervalue = i then otherstring = string(i)
end for
This code doesn't even compile!
\\\ Dim Test() As String = {"test1", "test2"} For i As Integer = 0 To Test.Length - 1 If OtherValue = i Then OtherString = Test(i) End If Next i ///
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Thanks. Actually that was an approximation of the code, so you are right its
not correct, but thats not my issue. My issue is that written correctly
(like the code which I do not have to hand) surely it would NEVER cause this
issue and therefore I was wondering what else might cause it unless there is
any way that certain conditions could cause it to fail ?
I have just got turned on to tracing - this is an excellent guide. I may try
that. http://www.informit.com/guides/conte...net&seqNum=217
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:eZ******** ******@TK2MSFTN GP15.phx.gbl... Antoine,
dim string test as string() This does for sure not work
dim test(2) as string
Maybe this does, however better is to have a look for this to the
arraylist http://msdn.microsoft.com/library/de...classtopic.asp I hope this helps? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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......
|
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.
|
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:
...
|
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...
| |
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
|
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,
|
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
|
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; }
|
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;
|
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...
| |
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,...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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();...
|
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...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |