0

我的应用程序的 EventLog 中有一个异常,如下所示:

Application: Synchronizator_AD.exe Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NotImplementedException Stack:    at
Synchronizator_AD.Application.Database(Synchronizator_AD.Databases,
System.String, System.String, System.String)    at
Synchronizator_AD.Application.Start(System.String)    at
Synchronizator_AD.Synchronizator_AD.TimerTick(System.Object)    at
System.Threading._TimerCallback.TimerCallback_Context(System.Object)  at
System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,
System.Threading.ContextCallback, System.Object, Boolean)    at
System.Threading._TimerCallback.PerformTimerCallback(System.Object)

有人可以告诉我我做错了什么吗?我可以分享我的代码如果你能帮助我(VS2010)

我正在编写一个应用程序,它将使用 SQL 表记录中的名称在 Active Directory 中创建用户帐户。此应用程序是 Windows 服务。这个项目的代码文件很少。

4

1 回答 1

2

我假设您编写了Synchronizator_AD应用程序。ASystem.NotImplementedException通常表示您使用了某种自动代码生成(可能来自 Visual Studio 中的某个模板),它为您生成了应用程序框架代码。这些工具经常将throw new System.NotImplementedException()调用插入到生成的方法中,因为您是必须实现这些方法的人。

所以你做错的基本上是:你没有实现一些你需要的方法。throw new System.NotImplementedException()查找并实现这些方法的所有实例。

于 2012-01-02T22:59:27.490 回答