windows AppFabric Powershell 新缓存异常
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4134961/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
AppFabric Powershell New-Cache Exception
提问by downatone
I've just finished an AppFabric install on my prod server after getting this to work without an issues on my dev environment. AppFabric installed without an issues and is running, but when I try to create a new named cache (ps: New-Cache ClickUrls) I get the following exception:
我刚刚在我的生产服务器上完成了 AppFabric 安装,在我的开发环境中没有出现问题后,它可以正常工作。AppFabric 安装没有问题并且正在运行,但是当我尝试创建一个新的命名缓存(ps:New-Cache ClickUrls)时,我收到以下异常:
New-Cache : ErrorCode:SubStatus:Error: Cache creation returned failure.
新缓存:错误代码:子状态:错误:缓存创建返回失败。
At line:1 char:10
在行:1 字符:10
- New-Cache <<<<
- CategoryInfo : NotSpecified: (:) [New-Cache], DataCacheException
- FullyQualifiedErrorId : ERRPS009,Microsoft.ApplicationServer.Caching.Commands.NewCacheCommand
- 新缓存<<<<
- CategoryInfo : NotSpecified: (:) [New-Cache], DataCacheException
- FullQualifiedErrorId : ERRPS009,Microsoft.ApplicationServer.Caching.Commands.NewCacheCommand
Any insight into why its not working? This was a non-issue on my dev environment.
对为什么它不起作用的任何见解?这在我的开发环境中不是问题。
cheers in advance
提前欢呼
采纳答案by UserControl
Open 'Services and Applications' console and check the status of 'AppFabric Caching Service'. On my box (Windows 7 x86) it was configured as manual and not started just after installation.
打开“服务和应用程序”控制台并检查“AppFabric 缓存服务”的状态。在我的机器上(Windows 7 x86),它被配置为手动并且在安装后没有启动。
回答by John Doe
When you run the powershell you must run it as administrator or else you will have this and other errors.
当您运行 powershell 时,您必须以管理员身份运行它,否则您将遇到此错误和其他错误。
回答by Javi
I had the same issue and running the Powershell as administrator did the trick!
我遇到了同样的问题,以管理员身份运行 Powershell 就成功了!
回答by Jim G.
I encountered the same error.
我遇到了同样的错误。
Here's how I fixed it:
这是我修复它的方法:
- Windows Button > services.msc > Hit [Enter].
- Right-click on 'AppFabric Caching Service'.
- Click 'Stop'.
- Go back to PowerShell and create a new cache.
- Windows 按钮 > services.msc > 按 [Enter]。
- 右键单击“AppFabric 缓存服务”。
- 单击“停止”。
- 返回 PowerShell 并创建新缓存。
Success!
成功!
EDIT:Depending on your setup, an iisreset
command might not hurt either.
编辑:根据您的设置,iisreset
命令可能也不会受到伤害。
回答by PhilPursglove
Not a lot to go on there! I just Googled that error code ERRPS009, but according to this pageall it means is 'Cache not created' :-(
没有很多事情要做!我只是在谷歌上搜索了错误代码 ERRPS009,但根据此页面,它的意思是“未创建缓存”:-(
What do you get if you run Test-CacheConfigAvailability
?. You might also want to check the installation log as detailed herefor any issues that failed silently during the install.
如果你跑,你会得到什么Test-CacheConfigAvailability
?您可能还想查看此处详述的安装日志,以了解在安装期间无提示失败的任何问题。