[wix-devs] Building WiX toolset v4.0: a Fact throws FatalProtocolException (AuthenticationException)

Rob Mensching rob at firegiant.com
Tue May 17 22:27:13 PDT 2022


You'll want to look around your machine and see what global NuGet configuration is causing this repository https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json to be added to the restore. Nothing in the wix4 repo refers to that repository.

-----Original Message-----
From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> On Behalf Of Timofey Evsyutkin via wix-devs
Sent: Tuesday, May 17, 2022 9:46 PM
To: wix-devs at lists.wixtoolset.org
Cc: Timofey Evsyutkin <goldghost.oomphi.suppository at gmail.com>
Subject: [wix-devs] Building WiX toolset v4.0: a Fact throws FatalProtocolException (AuthenticationException)

Hi there

I've run into a problem when building locally.

WiX toolset v4, develop branch, head commit, Windows 10, cygwin, DCP for VS 2022.
A fact is named as 'CanManipulateExtensionCache' throws the following
exception:

System.AggregateException : One or more errors occurred. (Unable to load the service index for source
https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json.)
---- NuGet.Protocol.Core.Types.FatalProtocolException : Unable to load the service index for source https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json.
-------- System.Net.Http.HttpRequestException : The SSL connection could not be established, see inner exception.
------------ System.Security.Authentication.AuthenticationException : The remote certificate is invalid according to the validation procedure.
  Stack Trace:
     at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean
includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean
waitCompletionNotification)
   at System.Threading.Tasks.Task`1.get_Result()
   at WixToolset.Core.TestPackage.WixRunner.Execute(Boolean
warningsAsErrors, String[] args) in
wix4\src\wix\WixToolset.Core.TestPackage\WixRunner.cs:line 55
   at WixToolset.Core.TestPackage.WixRunner.Execute(String[] args) in wix4\src\wix\WixToolset.Core.TestPackage\WixRunner.cs:line 42
   at
WixToolsetTest.CoreIntegration.ExtensionFixture.CanManipulateExtensionCache()
in
wix4\src\wix\test\WixToolsetTest.CoreIntegration\ExtensionFixture.cs:line
188
----- Inner Stack Trace -----
   at
NuGet.Protocol.ServiceIndexResourceV3Provider.GetServiceIndexResourceV3(SourceRepository
source, DateTime utcNow, ILogger log, CancellationToken token)
   at
NuGet.Protocol.ServiceIndexResourceV3Provider.TryCreate(SourceRepository
source, CancellationToken token)
   at
NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T](CancellationToken
token)
   at NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T]()
   at
NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResourceProvider.TryCreate(SourceRepository
sourceRepository, CancellationToken token)
   at
NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T](CancellationToken
token)
   at NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T]()
   at
WixToolset.Core.ExtensionCache.ExtensionCacheManager.DownloadAndExtractAsync(Boolean
global, String id, String version, CancellationToken cancellationToken) in wix4\src\wix\WixToolset.Core.ExtensionCache\ExtensionCacheManager.cs:line
168
   at WixToolset.Core.ExtensionCache.ExtensionCacheManager.AddAsync(Boolean
global, String extension, CancellationToken cancellationToken) in wix4\src\wix\WixToolset.Core.ExtensionCache\ExtensionCacheManager.cs:line 47
   at
WixToolset.Core.ExtensionCache.ExtensionCacheManagerCommand.AddExtensions(ExtensionCacheManager
cacheManager, CancellationToken cancellationToken) in wix4\src\wix\WixToolset.Core.ExtensionCache\ExtensionCacheManagerCommand.cs:line
129
   at
WixToolset.Core.ExtensionCache.ExtensionCacheManagerCommand.ExecuteAsync(CancellationToken
cancellationToken) in
wix4\src\wix\WixToolset.Core.ExtensionCache\ExtensionCacheManagerCommand.cs:line
62
----- Inner Stack Trace -----
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Stream
stream, SslClientAuthenticationOptions sslOptions, CancellationToken
cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage
request, Boolean allowHttp2, CancellationToken cancellationToken)
   at
System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage
request, CancellationToken cancellationToken)
   at
System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage
request, CancellationToken cancellationToken)
   at
System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage
request, Boolean doRequestAuth, CancellationToken cancellationToken)
   at
System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage
request, Uri authUri, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage
request, CancellationToken cancellationToken)
   at NuGet.Protocol.ServerWarningLogHandler.SendAsync(HttpRequestMessage
request, CancellationToken cancellationToken)
   at
NuGet.Protocol.HttpSourceAuthenticationHandler.SendAsync(HttpRequestMessage
request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
   at
NuGet.Protocol.HttpRetryHandler.<>c__DisplayClass2_1.<<SendAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at NuGet.Protocol.TimeoutUtility.StartWithTimeout[T](Func`2 getTask, TimeSpan timeout, String timeoutMessage, CancellationToken token)
   at NuGet.Protocol.HttpRetryHandler.SendAsync(HttpRetryHandlerRequest
request, String source, ILogger log, CancellationToken cancellationToken)
   at NuGet.Protocol.HttpSource.GetThrottledResponse(Func`1 requestFactory, TimeSpan requestTimeout, TimeSpan downloadTimeout, Int32 maxTries, Boolean isRetry, Boolean isLastAttempt, Guid sessionId, ILogger log, CancellationToken cancellationToken)
   at
NuGet.Protocol.HttpSource.<>c__DisplayClass14_0`1.<<GetAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at
NuGet.Common.ConcurrencyUtilities.ExecuteWithFileLockedAsync[T](String
filePath, Func`2 action, CancellationToken token)
   at
NuGet.Common.ConcurrencyUtilities.ExecuteWithFileLockedAsync[T](String
filePath, Func`2 action, CancellationToken token)
   at NuGet.Protocol.HttpSource.GetAsync[T](HttpSourceCachedRequest
request, Func`2 processAsync, ILogger log, CancellationToken token)
   at
NuGet.Protocol.ServiceIndexResourceV3Provider.GetServiceIndexResourceV3(SourceRepository
source, DateTime utcNow, ILogger log, CancellationToken token)
----- Inner Stack Trace -----
   at System.Net.Security.SslStream.StartSendAuthResetSignal(ProtocolToken
message, AsyncProtocolRequest asyncRequest, ExceptionDispatchInfo exception)
   at
System.Net.Security.SslStream.CheckCompletionBeforeNextReceive(ProtocolToken
message, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslStream.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslStream.ProcessReceivedBlob(Byte[] buffer,
Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslStream.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslStream.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at
System.Net.Security.SslStream.CheckCompletionBeforeNextReceive(ProtocolToken
message, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslStream.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslStream.ProcessReceivedBlob(Byte[] buffer,
Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslStream.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslStream.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at
System.Net.Security.SslStream.CheckCompletionBeforeNextReceive(ProtocolToken
message, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslStream.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslStream.ProcessReceivedBlob(Byte[] buffer,
Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslStream.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
   at
System.Net.Security.SslStream.PartialFrameCallback(AsyncProtocolRequest
asyncRequest)
--- End of stack trace from previous location where exception was thrown ---
   at System.Net.Security.SslStream.ThrowIfExceptional()
   at
System.Net.Security.SslStream.InternalEndProcessAuthentication(LazyAsyncResult
lazyResult)
   at System.Net.Security.SslStream.EndProcessAuthentication(IAsyncResult
result)
   at System.Net.Security.SslStream.EndAuthenticateAsClient(IAsyncResult
asyncResult)
   at
System.Net.Security.SslStream.<>c.<AuthenticateAsClientAsync>b__65_1(IAsyncResult
iar)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult
iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean
requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Stream
stream, SslClientAuthenticationOptions sslOptions, CancellationToken
cancellationToken)

--
Best Regards, Timofey Evsyutkin
P.H.D., Software Engineer

Tg: @OOMPHi - https://t.me/OOMPHi

CONFIDENTIALITY NOTICE: The information contained in this email and attached document(s) may contain confidential information that is intended only for the addressee(s). If you are not the intended recipient, you are hereby advised that any disclosure, copying, distribution or the taking of any action in reliance upon the information is prohibited. If you have received this email in error, please immediately notify the sender and delete it from your system.
____________________________________________________________________
WiX Toolset Developer Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-devs mailing list