November Happy Hour will be moved to Thursday December 5th.

"Unhandled exception in ASP.NET" from Azure-hosted EPiServer...

Vote:
 

Hey,

We experience our site going down for a few minutes, and filling the logs with this exception below. We don't have much to go from, though. There has been no deployment prior to this exception. The site just goes unresponsive for a while, and we're hoping to get some answers in here...

The EPiServer version is 10.4.3.

The site runs as a Web App on Azure.

1.2.5 Unhandled exception in ASP.NET
System.Configuration.ConfigurationErrorsException: Exception of type 'System.Configuration.ConfigurationErrorsException' was thrown.
at System.Web.Configuration.ErrorRuntimeConfig.GetSectionObject(String sectionName)
at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
at System.Web.Configuration.RuntimeConfig.get_Authorization()
at System.Web.Security.UrlAuthorizationModule.CheckUrlAccessForPrincipal(String virtualPath, IPrincipal user, String verb)
at EPiServer.Security.PrincipalInfo.HasPathAccess(String path)
at EPiServer.Web.Internal.DefaultDisplayChannelService.GetActiveChannels(HttpContextBase context)
at EPiServer.Web.Internal.TemplateResolverImplementation.ResolveCore(HttpContextBase httpContext, ContentType contentType, Type itemType, Object itemToRender, TemplateTypeCategories category, String tag)
at EPiServer.Web.TemplateResolver.Resolve(HttpContextBase httpContext, Object itemToRender, TemplateTypeCategories templateTypeCategory, ContextMode contextMode)
at EPiServer.Web.Mvc.Internal.ExistingActionRouteConstraint.Match(Route route, SegmentContext routingContext, String parameterName)
at EPiServer.Web.Routing.Internal.DefaultContentRoute.MatchConstraints(SegmentContext segmentContext, HttpContextBase context)
at EPiServer.Web.Routing.Internal.DefaultContentRoute.GetRouteData(HttpContextBase httpContext)
at System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext)
at EPiServer.Web.Routing.RouteCollectionExtensions.HandleRouteData(RouteCollection routes, HttpContextBase context)
at EPiServer.Global.DefaultDocumentHandling(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Thank you in advance!

/Kristian

#179513
Edited, Jun 14, 2017 14:46
Vote:
 

how <authorization> element looks like in web.config?

#179518
Jun 14, 2017 16:19
Vote:
 

Hi Valdis,

There's no element directly below <system.web>, but there's a few below the standard <location> elements that come with EPiServer:

<location path="EPiServer">
	<system.web>
		<authorization>
			<allow roles="WebEditors, WebAdmins, Administrators, WebTranslators" />
			<deny users="*" />
		</authorization>
	</system.web>
</location>

<location path="EPiServer/CMS/admin">
	<system.web>
		<authorization>
			<allow roles="WebAdmins, Administrators" />
			<deny users="*" />
		</authorization>
	</system.web>
</location>

<location path="modulesbin">
	<system.web>
		<authorization>
			<deny users="*" />
		</authorization>
	</system.web>
</location>
#179766
Jun 21, 2017 9:43
* 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.