I have a an ASP.Net website (not web application) which I had deployed to Azure using the Azure 1.4 SDK using cspack and uploading using the Azure Management portal which it works fine. Once I try to use the 1.6 SDK however the role fails to start saying
"unhandled exception" but it will run fine in the 1.6 compute emulator.
Checking the windows logs using Remote Desktop I can see a problem with WAS from the warning message
"The application '/' belonging to site '1' has an invalid AppPoolId 'DefaultAppPool' set. Therefore, the application will be ignored."
"Site 1 was disabled because the root application defined for the site is invalid. See the previous event log message for information about why the root application is invalid."
later similar warnings look like this
The application '/' belonging to site '32210681' has an invalid AppPoolId 'c7153dc3-5149-4678-85f7-fcd1006e5310' set. Therefore, the application will be ignored.
I looked at IIS too at the site doesn't seem to be created there at all but it does exist in the file system.
This error looks like your Web site Application Pool ID is invalid when deployed on IIS environment, so website won't be created. Do you ever enable any third party libraries for this web site? (may be Twilio.Mvc assembly, Airfoil?)
It looks your configuration is nothing specially, and i have ever use the same configurations at my site but do not see any error message. You mentioned that the website works fine in local, could find the related website (By Azure) in IIS when debugging?
No I'm afraid I am not enabling any thrid party libraries. I can replicate the problem by creating a New Web Site in VS2010, adding the definition file as above plus the following configuration file - I am not changing the defaults, cspack with 1.4 will
upload the site correctly while cspack wwith 1.6 SDK will result in the errors mentioned.
Yes when deployed to the emulator it works as expected.