locked
An Error Occurred When Trying To Publish WAMS RRS feed

  • Question

  • From @fabianwilliams via Twitter

    A customer came in today reporting that they are unable to publish a WAMS that works locally. The only error message they see is "an error occurred" in the browser with the WAMS address. It actually puts the WAMS in the Azure Portal and they can click around, but when trying to go to the uri they get the error message. They can use the uri locally and do CRUD to the DocumentDB database they have it tied to but just can’t get the Azure Site to work. Any assistance on how to help this customer would be appreciated.

    Thanks,
    @AzureSupport


    Wednesday, March 23, 2016 1:15 AM

All replies

  • I tried removing and republishing again and back to same error. here is a complete history of the publish which is successful from Visual Studio standpoint. But errors out in Azure when the browser pops up

    //begin

    1>------ Build started: Project: fabpgalpha, Configuration: Debug Any CPU ------

    1>  fabpgalpha -> C:\1_Git\manchester\DocDbPOC\WAMS\fabpgalpha\fabpgalpha\bin\fabpgalpha.dll

    2>------ Publish started: Project: fabpgalpha, Configuration: Debug Any CPU ------

    2>Transformed Web.config using C:\1_Git\manchester\DocDbPOC\WAMS\fabpgalpha\fabpgalpha\Web.Debug.config into obj\Debug\TransformWebConfig\transformed\Web.config.

    2>Auto ConnectionString Transformed obj\Debug\TransformWebConfig\transformed\Web.config into obj\Debug\CSAutoParameterize\transformed\Web.config.

    2>Copying all files to temporary location below for package/publish:

    2>obj\Debug\Package\PackageTmp.

    2>Start Web Deploy Publish the Application/package to https://waws-prod-blu-017.publish.azurewebsites.windows.net/msdeploy.axd?site=mobile$fabpgalpha1 ...

    2>Adding directory (mobile$fabpgalpha1\bin).

    2>Adding directory (mobile$fabpgalpha1\bin\de).

    2>Adding directory (mobile$fabpgalpha1\bin\es).

    2>Adding directory (mobile$fabpgalpha1\bin\fr).

    2>Adding directory (mobile$fabpgalpha1\bin\it).

    2>Adding directory (mobile$fabpgalpha1\bin\ja).

    2>Adding directory (mobile$fabpgalpha1\bin\ko).

    2>Adding directory (mobile$fabpgalpha1\bin\ru).

    2>Adding directory (mobile$fabpgalpha1\bin\zh-Hans).

    2>Adding directory (mobile$fabpgalpha1\bin\zh-Hant).

    2>Adding directory (mobile$fabpgalpha1\Performance).

    2>Adding ACL's for path (mobile$fabpgalpha1)

    2>Adding ACL's for path (mobile$fabpgalpha1)

    2>Adding file (mobile$fabpgalpha1\bin\Autofac.dll).

    2>Adding file (mobile$fabpgalpha1\bin\AutoMapper.dll).

    2>Adding file (mobile$fabpgalpha1\bin\AutoMapper.Net4.dll).

    2>Adding file (mobile$fabpgalpha1\bin\de\Microsoft.Data.Edm.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\de\Microsoft.Data.OData.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\de\Microsoft.WindowsAzure.Mobile.Service.Entity.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\de\Microsoft.WindowsAzure.Mobile.Service.Tables.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\de\System.Spatial.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\EntityFramework.dll).

    2>Adding file (mobile$fabpgalpha1\bin\EntityFramework.SqlServer.dll).

    2>Adding file (mobile$fabpgalpha1\bin\es\Microsoft.Data.Edm.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\es\Microsoft.Data.OData.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\es\Microsoft.WindowsAzure.Mobile.Service.Entity.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\es\Microsoft.WindowsAzure.Mobile.Service.Tables.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\es\System.Spatial.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\fabpgalpha.dll).

    2>Adding file (mobile$fabpgalpha1\bin\fabpgalpha.pdb).

    2>Adding file (mobile$fabpgalpha1\bin\fr\Microsoft.Data.Edm.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\fr\Microsoft.Data.OData.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\fr\Microsoft.WindowsAzure.Mobile.Service.Entity.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\fr\Microsoft.WindowsAzure.Mobile.Service.Tables.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\fr\System.Spatial.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\it\Microsoft.Data.Edm.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\it\Microsoft.Data.OData.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\it\Microsoft.WindowsAzure.Mobile.Service.Entity.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\it\Microsoft.WindowsAzure.Mobile.Service.Tables.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\it\System.Spatial.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\ja\Microsoft.Data.Edm.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\ja\Microsoft.Data.OData.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\ja\Microsoft.WindowsAzure.Mobile.Service.Entity.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\ja\Microsoft.WindowsAzure.Mobile.Service.Tables.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\ja\System.Spatial.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\ko\Microsoft.Data.Edm.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\ko\Microsoft.Data.OData.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\ko\Microsoft.WindowsAzure.Mobile.Service.Entity.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\ko\Microsoft.WindowsAzure.Mobile.Service.Tables.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\ko\System.Spatial.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.AspNet.Identity.Core.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.AspNet.Identity.Owin.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.Azure.Documents.Client.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.Data.Edm.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.Data.OData.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.Owin.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.Owin.Host.SystemWeb.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.Owin.Security.ActiveDirectory.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.Owin.Security.Cookies.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.Owin.Security.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.Owin.Security.Facebook.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.Owin.Security.Google.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.Owin.Security.Jwt.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.Owin.Security.MicrosoftAccount.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.Owin.Security.OAuth.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.Owin.Security.Twitter.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.ServiceBus.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.WindowsAzure.Configuration.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.WindowsAzure.Mobile.Service.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.WindowsAzure.Mobile.Service.Entity.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Microsoft.WindowsAzure.Mobile.Service.Tables.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Newtonsoft.Json.dll).

    2>Adding file (mobile$fabpgalpha1\bin\Owin.dll).

    2>Adding file (mobile$fabpgalpha1\bin\RazorEngine.dll).

    2>Adding file (mobile$fabpgalpha1\bin\RazorEngine.pdb).

    2>Adding file (mobile$fabpgalpha1\bin\ru\Microsoft.Data.Edm.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\ru\Microsoft.Data.OData.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\ru\Microsoft.WindowsAzure.Mobile.Service.Entity.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\ru\Microsoft.WindowsAzure.Mobile.Service.Tables.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\ru\System.Spatial.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\System.IdentityModel.Tokens.Jwt.dll).

    2>Adding file (mobile$fabpgalpha1\bin\System.Net.Http.Formatting.dll).

    2>Adding file (mobile$fabpgalpha1\bin\System.Spatial.dll).

    2>Adding file (mobile$fabpgalpha1\bin\System.Web.Cors.dll).

    2>Adding file (mobile$fabpgalpha1\bin\System.Web.Http.Cors.dll).

    2>Adding file (mobile$fabpgalpha1\bin\System.Web.Http.dll).

    2>Adding file (mobile$fabpgalpha1\bin\System.Web.Http.OData.dll).

    2>Adding file (mobile$fabpgalpha1\bin\System.Web.Http.Owin.dll).

    2>Adding file (mobile$fabpgalpha1\bin\System.Web.Http.Tracing.dll).

    2>Adding file (mobile$fabpgalpha1\bin\System.Web.Http.WebHost.dll).

    2>Adding file (mobile$fabpgalpha1\bin\System.Web.Razor.dll).

    2>Adding file (mobile$fabpgalpha1\bin\zh-Hans\Microsoft.Data.Edm.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\zh-Hans\Microsoft.Data.OData.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\zh-Hans\Microsoft.WindowsAzure.Mobile.Service.Entity.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\zh-Hans\Microsoft.WindowsAzure.Mobile.Service.Tables.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\zh-Hans\System.Spatial.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\zh-Hant\Microsoft.Data.Edm.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\zh-Hant\Microsoft.Data.OData.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\zh-Hant\Microsoft.WindowsAzure.Mobile.Service.Entity.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\zh-Hant\Microsoft.WindowsAzure.Mobile.Service.Tables.resources.dll).

    2>Adding file (mobile$fabpgalpha1\bin\zh-Hant\System.Spatial.resources.dll).

    2>Adding file (mobile$fabpgalpha1\Global.asax).

    2>Adding file (mobile$fabpgalpha1\packages.config).

    2>Adding file (mobile$fabpgalpha1\Performance\Microsoft.ServiceBus.MessagingPerformanceCounters.man).

    2>Adding file (mobile$fabpgalpha1\Web.config).

    2>Adding ACL's for path (mobile$fabpgalpha1)

    2>Adding ACL's for path (mobile$fabpgalpha1)

    2>Publish Succeeded.

    2>Web App was published successfully http://fabpgalpha1.azure-mobile.net/

    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

    ========== Publish: 1 succeeded, 0 failed, 0 skipped ==========

    //end


    Did you find this Helpful? Please Mark it So! Thank you.

    Connect with Me!

    Fabian G. Williams | Twitter @FabianWilliams | Blog http://www.sharepointfabian.com | Email: fabian@adotob.com

    Adotob Logo

    <

    Wednesday, March 23, 2016 1:57 PM
  • after looking at the log details inside the WAMS portal, it seemed there was  conflict with System.Web.Http module & i replaced it with one from another project and got my wams app working. here is what i noted in the logs.

    //begin

    Log entry details

    <label>Error</label>

    Exception=System.IO.FileLoadException: Could not load file or assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type) at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)

    //end


    Did you find this Helpful? Please Mark it So! Thank you.

    Connect with Me!

    Fabian G. Williams | Twitter @FabianWilliams | Blog http://www.sharepointfabian.com | Email: fabian@adotob.com

    Adotob Logo

    <

    Wednesday, March 23, 2016 5:19 PM