程序安装提示……正在安装程序集“e:\c#开发文档\csharptest\wtservice\bin\debug\wtservice.exe”。
受影响的参数是:
assemblypath = e:\c#开发文档\csharptest\wtservice\bin\debug\wtservice.exe
logfile = e:\c#开发文档\csharptest\wtservice\bin\debug\wtservice.InstallLog
无法创建 WTService.WTInstaller 安装程序类型的实例。
System.Reflection.TargetInvocationException: 调用的目标发生了异常。
引发了内部异常 System.InvalidOperationException,错误信息如下:appSettings 配置节中不存在项“WTserviceInstaller.DisplayName”。。可是在配置文件中存在项“WTserviceInstaller.DisplayName”,实在搞不明白了
受影响的参数是:
assemblypath = e:\c#开发文档\csharptest\wtservice\bin\debug\wtservice.exe
logfile = e:\c#开发文档\csharptest\wtservice\bin\debug\wtservice.InstallLog
无法创建 WTService.WTInstaller 安装程序类型的实例。
System.Reflection.TargetInvocationException: 调用的目标发生了异常。
引发了内部异常 System.InvalidOperationException,错误信息如下:appSettings 配置节中不存在项“WTserviceInstaller.DisplayName”。。可是在配置文件中存在项“WTserviceInstaller.DisplayName”,实在搞不明白了
this.WTserviceInstaller.ServiceName = ((string)(configurationAppSettings.GetValue("WTserviceInstaller.ServiceName", typeof(string))));