# Iis\_app undefined method 'empty?'

**URL:** <https://discourse.chef.io/t/iis-app-undefined-method-empty/14703>\
**Category:** Chef InSpec\
**Created:** [March 11, 2019, 3:19pm UTC](https://discourse.chef.io/t/iis-app-undefined-method-empty/14703 "2019-03-11T15:19:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![craigontour](https://avatars.discourse-cdn.com/v4/letter/c/7ab992/32.png) [@craigontour](https://discourse.chef.io/u/craigontour)\
**Post date:** [March 11, 2019, 3:19pm UTC](https://discourse.chef.io/t/iis-app-undefined-method-empty/14703/1 "2019-03-11T15:19:11Z")

</div>

Opened a Chef Workstation PowerShell window (on Windows 10) to run inspec-shell on remote nodes.

> inspec shell -t winrm://admin:pass@nodename

This shows the inspec\> prompt, where I run:

> describe iss\_app('FOLDER', 'Default Web Site/') do  
> it { should exist }  
> end

Shows error:

> iis\_app 'Default Web Site/FOLDER'  
> [FAIL] should exist  
> undefined method `empty?' for nil:NilClass

Running _C:\Windows\System32\inetsrv\appcmd list app_ shows the site and path as expected.

The client is running Windows 2008 R1. Is it supported?

PS. Other tests do work, including _mssql\_session.query(..)_
