Question

I've a very simple C# windows forms project. It works great on my development PC (Win7 x64) but after compile won't run on Windows 2008 x64.

Any ideas why?

Thakns.

EDIT (more info):

The error I get on the server is this:

Description:
  Stopped working

Problem signature:
  Problem Event Name:   CLR20r3
  Problem Signature 01: servertester.exe
  Problem Signature 02: 1.0.0.0
  Problem Signature 03: 4dbd6fe8
  Problem Signature 04: ServerTester
  Problem Signature 05: 1.0.0.0
  Problem Signature 06: 4dbd6fe8
  Problem Signature 07: 3
  Problem Signature 08: 15
  Problem Signature 09: System.IO.FileNotFoundException
  OS Version:   6.0.6002.2.2.0.272.7
  Locale ID:    1037

the platform target of the project is Any PC, though being compiled on x64. The target framework is .Net 4 client profile.

Hope it helps :)

Was it helpful?

Solution

It is a file-not-found exception, could be as simple as forgetting to copy a file or not specifying the full path name. Don't guess at this, implement a handler for the AppDomain.CurrentDomain.UnhandledException event and log or display the value of e.ExceptionObject.ToString(). It tells you where your code bombed.

OTHER TIPS

Random guess given that your question has absolutely no detail whatsoever. Did you remember to install the corresponding .NET framework on the server?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top