无法在Windows Server上启动我的程序(Ninject问题,C#,.NET 4)

时间:2011-01-29 21:19:39

标签: c# ninject windows-server

我写了一个小程序,现在我试图在远程服务器上启动它。 但我得到了下一个错误:

Description:   Stopped working

Problem signature:   Problem
Event Name: CLR20r3
Problem Signature  01: supervisor.exe
Problem Signature  02: 1.0.0.0
Problem Signature  03: 4d447f89
Problem Signature  04: Ninject
Problem Signature  05: 2.0.0.0
Problem Signature  06: 4b86c56a
Problem Signature  07: 177 
Problem Signature  08: 12
Problem Signature  09: System.IO.FileNotFoundException
OS Version: 6.0.6001.2.1.0.1296.17
Locale ID: 1033

我在程序中使用Ninject库。 我该怎么做才能对问题做出诊断?

1 个答案:

答案 0 :(得分:1)

使用

      System.Diagnostic.Trace.WriteLine("Error:" + yourException);

使用sysinternals中的DebugView: http://technet.microsoft.com/en-us/sysinternals/bb896647

你必须确定痕迹的位置(通常你会尝试使用Try - Catch