WebAdministrationDsc icon indicating copy to clipboard operation
WebAdministrationDsc copied to clipboard

xWebApplication: Fails when creating a Web Application as child under another Web Application

Open emitodiaz opened this issue 8 years ago • 3 comments

Hi! Related with xWebApplication regression in #220. PhysicalPath issue. #222 , I think that the code inside "Update Physical Path" (and "Update AppPool" ) it's not working very well when you have a Web Application inside a WebApplication, example:

WepAppPrincipal

  • WebChild1
  • WebChild2

I was testing and modifying the code inside and looks like that a checking for NULL it's missing??? (what do you think???)

this part of code: if (($PSBoundParameters.ContainsKey('PhysicalPath') -and ` $webApplication.physicalPath -ne $PhysicalPath) here I add: -and ($webApplication.physicalPath -ne $null) )

Because if I not checkin for null giveme the message: Argument Filter is null blablablabla.

Any one else having the same issue? Thanks. Emiliano.

emitodiaz avatar Mar 09 '17 16:03 emitodiaz

I get the same issue, though it's for a WebApplication being created inside a VirtualDirectory.

richardgavel avatar May 17 '17 15:05 richardgavel

I have labeled this as a bug and help wanted to that someone in the community can run with it.

johlju avatar Apr 26 '18 13:04 johlju