SharePoint 2013 On-Premise Web Application creation error
During creation of web application with host name interesting thing happened to me today. After I tried to create web application, firstly it really takes a LOT of time. Whatever after couple of minutes the “page could not be found” appears in popup with new web app creating process. Some Time Out? I tried to search for some error message, but nothing in ULS, or anything else. Just this popup with page cannot be found and little word Dialog on the upper left. I close this popup, refresh page in Central Administration and new web application appear. OK, maybe just “something between the earth and heaven”. Let’s try to create site collection. It creates normally, so let’s try to open the new team site on this site collection. Nothing (404). Well, ok, interesting. ULS nothing, anywhere anything, what should be wrong. Let’s delete this web application and try normal one without host name. Still the same result. After some googling and troubleshooting,
Firstly, when I opened general settings – error. OK, I am on on-premise, so I can change parameters in web.config and found, that there are some bad files in virtual directory of the concrete web application. So I tried to copy the bad files from another web application. Error was gone, bud 404 appear when I tried to access team site. The binding was correct, because access to normal files in IIS was functional. So another googling.
I found some articles about this problem and resolution just put me down. You should switch one parameter in in default application pool IIS. Really? REALLY? It doesn’t make sense. There is some inheritance for application pools in IIS? I looked into my LAB environment and there is nothing changed, nothing different, web application normally created, site collection as well.
But let’s try it, I’ve changed the settings of default app pool (as you can see on the screen bellow), reset IIS just for sure, and woala, everything works. A was able to create web application, create site collection, access site collection and even go to web application general settings.