473,406 Members | 2,954 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,406 software developers and data experts.

Failed to compare two elements in the array (v1.1 vs v2.0 x64)

I've had a windows service, that I've written and compiled with vs2003
and .net framework 1.1, running just fine on windows server 2003 for a
long while. Recently the service was installed on Windows Server 2003
64 bit with the 64-bit .NET 2.0 framework installed.

All of a sudden, my application, returns
System.InvalidOperationException: Failed to compare two elements in the
array for certain operations (like ArrayList.Sort and
ArrayList.BinarySearch, not exactly sure which one of these methods -
probably both). I think the problem is in the implementation of the
IComparer interface. I am not quite sure what exact line of code in the
IComparer implementation it happens in.

The error seems to be fairly random (happens like once in a while, but
at least once an hour, even the though the service is running
continuously). At least I don't see a pattern in it.

The interesting kicker is that if I install the 32-bit .NET 1.1
framework on that box, all the problems go away.

Has anyone heard any issues with migrating .net 1.1 apps to .net 2.0
64-bit? Or about this particular problem?

Thanks.
Nov 9 '06 #1
3 6985

"Frank Rizzo" <no**@none.comwrote in message
news:u4*************@TK2MSFTNGP04.phx.gbl...
| I've had a windows service, that I've written and compiled with vs2003
| and .net framework 1.1, running just fine on windows server 2003 for a
| long while. Recently the service was installed on Windows Server 2003
| 64 bit with the 64-bit .NET 2.0 framework installed.
|
| All of a sudden, my application, returns
| System.InvalidOperationException: Failed to compare two elements in the
| array for certain operations (like ArrayList.Sort and
| ArrayList.BinarySearch, not exactly sure which one of these methods -
| probably both). I think the problem is in the implementation of the
| IComparer interface. I am not quite sure what exact line of code in the
| IComparer implementation it happens in.
|
| The error seems to be fairly random (happens like once in a while, but
| at least once an hour, even the though the service is running
| continuously). At least I don't see a pattern in it.
|
| The interesting kicker is that if I install the 32-bit .NET 1.1
| framework on that box, all the problems go away.
|
| Has anyone heard any issues with migrating .net 1.1 apps to .net 2.0
| 64-bit? Or about this particular problem?
|
| Thanks.

V1.1 (VS2003) applications do run as 32 bit aplications, unless they are
recompiled using the V2.0 compilers (or VS2005). That would mean that the
Framework V2.0 32 bit was already installed, and the issue is a V1.1 <->
V2.0 related and has nothing to do with 64 bit.

Willy.

Nov 9 '06 #2
Willy Denoyette [MVP] wrote:
"Frank Rizzo" <no**@none.comwrote in message
news:u4*************@TK2MSFTNGP04.phx.gbl...
| I've had a windows service, that I've written and compiled with vs2003
| and .net framework 1.1, running just fine on windows server 2003 for a
| long while. Recently the service was installed on Windows Server 2003
| 64 bit with the 64-bit .NET 2.0 framework installed.
|
| All of a sudden, my application, returns
| System.InvalidOperationException: Failed to compare two elements in the
| array for certain operations (like ArrayList.Sort and
| ArrayList.BinarySearch, not exactly sure which one of these methods -
| probably both). I think the problem is in the implementation of the
| IComparer interface. I am not quite sure what exact line of code in the
| IComparer implementation it happens in.
|
| The error seems to be fairly random (happens like once in a while, but
| at least once an hour, even the though the service is running
| continuously). At least I don't see a pattern in it.
|
| The interesting kicker is that if I install the 32-bit .NET 1.1
| framework on that box, all the problems go away.
|
| Has anyone heard any issues with migrating .net 1.1 apps to .net 2.0
| 64-bit? Or about this particular problem?
|
| Thanks.

V1.1 (VS2003) applications do run as 32 bit aplications, unless they are
recompiled using the V2.0 compilers (or VS2005). That would mean that the
Framework V2.0 32 bit was already installed, and the issue is a V1.1 <->
V2.0 related and has nothing to do with 64 bit.
Right, that's the way I understand it as well. So are there issues with
1.1 apps running against 2.0 framework?
>
Willy.
Nov 9 '06 #3

