View Complete Thread
  • Re: 'Object reference not set to an instance of an object' error in IIS Powershell

    Jun 02, 2009 08:59 AM|Mike C|LINK

    Microsoft - Please Help!

    I have tested a non-DFS share with 'Everyone-Full Control' on both the share and file permissions and the command still returns the error. 

    I have reached the end of my troubleshooting with the following conclusion:

    The new-webvirtualdirectory command returns the error 'New-Item : Object reference not set to an instance of an object.' when the root of the site is held on a share rather than locally.

    I can recreate this problem and it looks to my untrained eye as though the command cannot deal with the '\\server\share' structure when it comes to the root of the site.

    Microsoft, is there any chance you can have a look at this?  My IIS 7 design uses (DFS) shares for all config to ease management so this is a bit of a show stopper.  Thanks, Mike.