brianlala / AutoSPInstaller

Automated SharePoint 2010/2013/2016/2019/SE PowerShell-based installation script.
https://autospinstaller.com
MIT License
172 stars 81 forks source link

new-spwebapplication cannot bind #51

Open msekkappan opened 4 years ago

msekkappan commented 4 years ago

Received this error "new-spwebapplication cannot bind argument be parameter applicationpool because it is null" after creating the my sites. Digged deeper, found out that the variable $mysiteAppPool on line 3298 is not initialized and is used in some scenario. I installed the web sites to non standard ports, not sure whether that caused the issue or not.

Anyway, I manually initialized the variable $mysiteAppPool to the applicationpool in order for the script to continue.