Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set app pool to be "No Managed Code" #240

Closed
jamestoyer opened this issue Jan 15, 2016 · 1 comment
Closed

Unable to set app pool to be "No Managed Code" #240

jamestoyer opened this issue Jan 15, 2016 · 1 comment

Comments

@jamestoyer
Copy link

When I create (or update) an App Pool to have a property of no_managed_code = true, I get an invalid .NET CLR versoin. My App Pool definition is:

iis_pool "skynet" do
  action [:add, :config]
  no_managed_code true
  start_mode :AlwaysRunning
  pool_identity :ApplicationPoolIdentity
  load_user_profile true
end

This sets the App Pool to (taken from applicationHost.config):

" /[name='skynet'].processModel.loadUserProfile:true /[name='skynet'].recycling.logEventOnRecycle:PrivateMemory,Memory,Schedule,Requests,Time,ConfigChange,OnDemand,IsapiUnhealthy

I did the Chef run with a log level of default and I've attached the part where the App Pool is created. The error seems to come when configure method is called. For now I can correct this by setting the app pool to v4.0 and running a command script to fix it, but this is not ideal.

Debug Trace:

==> web:   * iis_pool[skynet] action add[2016-01-15T07:55:43-08:00] INFO: Processing iis_pool[skynet] action add (skynet::app line 18)
==> web: [2016-01-15T07:55:43-08:00] DEBUG: Providers for generic iis_pool resource enabled on node include: [LWRP provider iis_pool from cookbook iis]
==> web: [2016-01-15T07:55:43-08:00] DEBUG: Provider for action add on resource iis_pool[skynet] is LWRP provider iis_pool from cookbook iis
==> web: [2016-01-15T07:55:44-08:00] DEBUG: iis_pool[skynet] list apppool command output: APPPOOL ".NET v4.5 Classic" (MgdVersion:v4.0,MgdMode:Classic,state:Started)
==> web:
==> web: APPPOOL ".NET v4.5" (MgdVersion:v4.0,MgdMode:Integrated,state:Started)
==> web:
==> web:
==> web: [2016-01-15T07:55:44-08:00] DEBUG: iis_pool[skynet] current_resource match output:
==> web: [2016-01-15T07:55:44-08:00] DEBUG: C:\Windows\System32\inetsrv\appcmd.exe add apppool /name:"skynet" /managedRuntimeVersion:"" /commit:"MACHINE/WEBROOT/APPHOST"
==> web: [2016-01-15T07:55:45-08:00] DEBUG: C:\Windows\System32\inetsrv\appcmd.exe list apppool "skynet" /config:* /xml
==> web: [2016-01-15T07:55:45-08:00] DEBUG: C:\Windows\System32\inetsrv\appcmd.exe set config /section:applicationPools "/[name='skynet'].startMode:AlwaysRunning" "/[name='skynet'].managedRuntimeVersion:""" "/[name='skynet'].processModel.loadUserProfile:true" "/[na
==> web: me='skynet'].recycling.logEventOnRecycle:PrivateMemory,Memory,Schedule,Requests,Time,ConfigChange,OnDemand,IsapiUnhealthy"
==> web: [2016-01-15T07:55:45-08:00] INFO: iis_pool[skynet] configured application pool
==> web:
==> web: [2016-01-15T07:55:45-08:00] INFO: App pool created
==> web:
==> web:
==> web:   * iis_pool[skynet] action config[2016-01-15T07:55:45-08:00] INFO: Processing iis_pool[skynet] action config (skynet::app line 18)
==> web: [2016-01-15T07:55:45-08:00] DEBUG: Providers for generic iis_pool resource enabled on node include: [LWRP provider iis_pool from cookbook iis]
==> web: [2016-01-15T07:55:45-08:00] DEBUG: Provider for action config on resource iis_pool[skynet] is LWRP provider iis_pool from cookbook iis
==> web: [2016-01-15T07:55:46-08:00] DEBUG: iis_pool[skynet] list apppool command output: APPPOOL ".NET v4.5 Classic" (MgdVersion:v4.0,MgdMode:Classic,state:Started)
==> web:
==> web: APPPOOL ".NET v4.5" (MgdVersion:v4.0,MgdMode:Integrated,state:Started)
==> web:
==> web: APPPOOL "skynet" (MgdVersion:" /[name='skynet'].processModel.loadUserProfile:true /[name='skynet'].recycling.logEventOnRecycle:PrivateMemory,Memory,Schedule,Requests,Time,ConfigChange,OnDemand,IsapiUnhealthy,MgdMode:Integrated,state:Started)
==> web: [2016-01-15T07:55:46-08:00] DEBUG: iis_pool[skynet] current_resource match output: APPPOOL "skynet" (MgdVersion:" /[name='skynet'].processModel.loadUserProfile:true /[name='skynet'].recycling.logEventOnRecycle:PrivateMemory,Memory,Schedule,Requests,Time,ConfigChange,OnDemand,IsapiUnhealthy,MgdMode:Integrated,state:Started)
==> web: [2016-01-15T07:55:46-08:00] DEBUG: C:\Windows\System32\inetsrv\appcmd.exe list apppool "skynet" /config:* /xml
==> web: [2016-01-15T07:55:46-08:00] DEBUG: C:\Windows\System32\inetsrv\appcmd.exe set config /section:applicationPools "/[name='skynet'].managedRuntimeVersion:""" "/[name='skynet'].processModel.loadUserProfile:true" "/[name='skynet'].recycling.logEventOnRecycle:PrivateMemory,Memory,Schedule,Requests,Time,ConfigChange,OnDemand,IsapiUnhealthy"
==> web: [2016-01-15T07:55:46-08:00] INFO: iis_pool[skynet] configured application pool
@EasyAsABC123
Copy link
Contributor

Resolved by e54eada

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants