首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装install

无法安装install
EN

Stack Overflow用户
提问于 2016-04-04 01:56:09
回答 1查看 4.5K关注 0票数 3

我正在IIS食谱上执行以下菜谱。

  1. mod_application_initialization
  2. mod_aspnet

我在AWS上的opsworks日志中得到了以下异常。

代码语言:javascript
复制
[2016-04-04T01:33:41+00:00] INFO: Running queued delayed notifications before re-raising exception 
[2016-04-04T01:33:41+00:00] ERROR: Running exception handlers 
[2016-04-04T01:33:41+00:00] ERROR: Exception handlers complete 
[2016-04-04T01:33:41+00:00] FATAL: Stacktrace dumped to c:/chef/runs/a66904e6-ad9e-429c-a066-6fe14c0e5494/local-mode-cache/cache/chef-stacktrace.out 
[2016-04-04T01:33:41+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: windows_feature[IIS-NetFxExtensibility] (install-iis::mod_aspnet line 12) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0, 42, 127, 3010], but received '50' 
---- Begin output of C:\Windows\sysnative\dism.exe /online /enable-feature /featurename:IIS-NetFxExtensibility /norestart   ---- 
STDOUT: Deployment Image Servicing and Management tool  
Version: 6.3.9600.17031  

Image Version: 6.3.9600.17031  

Enabling feature(s)  

Error: 50  

The operation is complete but IIS-NetFxExtensibility feature was not enabled.  
A required parent feature may not be enabled. You can use the /enable-feature /all option to automatically enable each parent feature from the following list. If the parent feature(s) are already enabled, refer to the log file for further diagnostics.  
NetFx3, NetFx3ServerFeatures, NetFx4Extended-ASPNET45  

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log 
STDERR:  
---- End output of C:\Windows\sysnative\dism.exe /online /enable-feature /featurename:IIS-NetFxExtensibility /norestart   ---- 
Ran C:\Windows\sysnative\dism.exe /online /enable-feature /featurename:IIS-NetFxExtensibility /norestart   returned 50 

我必须在代码中添加什么才能使其正常工作?

代码语言:javascript
复制
include_recipe 'iis'

if Opscode::IIS::Helper.older_than_windows2008r2?
  log 'Application Initialization module is not supported on Windows 2008 or lower, ignoring'
else
  windows_feature 'IIS-ApplicationInit' do
    action :install
  end
end
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-04-04 02:26:32

NetFx3, NetFx3ServerFeatures, NetFx4Extended-ASPNET45

您也需要启用这些特性,就像启用'IIS-ApplicationInit'一样(也是在此之前)。

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36393510

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档