"Frank Rizzo" <no**@none.comwrote in message
news:u1**************@TK2MSFTNGP04.phx.gbl...
| Willy Denoyette [MVP] wrote:
| "Frank Rizzo" <no**@none.comwrote in message
| news:u4*************@TK2MSFTNGP04.phx.gbl...
| | I've had a windows service, that I've written and compiled with vs2003
| | and .net framework 1.1, running just fine on windows server 2003 for a
| | long while. Recently the service was installed on Windows Server 2003
| | 64 bit with the 64-bit .NET 2.0 framework installed.
| |
| | All of a sudden, my application, returns
| | System.InvalidOperationException: Failed to compare two elements in
the
| | array for certain operations (like ArrayList.Sort and
| | ArrayList.BinarySearch, not exactly sure which one of these methods -
| | probably both). I think the problem is in the implementation of the
| | IComparer interface. I am not quite sure what exact line of code in
the
| | IComparer implementation it happens in.
| |
| | The error seems to be fairly random (happens like once in a while, but
| | at least once an hour, even the though the service is running
| | continuously). At least I don't see a pattern in it.
| |
| | The interesting kicker is that if I install the 32-bit .NET 1.1
| | framework on that box, all the problems go away.
| |
| | Has anyone heard any issues with migrating .net 1.1 apps to .net 2.0
| | 64-bit? Or about this particular problem?
| |
| | Thanks.
| >
| V1.1 (VS2003) applications do run as 32 bit aplications, unless they are
| recompiled using the V2.0 compilers (or VS2005). That would mean that
the
| Framework V2.0 32 bit was already installed, and the issue is a V1.1 <->
| V2.0 related and has nothing to do with 64 bit.
|
| Right, that's the way I understand it as well. So are there issues with
| 1.1 apps running against 2.0 framework?
|
|

I'm afraid I wasn't clear when I said your application would run as 32 bit.
An application will load the CLR and FCL it was build against, so if your
application was build using V1.1, it will load V1.1 unless you have a
configuration file that specifies to load a newer version, if it was build
against V2 it will load V2, it can't load any lower version.

Now in your case, you said you have a V1.1 service, now the question is do
you have a configuration file that specifies the required runtime?
If the answer is *no*, your service needs v1.1 to run, and has always run
against V1.1, so I don't see why 'installing V1.1' would have changed
anything.
If the answer is *yes* and you have specified V2 as the required or
supported runtime, your service will run against V2 as a 32 bit application,
V1.1 builds cannot run against V2 64 bit.

Willy.
Nov 9 '06 #4

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

Similar topics

9
by: Luke Wu | last post by:
Hello, I'm having some problems understanding 2 dimensional arrays. My problem relates to the following code: #include <stdio.h> #define M 3 #define N 3
2
by: Simon Morgan | last post by:
I hope this isn't OT, I looked for a newsgroup dealing purely with algorithms but none were to be found and seeing as I'm trying to implement this in C I thought this would be the best place. I...
9
by: rkk | last post by:
Hi, I have written a generic mergesort program which is as below: --------------------------------------------------------- mergesort.h ----------------------- void MergeSort(void...
1
by: hoho2san | last post by:
Hi..can anybody give coding for: user input number of random number to generate. then, add it to array. the output like this: array A = array B =
11
by: subodheee | last post by:
i have a problem in implementing script,i have to extract from below data op,offset,and i need to compare the if same offset,same op repeats in other process i need to make it as same,else no .please...
1
by: DeathFrag | last post by:
i have two 15 X 15 arrays. what can be the efficient way to compare the equality of both the arrays..i dont want to use nested "for" loops..which is very slow...i want somethin efficient..
3
by: wesley1970 | last post by:
<?php $a = array(1,2,3,4,5); $b = array(1,2,3,4,5,6,7,8); echo array_intersect($a, $b); ?> array_intersect should return the numbers of items intersect in 2 arrays. In this case, it...
1
by: Rohullah | last post by:
Hello I want to compare two array and save the miss match caharector into 3rd array. how to do it give me the best answer.
6
Avatar19
by: Avatar19 | last post by:
Hi, I would like to compare elements in two seperate Lists for example: List1=, , ] List2=, ] What I understand is that the syntax should look like this: List3 for i in List2: for j in...
1
by: Johan Novak | last post by:
Hi! I'm learning python and I have a question about matix. ef __init__(self,colors=, forms=, numbers=, grades=): self.cardList = self.playerCardList = self.lista3...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.