I created web app pragmatically from c# using server object model, and on that web app I have created new host named site collection.
now when I try to open General settings in CA for that web app i get "Updates are currently disallowed on GET requests".
I used this powerShell command to fix that part:
$w = get-spwebapplication yourwebapplication
$w.HttpThrottleSettings
$w.Update()
but when I try to open site collection that I created on that web app i get this:
An unexpected error has occurred.
Technical Details
--------------------------------------------------------------
Go back to site"
When I create web app from powerShell script and site collection same as before I don't get any error and everything is working fine.
does someone have any idea how to fix problem with site collection?