Strange error when deploy to Azure

Vote:
 

Hi,

When I deployed website to Azure, I got internal error of EPiServer package and cannot open options panel. I'm not sure which package cause this error. Would you please to help me?

EPiServer.Azure 9.4.4

EPiServer.CMS 11.12

EPiServer.CMS.ASPNET 11.13

EPiServer.CMS.Core 11.13

EPiServer.CMS.UI 11.21

EPiServer.CMS.UI.Core 11.21

EPiServer.Framework 11.13

EPiServer.Framework.AspNet 11.13

EPiServer.InstantTemplates 1.0.3-beta

EPiServer.Logging.Log4Net 2.2.2

EPiServer.Marketing.KPI 2.5.2

EPiServer.Marketing.Message 1.3.0

EPiServer.Marketing.Testing 2.5.10

EPiServer.Packaging 3.4.0

EPiServer.Search 9.0.3

EPiServer.Search.CMS 9.0.3

EPiServer.ServiceLocation.StructureMap 2.0.2

Geta.SEO.Sitemaps 3.0.1

#206431
Edited, Aug 21, 2019 9:17
Vote:
 

Tricky!

I would start by checking /modules folder locally and compare to what you have on production. Might be a package that is partly missing?

#206433
Aug 21, 2019 9:45
Linh Le - Aug 22, 2019 8:22
I checked all files, they are as same as local. I can run EPiServer locally with no errors, but error throw only on Azure
Vote:
 

I've seem the A/B testing tool cause similar issues to this before. Worth trying to uninstall it and then see if it solves the problem?

#206454
Aug 21, 2019 16:06
Linh Le - Aug 22, 2019 14:07
I already tried to remove but did not help
Vote:
 

I tried to deploy new Alloy site to Azure by follow this structure https://world.episerver.com/documentation/developer-guides/CMS/Deployment/deployment-scenarios/Deploying-to-Azure-webapps/

EPiServer.CMS 11.12.0

EPiServer.CMS.Core 11.13.0

EPiServer.CMS.UI 11.21.4

EPiServer.Azure 9.4.4

I browsed site with both ***.azurewebsites.net and ***.azurewebsites.net/EPiServer. The site show below error

***.azurewebsites.net

***.azurewebsites.net/EPiServer

#206509
Aug 22, 2019 14:20
David Knipe - Aug 22, 2019 14:57
Can you find the source/log of the 500 error?
Vote:
 

These are stack trace. Source code work well in my local PC but when I deploy to azure, it throw error

url: ***.azurewebsites.net:443/episerver

#206523
Edited, Aug 23, 2019 4:54
David Knipe - Aug 23, 2019 8:33
Can you post the stack trace for the 500 error?
Vote:
 

Here is 500 error stack trace

User Agent	Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36
Url	https://******.azurewebsites.net:443/
Referer	https://login.microsoftonline.com/
Exception details: DirectoryNotFoundException: Could not find a part of the path 'D:\home\site\wwwroot\EPiServer\Shell\ClientResources\packages.config'.
Stack trace:
[DirectoryNotFoundException: Could not find a part of the path 'D:\home\site\wwwroot\EPiServer\Shell\ClientResources\packages.config'.]
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.Web.Hosting.MapPathBasedVirtualFile.Open()
   at EPiServer.Shell.UI.Web.Resources.ClientResourcePackageLoader.LoadPackages()
   at EPiServer.Shell.UI.Web.Resources.ShellPackageClientResourceProvider.LoadClientResources()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at EPiServer.Shell.UI.Web.Resources.ShellPackageClientResourceProvider.GetClientResources()
   at EPiServer.Framework.Web.Resources.Internal.ClientResourceService.<>c.<.ctor>b__5_1(IClientResourceProvider p)
   at System.Linq.Enumerable.d__17`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at EPiServer.Framework.Web.Resources.Internal.ClientResourceService.<.ctor>b__5_0()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at EPiServer.Framework.Web.Resources.Internal.ClientResourceService.GetClientResourcesByName(String name)
   at EPiServer.Framework.Web.Resources.Internal.ClientResourceService.b__17_0(ClientResourceSettings settings)
   at System.Linq.Enumerable.d__17`2.MoveNext()
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
   at EPiServer.Framework.Dependencies.DependencySorter`1.Sort(IEnumerable`1 items, Func`2 getDependenciesDelegate, Boolean throwOnCycle)
   at EPiServer.Framework.Web.Resources.Internal.ClientResourceService.ExpandDependenciesRecursively(String renderingArea)
   at EPiServer.Framework.Web.Resources.Internal.ClientResourceService.GetRequiredResources(String renderingArea)
   at EPiServer.Framework.Web.Resources.ClientResources.RenderRequiredResources(String renderingArea)
   at EPiServer.Web.Mvc.Html.QuickNavigatorHtmlHelperExtensions.RenderEPiServerQuickNavigator(HtmlHelper htmlHelper, String partialViewName)
   at ASP._Page_Views_Shared__Layout_cshtml.Execute() in d:\home\site\wwwroot\Views\Shared\_Layout.cshtml:line 87
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
   at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
   at System.Web.WebPages.WebPageBase.<>c__DisplayClass40_0.b__0(TextWriter writer)
   at System.Web.WebPages.HelperResult.WriteTo(TextWriter writer)
   at System.Web.WebPages.WebPageBase.Write(HelperResult result)
   at System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body)
   at System.Web.WebPages.WebPageBase.PopContext()
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
   at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
   at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
   at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_6.b__3()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_1.b__5(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.<>c.b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
   at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.<>c.b__151_2(IAsyncResult asyncResult, Controller controller)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
   at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult)
   at System.Web.Mvc.MvcHandler.<>c.b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
   at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
   at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.<>c__DisplayClass285_0.b__0()
   at System.Web.HttpApplication.StepInvoker.Invoke(Action executionStep)
   at System.Web.HttpApplication.StepInvoker.<>c__DisplayClass4_0.b__0()
   at Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.OnExecuteRequestStep(HttpContextBase context, Action step)
   at System.Web.HttpApplication.<>c__DisplayClass284_0.b__0(Action nextStepAction)
   at System.Web.HttpApplication.StepInvoker.Invoke(Action executionStep)
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
#206534
Aug 23, 2019 11:39
David Knipe - Aug 23, 2019 14:19
Have you ensured you are deploying the /modules/ folder with your solution? Looks like it could be missing?
https://world.episerver.com/documentation/developer-guides/CMS/Deployment/deployment-scenarios/Deploying-to-Azure-webapps/#Deploying
Linh Le - Aug 26, 2019 6:35
I thought as same as you when I had first look at error, but when I compared files in Azure Kudu and my solution, they were same. Packages in modules folder were deployed.
Tero Niemi - Jul 07, 2020 10:23
Did you find some solution for this? I setup Alloy MVC demosite and having the same problem in Azure. Running nicely locally though... :(
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.