Re: C# app works perfectly on XP but not on 2003 server



What I really should say, is your problem lies with the Garbage Collection. On your development machine, in debug mode, GC can take it's sweet time to clean up thing. Therefore if you access an object that have managed resources, you could be trying to access those resources when they have already been disposed of. In production/release mode on Windows 2003 production server where you have many things going on, the GC is probably doing it's job more efficiently and getting rid of objects that you closed/disposed or set to nothing. ANd like I was trying to say earlier, your object during it's dispose/finalize event it could be trying to access a managed resource that has already be taken care of.

OfurGørn wrote:

Hi everybody - here is an easy one (hopefully)

I have a funny error, that is driving me nuts !!! I have a application that I have written on a Windows XP SP2 machine, and tuned to near-perfection - then I copied the program to the target system, a Windows 2003 standard server, the program works fine for 5-10 minutes, and then comes up with an exception. The problem is, that whenever I put any debug code in the code that generates the exception, the exception does not come again, but another exception comes. I have so far received exceptions like:
- System.IO.IOException: Transfer complete.
- System.NullReferenceException


I am having a hard time fixing this, as I am running an Release version on the remote server, and have no debug information. I suspect that there is something basic I have forgotten in making my code work for Windows 2003 Server.

hoping the solution is quick and simple !

________________________
Gunnar Gudmundsson
.



Relevant Pages

  • Re: Sharepoint 2007 - Installation Error - Failed to register SP s
    ... Windows 2000 Server. ... It is a bug with Beta 2 where the database server is running Windows 2000. ... Server I have the following exception: ... RunBehavior runBehavior, String resetOptionsString) ...
    (microsoft.public.sharepoint.portalserver)
  • Re: How to debug this?
    ... My client and listener can connect fine on 127.0.0.1 port 9005. ... once I upload the listener to my webserver and change to the web server IP, ... An unhandled exception of type 'System.Net.Sockets.SocketException' occurred ... >>> When you compile a program in 'debug' configuration these 'symbols' are ...
    (microsoft.public.dotnet.languages.vb)
  • Re: C# app works perfectly on XP but not on 2003 server
    ... My program uses Windows Sockets ... > when you say you put a debug code in, ... that whenever I put any debug code in the code ... >>that generates the exception, the exception does not come again, but another ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: C# app works perfectly on XP but not on 2003 server
    ... My program uses Windows Sockets ... >> when you say you put a debug code in, ... that whenever I put any debug code in the code ... >>>that generates the exception, the exception does not come again, but another ...
    (microsoft.public.dotnet.framework.windowsforms)
  • RE: Remote debugging RPC issue
    ... >When I try to debug an asp .Net web site from my machine (the website is ... The RPC server is unavailable ... If you have any Windows XP SP2 machine in problem, I suggest you need to do ... How to debug on computers that are running Windows XP and that are in the ...
    (microsoft.public.vsnet.debugging)