Probleme mit WebClient

29. November 2019 18:10

Hallo liebe Community,

ich habe hier aktuell an irgendeiner Stelle ein Problem mit dem WebClient.
Von einem Tag auf den anderen tauchten im Eventlog mehrere Meldungen auf, die sich seitdem regelmäßig wiederholen.
Die Warnungen / Fehler gehen in Richtung .NET und da bin ich leider kein Profi drin.
Es ist ein Windows Server 2012R2 Server, NAV Version ist 2017 (10.0.23563)

Folgende 4 Meldungen kommen immer wieder vor:

1. Information, Quelle: ASP.NET 4.0.30319.0

Event code: 4005
Event message: Fehler bei der Formularauthentifizierung für die Anforderung. Grund: Das angegebene Ticket ist abgelaufen.
Event time: 29.11.2019 16:47:41
Event time (UTC): 29.11.2019 15:47:41
Event ID: b7b49fbfd675483086753d655a6b5a7f
Event sequence: 15009
Event occurrence: 28
Event detail code: 50202

Application information:
Application domain: /LM/W3SVC/3/ROOT/Kunde/WebClient-2-132194817570578414
Trust level: Full
Application Virtual Path: /Kunde/WebClient
Application Path: C:\inetpub\wwwroot\Kunde2\WebClient\
Machine name: WEBSERVER

Process information:
Process ID: 2128
Process name: w3wp.exe
Account name: IIS APPPOOL\Microsoft Dynamics NAV 2017 Web Client 2

Request information:
Request URL: https://URL:444/Kunde/WebClient/
Request path: /Kunde/WebClient/
User host address: (von mir entfernt)
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOL\Microsoft Dynamics NAV 2017 Web Client 2

Name to authenticate:

Custom event details:


2. Warnung, Quelle: ASP.NET 4.0.30319.0

Event code: 3005
Event message: Es ist eine unbehandelte Ausnahme aufgetreten.
Event time: 29.11.2019 16:49:23
Event time (UTC): 29.11.2019 15:49:23
Event ID: dcb92c70c8dc4c438e6c8f2dea1bf4e4
Event sequence: 2
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/2/ROOT/DynamicsNAV100/WebClient-1-132195161632002903
Trust level: Full
Application Virtual Path: /DynamicsNAV100/WebClient
Application Path: C:\inetpub\wwwroot\DynamicsNAV100\WebClient\
Machine name: WEBSERVER

Process information:
Process ID: 2812
Process name: w3wp.exe
Account name: IIS APPPOOL\Microsoft Dynamics NAV 2017 Web Client Application Pool

Exception information:
Exception type: InvalidOperationException
Exception message: The "businessClient" section from web.config is missing the "clientSessionStarter" attribute.
bei Microsoft.Dynamics.Framework.UI.WebBase.ClientSessionManagerBase.Create()
bei Microsoft.Dynamics.Framework.UI.ClientSessionManagerCore.EnsureInstance[T](Func`1 createIfNotCreated)
bei Microsoft.Dynamics.Framework.UI.Web.XFrameSecurityHeaderModule.Init(HttpApplication context)
bei System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
bei System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
bei System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
bei System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)



Request information:
Request URL: http://localhost/DynamicsNAV100/WebClient/
Request path: /DynamicsNAV100/WebClient/
User host address: 127.0.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOL\Microsoft Dynamics NAV 2017 Web Client Application Pool

Thread information:
Thread ID: 7
Thread account name: IIS APPPOOL\Microsoft Dynamics NAV 2017 Web Client Application Pool
Is impersonating: False
Stack trace: bei Microsoft.Dynamics.Framework.UI.WebBase.ClientSessionManagerBase.Create()
bei Microsoft.Dynamics.Framework.UI.ClientSessionManagerCore.EnsureInstance[T](Func`1 createIfNotCreated)
bei Microsoft.Dynamics.Framework.UI.Web.XFrameSecurityHeaderModule.Init(HttpApplication context)
bei System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
bei System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
bei System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
bei System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)


Custom event details:


3. Warnung, Quelle: MicrosoftDynamicsNAVClientWebClient

Shell service settings (endpoint or thumbprint) are empty, but the puid/upn was specified


4. Fehler, Quelle: MicrosoftDynamicsNAVClientWebClient

Error accessing Website Microsoft Dynamics NAV 2017 Web Client
Raw Url: /Kunde1/WebClient/Startup.aspx
Url: http://localhost/Kunde1/WebClient/Startup.aspx
Type: System.ServiceModel.EndpointNotFoundException
Message: There was no endpoint listening at net.tcp://ApplicationServer:7045/WebClient/StartupService that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
StackTrace:

Server stack trace:
at System.ServiceModel.Channels.ConnectionUpgradeHelper.DecodeFramingFault(ClientFramingDecoder decoder, IConnection connection, Uri via, String contentType, TimeoutHelper& timeoutHelper)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper& timeoutHelper)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper& timeoutHelper)
at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Dynamics.Nav.Types.IStartupService.GetHomepageMetadata()
at Microsoft.Dynamics.Nav.Client.Web.SimpleServerOperation.ExecuteCore[TResult,TChannel](ConnectionOptions serverConnectionOptions, Func`2 operation, Func`3 operationWithContext, Func`2 localExceptionHandler)
at Microsoft.Dynamics.Nav.Client.Web.SystemStartupOperation.RetrieveAndCacheHomepageMetadata()
at Microsoft.Dynamics.Nav.Client.WebClient.StartupFormControl.CreateForm()
at Microsoft.Dynamics.Framework.UI.Web.FormControl.OnLoadCore(EventArgs e)
at Microsoft.Dynamics.Framework.UI.Web.WebEventExecutor.<>c__DisplayClass6_0.<Execute>b__0()
at Microsoft.Dynamics.Framework.UI.Web.WebEventExecutor.ExecuteCore[T](Func`1 webEvent, Func`1 condition)
Source: mscorlib


Ein Anmerkung zur 4. Meldung (Message: There was no endpoint listening...)
Der Port der hier aufgeführt ist, gehört zu keinem der Dienste, die auf dem Application Server für die WebDienste zuständig sind.
Der Port taucht nur einmal am Standard Dienst als Management Port auf.

Und diese 4 Meldungen wiederholen sich mehrmals stündlich.
Die 3. Meldung tritt sogar alle 3-4 Minuten auf.

Noch zur Konfiguration:
Auf einem Server laufen 3 NAV Dienste, die wiederum von 3 Webdiensten auf einem anderen Server (der, um den es hier geht) angesprochen werden.
Es läuft davor noch ein Proxy und wenn die User sich beim WebClient anmelden, werden diese je nach Ip Adress Range auf einen der 3 WebDienste verteilt.

Hat hier jemand dazu einen Tipp für mich, der mich auf die richtige Spur bringt?

Viele Grüße

Aron

Re: Probleme mit WebClient

5. Dezember 2019 09:47

hi,

bitte die Fehler das nächste Mal in code-Sections packen (oder gern auch nachholen) - liest sich wesentlich leichter ;)

läuft der Webclient hier auch C:\inetpub\wwwroot\DynamicsNAV100\WebClient\ ?

Re: Probleme mit WebClient

5. Dezember 2019 10:15

Hallo,

sind alle Zertifikate gültig, oder wurden Server in der falschen Reihenfolge neu gestartet?

Gruß Fiddi