-
Posted to
IIS 7.0 - PowerShell
by
Mike C
on
06-12-2009, 11:13 AM
Once again, hi Sergei,
in addition to the two posts above. I have run the dir \\dwar02\wwwroot command on the W2K8 machine but in native Powershell rather than the IIS extension of Powershell. And it works:
PS C:\Users\mikec> dir \\dwar02\wwwroot
Directory: ...
-
Posted to
IIS 7.0 - PowerShell
by
Mike C
on
06-12-2009, 11:08 AM
Hi Sergei,
in addition to the post above, I have done a quick test.
I set the 'Default Web Site' root to C:\inetpub\wwwroot and ran the dir 'iis:/sites/default web site' command, and this returned a list of files in that directory.
I then shared the wwwroot directory (sharename wwwroot) and changed the 'Default Web Site' ...
-
Posted to
IIS 7.0 - PowerShell
by
Mike C
on
06-12-2009, 10:36 AM
Hi Sergei,
I didn't cover myself in glory there did I? :)
Yes, if I perform the dir iis:\sites\default web site command (properly this time! :)) I get the same 'get-childitem' error as you describe.
So, this makes me wonder which security context the dir command runs under because my user account (which I am using to run ...
-
Posted to
IIS 7.0 - PowerShell
by
Mike C
on
06-09-2009, 4:08 AM
Hi Sergei,
I have installed Powershell 2.0 CTP3 on one of the IIS servers and I still have the same problem (although the error reporting is better!):
PS IIS:\> new-webvirtualdirectory -site "Default Web Site" -name MCTest -physicalpath c:\
New-Item : Object reference not set to an instance of an object.
+ ...
-
Posted to
IIS 7.0 - PowerShell
by
Mike C
on
06-08-2009, 8:35 AM
Hi Sergei,
as I now have a few more commands (that you taught me!) I re-ran some of my tests. I ran four scenarios with a new IIS7 server (DWAR02). Each scenario had 5 tests, the results are below.
The results confirm my findings, that when the physical path of the 'Default Web Site' is on a share I cannot run the create ...
-
Posted to
IIS 7.0 - PowerShell
by
Mike C
on
06-08-2009, 4:41 AM
Hi Sergei,
thanks for your continued assistance, the answers (hopefully) to your questions are below. There are some errors which I have highlighted in bold. I have also provided the $StackTrace for each of these errors at the end.
1. Which version of PowerShell are you using? Is it version 1 or version 2?
PS IIS:\> ...
-
Posted to
IIS 7.0 - PowerShell
by
Mike C
on
06-04-2009, 7:08 AM
Sergei,
it is probably worth me being a little clearer on the problem. The issue only occurs when the web site (e.g. Default Web Site) is set to a share. Virtual directories under the web site are fine whether they are local or on a share.
-
Posted to
IIS 7.0 - PowerShell
by
Mike C
on
06-04-2009, 5:31 AM
Hi Sergei, with the help of a few blogs I managed to get the following information from the error:Exception : System.NullReferenceException: Object reference not set to an instance of an ...
-
Posted to
IIS 7.0 - PowerShell
by
Mike C
on
06-04-2009, 4:17 AM
Hi Sergei,
I downloaded and installed the IIS Powershell snapin from the website (64 bit edition). Is it possible I am using thw wrong version? How can I tell?
The computers are part of a domain.
I am going to show my ignorance here, how do I get the output from 'variable $error[0].Exception.StackTrace' when I reproduce the ...
-
Posted to
IIS 7.0 - PowerShell
by
Mike C
on
06-02-2009, 8:59 AM
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 ...