Broken deployment moving from 1.4 to 1.6 SDK with ASP.Net Website (not Web application)

Answered Broken deployment moving from 1.4 to 1.6 SDK with ASP.Net Website (not Web application)

  • Friday, May 04, 2012 3:28 PM
     
     

    Hi,

    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."

    followed by

    "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 is my config

    <?xml version="1.0" encoding="utf-8"?>
    <ServiceDefinition name="[XXX]" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
      <WebRole name="[XXX]" vmsize="ExtraSmall">
        <Sites>
          <Site name="[XXX]" physicalDirectory=".\[XXX]">
            <Bindings>
              <Binding name="Endpoint1" endpointName="Endpoint1" />
            </Bindings>
          </Site>
        </Sites>
        <Endpoints>
          <InputEndpoint name="Endpoint1" protocol="http" port="80" />
        </Endpoints>
        <Imports>
          <Import moduleName="Diagnostics" />
          <Import moduleName="RemoteAccess" />
          <Import moduleName="RemoteForwarder" />
        </Imports>
        <Certificates>
        </Certificates>
      </WebRole>
    </ServiceDefinition>

    I have also tried creating a default website and the same configuration using Visual Studio with the same results.

    Thanks for any help.

    John.

All Replies

  • Saturday, May 05, 2012 4:38 AM
    Moderator
     
     

    Hi,

    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?

    Hope this helps.


    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework

  • Tuesday, May 08, 2012 1:24 PM
     
     

    Hi Arwind,

    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.

    Regards,

    John.

    <?xml version="1.0" encoding="utf-8"?>
    <ServiceConfiguration serviceName="XXX" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="1" osVersion="*">
      <Role name="XXX">
        <Instances count="1" />
        <ConfigurationSettings>
          <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="DefaultEndpointsProtocol=https;AccountName=XXX;AccountKey=XXX" />
          <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.Enabled" value="true" />
          <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountUsername" value="XXX" />
          <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword" value="XXX" />
          <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountExpiration" value="2012-09-14T23:59:59.0000000+00:00" />
          <Setting name="Microsoft.WindowsAzure.Plugins.RemoteForwarder.Enabled" value="true" />
        </ConfigurationSettings>
        <Certificates>
          <Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="XXX" thumbprintAlgorithm="sha1" />
        </Certificates>
      </Role>
    </ServiceConfiguration>

  • Wednesday, May 09, 2012 2:10 AM
    Moderator
     
     Answered

    Hi,

    Does your Azure 1.6 SDK has been installed correctly, The recommended way is presist lastest Azure SDK in 1 machine.

    The lastest Azure SDK download from:
    http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=28045

    Have a try.


    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework

  • Monday, May 14, 2012 8:56 AM
    Moderator
     
     
    Have you solve this problem?

    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework

  • Tuesday, May 15, 2012 1:20 PM
     
     Answered

    I faced similar issue and after breaking my head for few hours I figured it out. After disabling web deploy on for the web application / Web site it started working.

    Right click on the web site/ Web application and go to properties from publish tab uncheck web deploy save it and try.


    -Sachin Sancheti