Error: ErrorCodeERRPS008:SubStatusES0001:Error: Could not read installation path from registry.
求助,如果有哪位对Windows server AppFabric1.1比较熟悉的同学,知道此问题如何解决,还望留言告之。
”目前我有一个Web应用程序,这个程序的功能就是管理Windows server Appfabric的。当然这在后台实际都是通过调用一个 appfabric的管理命令进行的。而这些命令我又是通过WF来实现,然后以WCF的方式发布出来,以供Web应用程序调用。之前我是使用的控制台应用程序Host整个 WCF服务,运行一直很正常。 后来,我改为部署都IIS上,通过Appfabric host功能进行部署时就会报“Error: ErrorCode<ERRPS008>:SubStatus<ES0001>:Error: Could not read installation path from registry.” 这样的错误。 此WCF服务的配置文件全文如下:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0"></compilation>
</system.web>
<system.serviceModel>
<services>
<service name="CacheHostService" behaviorConfiguration="netTcpServiceBehavior">
<endpoint address="net.tcp://localhost:4533/Service/CacheHostService.xamlx" binding="netTcpBinding" bindingConfiguration="PortSharingBinding" contract="ICacheHostService">
</endpoint>
<endpoint address="net.tcp://localhost:4533/Service/CacheHostService.xamlx/mex" binding="mexTcpBinding" contract="IMetadataExchange"></endpoint>
</service>
<service name="CacheClusterService" behaviorConfiguration="netTcpServiceBehavior">
<endpoint address="net.tcp://localhost:4533/Service/CacheClusterService.xamlx" binding="netTcpBinding" bindingConfiguration="PortSharingBinding" contract="ICacheClusterService">
</endpoint>
<endpoint address="net.tcp://localhost:4533/Service/CacheClusterService.xamlx/mex" binding="mexTcpBinding" contract="IMetadataExchange"></endpoint>
</service>
<service name="CacheService" behaviorConfiguration="netTcpServiceBehavior">
<endpoint address="net.tcp://localhost:4533/Service/CacheService.xamlx" binding="netTcpBinding" bindingConfiguration="PortSharingBinding" contract="ICacheService">
</endpoint>
<endpoint address="net.tcp://localhost:4533/Service/CacheService.xamlx/mex" binding="mexTcpBinding" contract="IMetadataExchange"></endpoint>
</service>
<service name="ConfigCommandService" behaviorConfiguration="netTcpServiceBehavior">
<endpoint address="net.tcp://localhost:4533/Service/ConfigCommandService.xamlx" binding="netTcpBinding" bindingConfiguration="PortSharingBinding" contract="IConfigCommandService">
</endpoint>
<endpoint address="net.tcp://localhost:4533/Service/ConfigCommandService.xamlx/mex" binding="mexTcpBinding" contract="IMetadataExchange"></endpoint>
</service>
</services>
<bindings>
<netTcpBinding>
<binding name="PortSharingBinding" portSharingEnabled="true">
<security mode="None"></security>
</binding>
</netTcpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="netTcpServiceBehavior">
<serviceMetadata httpGetEnabled="false" />
<serviceDebug includeExceptionDetailInFaults="true" />
<dataContractSerializer maxItemsInObjectGraph="2147483647" />
<serviceAuthorization principalPermissionMode="None">
</serviceAuthorization>
<serviceThrottling maxConcurrentCalls="2000" maxConcurrentInstances="2000" maxConcurrentSessions="2000" />
<serviceTimeouts transactionTimeout="00:10:00" />
</behavior>
<behavior name="">
<sqlWorkflowInstanceStore instanceCompletionAction="DeleteAll" instanceEncodingOption="None" instanceLockedExceptionAction="NoRetry" connectionStringName="ApplicationServerWorkflowInstanceStoreConnectionString" hostLockRenewalPeriod="00:00:30" runnableInstancesDetectionPeriod="00:00:05" />
</behavior>
</serviceBehaviors>
</behaviors>
<!---this code resolve the issue-->
<serviceHostingEnvironment>
<baseAddressPrefixFilters>
<add prefix="net.tcp://localhost:4533/Service/" />
</baseAddressPrefixFilters>
</serviceHostingEnvironment>
<!--End above-->
</system.serviceModel>
<!--runtime section let sub thread impersonation main thread policy-->
<runtime>
<legacyImpersonationPolicy enabled="false"/>
<alwaysFlowImpersonationPolicy enabled="true"/>
</runtime>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<directoryBrowse enabled="true" />
</system.webServer>
</configuration>
把具体命令传入Appfabric的核心代码如下:
internal static Collection<PSObject> InvokeCommand(this Runspace runSpace, string commandName, Dictionary<string, object> parameters = null)
{
Command command = new Command(commandName);
if (parameters != null && parameters.Count > 0)
{
foreach (var item in parameters)
{
command.Parameters.Add(item.Key, item.Value);
}
}
WindowsIdentity winId = WindowsIdentity.GetCurrent();
WindowsImpersonationContext ctx = null;
Collection<PSObject> results = null; //shell.Invoke();
try
{
using (ctx = winId.Impersonate())// this code will let the pipelin.invoke() run as main thread's right
{
using (Pipeline pipeline = runSpace.CreatePipeline())
{
pipeline.Commands.Add(command);
results = pipeline.Invoke();//代码运行到此处时就报发错误
}
}
}
catch (System.Exception objException)
{
// ctx.Undo();
throw objException;
}
return results;
}
在对服务的IIS配置中,我配置以ASP.NET V4.0的应用程序池运行,并且以新建了一个具有管理员权限账号运行此服务。
如果有谁知道如何解决,或者知道这里的错误原因是什么? 还请告之小弟。不胜感激呀。
转载于:https://www.cnblogs.com/lention/archive/2012/05/08/2489703.html
Error: ErrorCodeERRPS008:SubStatusES0001:Error: Could not read installation path from registry.相关推荐
- Error in install.packages : cannot remove prior installation of package
Error in install.packages : cannot remove prior installation of package 目录 Error in install.packages ...
- 使用IntelliJ IDEA导入 Flink 消费kafka报错 Error: A JNI error has occurred, please check your installation an
提示找不到类,pom中已经引用了jar包,使用eclipse也可以执行,就是IntelliJ不行 java.lang.NoClassDefFoundError: org/apache/flink/ap ...
- error gyp ERR! stack Error: Could not find any Visual Studio installation to use
今天安裝 npx create-react-app my-app 报错. 其他报错的方法这里就不讲了,其他好多站都有解决办法,这里把没有提到过的说下. 报错信息 gyp ERR! find VS gy ...
- lDEA报错Error: A JNI error has occurred, please check your installation and try again
今天java程序run出现 Error: A JNI error has occurred, please check your installation and try again 解决方法:修改j ...
- Error:A JNI error has occurred,please check your installation and try again
Error:A JNI error has occurred,please check your installation and try again 该错误多由Java JDK更新安装后导致,相当于 ...
- 【庖丁解牛】configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
问题复现 php重新编译,报错:configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installa ...
- JAVA--命令行窗口-java运行报错:Error: A JNI error has occurred,please check your installation and try again
现象: 进行Java程序的编译与运行. 在操作过程中报错,具体为javac编译成功,而java运行报错:如下图: 错误为:Error: A JNI error has occurred,please ...
- Error: A JNI error has occurred, please check your installation and try again 更新Compiler compliance
问题描述: 在执行简单的Java 语句的时候,出现了 Error: A JNI error has occurred, please check your installation and try a ...
- ArcGIS安装报错 Error: Error 1935: An error occurred during the installation of assembly
缘起 帮客户安装ArcGIS,报错Error: Error 1935: An error occurred during the installation of assembly,然后查资料说让卸载. ...
- eclipse生成java项目出错,Java项目使用了HttpClients相关包,用eclipse导出jar包就不能正常运行Error: A JNI error has occurred...
代码是execute里面设置null不会有问题,如果是对象,就会报错.代码如下: HttpGet get = new HttpGet(); HttpResponse response = HttpCl ...
最新文章
- PyTorch下的可视化工具(网络结构/训练过程可视化)
- 英伟达“神笔马良”GauGAN发布Windows应用程序,可导出PSD文件
- 动态规划之背包模型及其扩展应用
- mysql数据库 sid_jdbc连接数据库使用sid和service_name的区别
- 2017计算机等级考试试题,2017年计算机二级考试练习题及答案
- android怎么长按一张图片保存到相册_好看的微信朋友圈背景图片下载 让你的朋友圈封面个性起来...
- 腾讯叮当智能屏发布,主打视听体验、海量内容、儿童模式
- 【Linux磁盘优化管理--RAID和LVM】
- Web前端开发需要掌握的技能有哪些?
- Commons IO 2.5-IOUtils
- socket怎么同时监听两个端口_三十岁了,我同时爱上两个男人,我现在不知道怎么办...
- java web开发技术文档的编写
- 扫雷游戏网页版_佛性扫雷 炸不炸随缘
- RS485总线应用与选型指南
- python变量相关性,数据科学:定量和定性变量之间的相关性(python语言)
- gwipr70驱动天空_win7 kmplayer plus设置_gwi pr2 pluswin7驱动_kmplayerplus官方下载
- 数据有效性跨表引用的解决
- linux nfs acl 特定ip,Linux NFS配置
- Chrome浏览器手动调节模拟网速
- linux rtl8723bu 蓝牙,RTL8723BU(wifi Bluetooth) 移植
热门文章
- RocketMQ一个新的消费组初次启动时从何处开始消费呢?
- PhantomReference虚引用
- 让自己的电脑会说话||让电脑在开机时说话
- 计算机桌面的理解,电脑桌面的基础知识教程,教你认识电脑桌面
- linux开发者的一天
- java对excel进行加密_用poi-3.6-20091214.jar 实现java给excel资料加密
- 手机开发APP整体界面设计工具之墨刀---没用过就知道它很牛掰
- 自动驾驶|福特将在美国新建自动驾驶汽车工厂 计划未来两年投产
- Jenkins整合slaver完整搭建
- 一、为何我决定写Spring Cloud专栏