I was trying to create a web application using the SPWebApplicationBuilder class. It seemed to work fine, no errors and the web app was created, the app pool was there and I could create a root site collection. But then I ran into problems. I recieved a
500 internal server error and I searched the sp logs and event logs but nothing :(
As it turns out the application pool that the SPWebApplicationBuilder created had the "Enable 32-bit Applications" set to true. After manually setting this to false the site started just fine.
So my question is; how do I set this property when using the SPWebApplicationBuilder class? There is a Properties property on the SPApplicationPool object, however I have not found much documentation on this so I have no idea if this is where to set this.
Also as this code might run on both 32bit and 64bit installs of SharePoint, is there a way to check what architecture SharePoint is installed as...
View Complete Post