尝试在服务器上的Windows中托管我的WCF服务时收到以下错误。我正在使用InstallUtil.exe安装它。 我在本地系统上托管了相同的服务。它工作得非常好。但在尝试使用服务器时无法正常工作。
安装程序集'D:\ wwwroot \ ABCServices \ ABC.servicehost.exe'。 受影响的参数是: assemblypath = D:\ wwwroot \ CareScoutServices \ ABC.servicehost.exe logfile = D:\ wwwroot \ ABCServices \ ABC.servicehost.InstallLog logtoconsole = 无法创建ABC.ServiceHost.ProjectInstaller安装程序类型的实例。 System.Reflection.TargetInvocationException:调用目标抛出了异常。 抛出了内部异常System.NullReferenceException,并显示以下错误消息:对象引用未设置为对象的实例.. 回滚组件'D:\ wwwroot \ ABCServices \ ABC.servicehost.exe'。 受影响的参数是: assemblypath = D:\ wwwroot \ ABCServices \ ABC.servicehost.exe logfile = D:\ wwwroot \ ABCServices \ ABC.servicehost.InstallLog logtoconsole = 无法创建ABC.ServiceHost.ProjectInstaller安装程序类型的实例。 System.Reflection.TargetInvocationException:调用目标抛出了异常。 抛出了内部异常System.NullReferenceException,并显示以下错误消息:对象引用未设置为对象的实例..
有人可以帮助您解决此错误。
答案 0 :(得分:0)
这是基本的,但请尝试以管理员身份运行InstallUtil。