Granting Rights Halting

Topics: General Questions, Support
Nov 19, 2013 at 5:15 PM
I am not sure what I did, I have run this tool several time without issue. But somehow I modified something I believe, and its halting. I get the following exception

Exception : System.Management.Automation.MethodInvocationException:
                     Exception calling "GrantAccessToProcessIdentity" with
                    "1" argument(s): "String cannot be of zero length.
                    Parameter name: name" ---> System.ArgumentException:
                    String cannot be of zero length.
                    Parameter name: name
                       at System.Security.Principal.NTAccount..ctor(String
                    name)
                       at Microsoft.SharePoint.Administration.SPWebApplicat
                    ion.GrantAccessToProcessIdentity(String username,
                    SPPolicyRoleType policyRole)
                       at CallSite.Target(Closure , CallSite , Object ,
                    String )
                       --- End of inner exception stack trace ---
                       at System.Management.Automation.ExceptionHandlingOps
                    .CheckActionPreference(FunctionContext funcContext,
                    Exception exception)
                       at System.Management.Automation.Interpreter.ActionCa
                    llInstruction`2.Run(InterpretedFrame frame)
                       at System.Management.Automation.Interpreter.EnterTry
                    CatchFinallyInstruction.Run(InterpretedFrame frame)
                       at System.Management.Automation.Interpreter.EnterTry
                    CatchFinallyInstruction.Run(InterpretedFrame frame)
TargetObject :
CategoryInfo : NotSpecified: (:) [], MethodInvocationException
FullyQualifiedErrorId : ArgumentException
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at CreateWebApp, D:\SharePoint\AutoInstaller\SP\AutoSPI
                    nstaller\AutoSPInstallerFunctions.ps1: line 2326
                    at CreateWebApplications, D:\SharePoint\AutoInstaller\S
                    P\AutoSPInstaller\AutoSPInstallerFunctions.ps1: line
                    2217
                    at Setup-Farm, D:\SharePoint\AutoInstaller\SP\AutoSPIns
                    taller\AutoSPInstallerMain.ps1: line 191
                    at <ScriptBlock>, D:\SharePoint\AutoInstaller\SP\AutoSP
                    Installer\AutoSPInstallerMain.ps1: line 362
                    at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
PSMessageDetails :