G
Guest
I have a Windows Service that I created in .NET version 1.1 and it runs under
the system account.
I created a Windows XP SP2 Virtual PC (in Microsoft Virtual PC 2007) that
has the latest updates.
From this base VPC I created 2 new VPCs. One that has framework version 1.1
installed (and any windows updates this caused to be installed) and one that
has framework version 2.0 installed (also with any windows updates this
caused to be installed).
My service runs fine on version 1.1.
My service crashes on the 2.0 version with the following stack dump:
The exception "ArgumentException" has occurred in "mscorlib"
Additional Info:Value does not fall within the expected range.
Stack dump:
at System.String.nativeCompareOrdinal(String strA, String strB, Boolean
bIgnoreCase)
at System.String.Compare(String strA, String strB, StringComparison
comparisonType)
at System.Diagnostics.PerformanceCounter.set_CategoryName(String value)
at System.Net.NetworkingPerfCounters.Initialize()
at System.Net.Configuration.SettingsSectionInternal..ctor(SettingsSection
section)
at System.Net.Configuration.SettingsSectionInternal.get_Section()
at System.Net.Sockets.Socket.get_CanUseAcceptEx()
at System.Net.Sockets.Socket.BeginAccept(AsyncCallback callback, Object
state)
at System.Net.Sockets.TcpListener.BeginAcceptSocket(AsyncCallback
callback, Object state)
at
System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StartListening(Object
data)
at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.SetupChannel()
at
System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary
properties, IServerChannelSinkProvider sinkProvider,
IAuthorizeRemotingConnection authorizeCallback)
at System.Runtime.Remoting.Channels.Tcp.TcpChannel..ctor(IDictionary
properties, IClientChannelSinkProvider clientSinkProvider,
IServerChannelSinkProvider serverSinkProvider)
at MyService.ListenThread()
The exception is being thrown in a string compare!? So, what broke in
version 2.0?
Thanks for any help
the system account.
I created a Windows XP SP2 Virtual PC (in Microsoft Virtual PC 2007) that
has the latest updates.
From this base VPC I created 2 new VPCs. One that has framework version 1.1
installed (and any windows updates this caused to be installed) and one that
has framework version 2.0 installed (also with any windows updates this
caused to be installed).
My service runs fine on version 1.1.
My service crashes on the 2.0 version with the following stack dump:
The exception "ArgumentException" has occurred in "mscorlib"
Additional Info:Value does not fall within the expected range.
Stack dump:
at System.String.nativeCompareOrdinal(String strA, String strB, Boolean
bIgnoreCase)
at System.String.Compare(String strA, String strB, StringComparison
comparisonType)
at System.Diagnostics.PerformanceCounter.set_CategoryName(String value)
at System.Net.NetworkingPerfCounters.Initialize()
at System.Net.Configuration.SettingsSectionInternal..ctor(SettingsSection
section)
at System.Net.Configuration.SettingsSectionInternal.get_Section()
at System.Net.Sockets.Socket.get_CanUseAcceptEx()
at System.Net.Sockets.Socket.BeginAccept(AsyncCallback callback, Object
state)
at System.Net.Sockets.TcpListener.BeginAcceptSocket(AsyncCallback
callback, Object state)
at
System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StartListening(Object
data)
at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.SetupChannel()
at
System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary
properties, IServerChannelSinkProvider sinkProvider,
IAuthorizeRemotingConnection authorizeCallback)
at System.Runtime.Remoting.Channels.Tcp.TcpChannel..ctor(IDictionary
properties, IClientChannelSinkProvider clientSinkProvider,
IServerChannelSinkProvider serverSinkProvider)
at MyService.ListenThread()
The exception is being thrown in a string compare!? So, what broke in
version 2.0?
Thanks for any help