문제

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 :)

도움이 되었습니까?

해결책

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.

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top