Forum Widgets
Latest Discussions
Dotnet tool install 401 Unauthorized
I'm trying to install the "dotnet-reportgenerator-globaltool" tool via .Net Core custom task. Custom Command: tool Arguments: install --global dotnet-reportgenerator-globaltool --version 4.0,15 Problem: When executing from a directory that contains a nuget.config pointing to a private azure artifacts, I get an error like the following. I don't want to use my feed or need to, but because the nuget.config exists I have no choice. Is there a way I can pass credentials to this command? There is no directory that doesn't inherit the nuget.config [command]"C:\Program Files\dotnet\dotnet.exe" tool install --global dotnet-reportgenerator-globaltool --version 4.0.15 C:\Program Files\dotnet\sdk\2.2.104\NuGet.targets(114,5): error : Unable to load the service index for source https://pkgs.dev.azure.com/bstglobal/_packaging/BSTWEB/nuget/v3/index.json. [C:\Users\VssAdministrator\AppData\Local\Temp\rkrgqk3i.dkp\restore.csproj] C:\Program Files\dotnet\sdk\2.2.104\NuGet.targets(114,5): error : Response status code does not indicate success: 401 (Unauthorized). [C:\Users\VssAdministrator\AppData\Local\Temp\rkrgqk3i.dkp\restore.csproj] The tool package could not be restored.smithjohn039Oct 04, 2022Copper Contributor37KViews0likes9Comments.NET 8.0.2 Update Causes ASP.NET Core MVC 'Index View Not Found' Error
Hello everyone, I recently updated to .NET 8.0.2 and encountered an issue with my ASP.NET Core MVC application. After the update, the application began throwing an error related to the 'Index' view not being found. This issue was not present prior to the update. An unhandled exception has occurred while executing the request. System.InvalidOperationException: The view 'Index' was not found. The following locations were searched: /Views/Home/Index.cshtml /Views/Shared/Index.cshtml This error is generated by the Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware and specifically indicates that the MVC framework is unable to locate the 'Index.cshtml' file in both the 'Home' and 'Shared' directories, where it traditionally searches for views. I've verified the existence of the 'Index.cshtml' file in the correct location and ensured that the routing configurations are set up correctly. This setup was working seamlessly before the update to .NET 8.0.2. Update: I was able to resolve this issue by uninstalling the .NET 8.0.2 updates. After reverting to the previous version, the application started working as expected without any errors. It appears that the .NET 8.0.2 update may have introduced a change or incompatibility affecting the way ASP.NET Core MVC applications locate views.Hammad_ul_haqFeb 16, 2024Copper Contributor33KViews2likes6CommentsHow to add a timer to C# Service
Hi everyone I am new to coding in c # and trying to write a windows service in c #, my service seems to be working fine except for one thing: I try to make it run in a loop, say every 30 seconds, another program. But for the moment when I launch my service, it executes the program only once. My code: using System; using System.Runtime.InteropServices; using System.Diagnostics; // SET STATUS using System.ComponentModel;// SET STATUS using System.ServiceProcess; using System.Timers; //using System.ServiceProccess;// SET STATUS public enum ServiceType : int { // SET STATUS [ SERVICE_WIN32_OWN_PROCESS = 0x00000010, SERVICE_WIN32_SHARE_PROCESS = 0x00000020, }; // SET STATUS ] public enum ServiceState : int { // SET STATUS [ SERVICE_STOPPED = 0x00000001, SERVICE_START_PENDING = 0x00000002, SERVICE_STOP_PENDING = 0x00000003, SERVICE_RUNNING = 0x00000004, SERVICE_CONTINUE_PENDING = 0x00000005, SERVICE_PAUSE_PENDING = 0x00000006, SERVICE_PAUSED = 0x00000007, }; // SET STATUS ] [StructLayout(LayoutKind.Sequential)] // SET STATUS [ public struct ServiceStatus { public ServiceType dwServiceType; public ServiceState dwCurrentState; public int dwControlsAccepted; public int dwWin32ExitCode; public int dwServiceSpecificExitCode; public int dwCheckPoint; public int dwWaitHint; }; // SET STATUS ] public enum Win32Error : int { // WIN32 errors that we may need to use NO_ERROR = 0, ERROR_APP_INIT_FAILURE = 575, ERROR_FATAL_APP_EXIT = 713, ERROR_SERVICE_NOT_ACTIVE = 1062, ERROR_EXCEPTION_IN_SERVICE = 1064, ERROR_SERVICE_SPECIFIC_ERROR = 1066, ERROR_PROCESS_ABORTED = 1067, }; public class Service_PSTest : ServiceBase { // PSTest may begin with a digit; The class name must begin with a letter private System.Diagnostics.EventLog eventLog; // EVENT LOG private ServiceStatus serviceStatus; // SET STATUS public Service_PSTest() { ServiceName = "Test2"; CanStop = true; CanPauseAndContinue = false; AutoLog = true; eventLog = new System.Diagnostics.EventLog(); // EVENT LOG [ if (!System.Diagnostics.EventLog.SourceExists(ServiceName)) { System.Diagnostics.EventLog.CreateEventSource(ServiceName, "Application"); } eventLog.Source = ServiceName; eventLog.Log = "Application"; // EVENT LOG ] EventLog.WriteEntry(ServiceName, "Test2.exe Test2()"); // EVENT LOG } [DllImport("advapi32.dll", SetLastError = true)] // SET STATUS private static extern bool SetServiceStatus(IntPtr handle, ref ServiceStatus serviceStatus); protected override void OnStart(string[] args) { EventLog.WriteEntry(ServiceName, "Test2.exe OnStart() // Entry. Starting script 'c:\\temp\\Test.exe\\Test1.ps1' -SCMStart"); // EVENT LOG // Set the service state to Start Pending. // SET STATUS [ // Only useful if the startup time is long. Not really necessary here for a 2s startup time. serviceStatus.dwServiceType = ServiceType.SERVICE_WIN32_OWN_PROCESS; serviceStatus.dwCurrentState = ServiceState.SERVICE_START_PENDING; serviceStatus.dwWin32ExitCode = 0; serviceStatus.dwWaitHint = 2000; // It takes about 2 seconds to start PowerShell SetServiceStatus(ServiceHandle, ref serviceStatus); // SET STATUS ] // Start a child process with another copy of this script try { Process p = new Process(); // Redirect the output stream of the child process. p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.FileName = "PowerShell.exe"; p.StartInfo.Arguments = "-ExecutionPolicy Bypass -c & 'c:\\temp\\Test.exe\\Test1.ps1' -SCMStart"; // Works if path has spaces, but not if it contains ' quotes. p.Start(); // Read the output stream first and then wait. (To avoid deadlocks says Microsoft!) string output = p.StandardOutput.ReadToEnd(); // Wait for the completion of the script startup code, that launches the -Service instance p.WaitForExit(); if (p.ExitCode != 0) throw new Win32Exception((int)(Win32Error.ERROR_APP_INIT_FAILURE)); // Success. Set the service state to Running. // SET STATUS serviceStatus.dwCurrentState = ServiceState.SERVICE_RUNNING; // SET STATUS } catch (Exception e) { EventLog.WriteEntry(ServiceName, "Test2.exe OnStart() // Failed to start 'c:\\temp\\Test.exe\\Test1.ps1' " + e.Message, EventLogEntryType.Error); // EVENT LOG // Change the service state back to Stopped. // SET STATUS [ serviceStatus.dwCurrentState = ServiceState.SERVICE_STOPPED; Win32Exception w32ex = e as Win32Exception; // Try getting the WIN32 error code if (w32ex == null) { // Not a Win32 exception, but maybe the inner one is... w32ex = e.InnerException as Win32Exception; } if (w32ex != null) { // Report the actual WIN32 error serviceStatus.dwWin32ExitCode = w32ex.NativeErrorCode; } else { // Make up a reasonable reason serviceStatus.dwWin32ExitCode = (int)(Win32Error.ERROR_APP_INIT_FAILURE); } // SET STATUS ] } finally { serviceStatus.dwWaitHint = 0; // SET STATUS SetServiceStatus(ServiceHandle, ref serviceStatus); // SET STATUS EventLog.WriteEntry(ServiceName, "Test2.exe OnStart() // Exit"); // EVENT LOG } } protected override void OnStop() { EventLog.WriteEntry(ServiceName, "Test2.exe OnStop() // Entry"); // EVENT LOG // Start a child process with another copy of ourselves try { Process p = new Process(); // Redirect the output stream of the child process. p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.FileName = "PowerShell.exe"; p.StartInfo.Arguments = "-ExecutionPolicy Bypass -c & 'c:\\temp\\Test.exe\\Test1.ps1' -SCMStop"; // Works if path has spaces, but not if it contains ' quotes. p.Start(); // Read the output stream first and then wait. (To avoid deadlocks says Microsoft!) string output = p.StandardOutput.ReadToEnd(); // Wait for the PowerShell script to be fully stopped. p.WaitForExit(); if (p.ExitCode != 0) throw new Win32Exception((int)(Win32Error.ERROR_APP_INIT_FAILURE)); // Success. Set the service state to Stopped. // SET STATUS serviceStatus.dwCurrentState = ServiceState.SERVICE_STOPPED; // SET STATUS } catch (Exception e) { EventLog.WriteEntry(ServiceName, "Test2.exe OnStop() // Failed to stop 'c:\\temp\\Test.exe\\Test1.ps1'. " + e.Message, EventLogEntryType.Error); // EVENT LOG // Change the service state back to Started. // SET STATUS [ serviceStatus.dwCurrentState = ServiceState.SERVICE_RUNNING; Win32Exception w32ex = e as Win32Exception; // Try getting the WIN32 error code if (w32ex == null) { // Not a Win32 exception, but maybe the inner one is... w32ex = e.InnerException as Win32Exception; } if (w32ex != null) { // Report the actual WIN32 error serviceStatus.dwWin32ExitCode = w32ex.NativeErrorCode; } else { // Make up a reasonable reason serviceStatus.dwWin32ExitCode = (int)(Win32Error.ERROR_APP_INIT_FAILURE); } // SET STATUS ] } finally { serviceStatus.dwWaitHint = 0; // SET STATUS SetServiceStatus(ServiceHandle, ref serviceStatus); // SET STATUS EventLog.WriteEntry(ServiceName, "Test2.exe OnStop() // Exit"); // EVENT LOG } } public static void Main() { Timer timer = new Timer(); // name space(using System.Timers;) void OnElapsedTime(object source, ElapsedEventArgs e) { System.ServiceProcess.ServiceBase.Run(new Service_PSTest()); } timer.Elapsed += new ElapsedEventHandler(OnElapsedTime); timer.Interval = 5000; //number in milisecinds timer.Enabled = true; } } Help will be welcomeAharonBensadounNov 09, 2021Copper Contributor16KViews0likes2CommentsHow to Resolve .NET Runtime Error 1026 after Windows 11 Update
I hope you're doing well. I am a teacher from Mexico and I'm facing a critical issue after a recent Windows 11 update to version 23H2. Ever since the update, I've been encountering a frustrating problem – a .NET Runtime Error 1026. This issue is causing applications to crash shortly after I launch them, making it impossible for me to access Mi Portal. Given that I heavily rely on Windows applications for my teaching tasks – from document editing to publications and printing, including crucial tasks like payslips handling – this situation has left me unable to perform my duties effectively. I understand that many educators are in a similar situation, where Windows OS and Office applications are our lifelines for seamless work. I urgently need a simple and effective solution to overcome this error and restore the functionality of my Windows 11 system. Your expertise and support in troubleshooting this .NET Runtime Error 1026 would be immensely appreciated. If anyone has encountered a similar issue or has successfully resolved it, I would be grateful for your insights. I need guidance or steps you can provide to help me swiftly resolve this issue and continue my teaching job without further disruptions. Warm regards and appreciationbobodenkirk1Aug 20, 2023Copper Contributor12KViews1like1CommentError -another entity of the same type already has the same primary key value
Good afternoon, I have an error, and I think you can help me. Error in Microsoft Visual Studio (Microsoft .NET Framework Version 4.8, EntityFramework 6.2): " System.InvalidOperationException HResult=0x80131509 Message=Attaching an entity of type 'SGI2DataAccess.Models.ProjectForecast' failed because another entity of the same type already has the same primary key value. This can happen when using the 'Attach' method or setting the state of an entity to 'Unchanged' or 'Modified' if any entities in the graph have conflicting key values. This may be because some entities are new and have not yet received database-generated key values. In this case use the 'Add' method or the 'Added' entity state to track the graph and then set the state of non-new entities to 'Unchanged' or 'Modified' as appropriate. Source=EntityFramework StackTrace: at System.Data.Entity.Core.Objects.ObjectContext.VerifyRootForAdd(Boolean doAttach, String entitySetName, IEntityWrapper wrappedEntity, EntityEntry existingEntry, EntitySet& entitySet, Boolean& isNoOperation) at System.Data.Entity.Core.Objects.ObjectContext.AttachTo(String entitySetName, Object entity) at System.Data.Entity.Internal.Linq.InternalSet`1.<>c__DisplayClassa.<Attach>b__9() at System.Data.Entity.Internal.Linq.InternalSet`1.ActOnSet(Action action, EntityState newState, Object entity, String methodName) at System.Data.Entity.Internal.Linq.InternalSet`1.Attach(Object entity) at System.Data.Entity.DbSet`1.Attach(TEntity entity) at SGI2.Data.Infrastructure.RepositoryBase`1.Update(T entity) in C:\work\sgi\SGI2.Data\Infrastructure\RepositoryBase.cs:line 41 at SGI2.Service.Services.Projects.ForecastProject.UpdateForecast(List`1 forecasts, ProjetoVM Projeto) in C:\work\sgi\SGI2.Service\Services\Projects\ForecastProject.cs:line 79 at SGI2.Service.ProjetosService.UpdateProjeto(ProjetoEditVM VM, Int32 userId, String userNomeConhecido) in C:\work\sgi\SGI2.Service\Services\Projects\ProjetosService.cs:line 1212 at SGI2.Controllers.ProjetosController.Edit(ProjetoEditVM VM, String Command) in C:\work\sgi\SGI2\SGI2\Controllers\Projeto\ProjetosController.cs:line 312 at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() " Code: object: \sgi2\SGI2\Controllers\Projeto\ProjetosController.cs (...) // Interface private readonly IProjetosService _service; (...) [HttpPost] [ValidateAntiForgeryToken] public ActionResult Edit(ProjetoEditVM VM, string Command) { #region PERMISSOES if (!ClaimsAuthorization.CheckAccess("generic-editprojetos", VM.Projeto.Id.ToString(), VM.Projeto.EstadoId.ToString())) return new HttpStatusCodeResult(HttpStatusCode.Forbidden); // Completed projects should never be able to be edited if (_service.GetProjeto(VM.Projeto.Id).EstadoId == 2) return new HttpStatusCodeResult(HttpStatusCode.Forbidden); #endregion else if (ModelState.IsValid) { if (VM.Projeto.EstadoId == 2 && (VM.Projeto.TipoId == 8 || VM.Projeto.TipoId == 9) && !_service.GetAllProjetosPPRInfo(x => x.ProjetoId == VM.Projeto.Id && x.IsTheLast).Any()) { return RedirectToAction("Edit", new { Id = VM.Projeto.Id, param = "CloseProjectLastPPRInfoError" }); } // Se vem do botão "Refresh Forecast", atualizar valores, antes de submeter com valores desatualizados if (Command == "RefreshForecastButton") { _service.UpdateProjetoRF(VM, UserId, UserNomeConhecido); // ok RefreshForecastButton(VM, Command, UserId, UserNomeConhecido); _service.UpdateProjeto(VM, UserId, UserNomeConhecido); // NOT ok } (...) } (...) } (...) object: \sgi\SGI2.Service\Services\Projects\ProjetosService.cs public void UpdateProjeto(ProjetoEditVM VM, int userId, string userNomeConhecido) { //Atualiza projeto var dbObj = projetosRepository.GetById(VM.Projeto.Id); (...) new ForecastProject(projectForecastRepository, projetoPPRInfoRepository).UpdateForecast(VM.Forecasts, VM.Projeto); (...) unitOfWork.Commit(); } object: \sgi\SGI2.Service\Services\Projects\ForecastProject.cs namespace SGI2.Service.Services.Projects { //Tenho de criar uma interface e remover a dependecia dos repositórios public class ForecastProject { private readonly IProjectForecastRepository projectForecastRepository; private readonly IProjetoPPRInfoRepository projetoPPRInfoRepository; private readonly IForecastDomain Iforecast = new ForecastDomain(); public ForecastProject(IProjectForecastRepository projectForecastRepository, IProjetoPPRInfoRepository projetoPPRInfoRepository) { this.projectForecastRepository = projectForecastRepository; this.projetoPPRInfoRepository = projetoPPRInfoRepository; } (...) public void UpdateForecast(List<ProjectForecastEditVM> forecasts, ProjetoVM Projeto) { // 1º Caso não exista linhas if (forecasts == null || forecasts.Count() == 0) { foreach (var item in Iforecast.InitialLinesForecast(Projeto)) { projectForecastRepository.Add(item); } } // 2º caso a data de fim do projeto aumente else if (Projeto.RealEndDate > forecasts.LastOrDefault().EndDate) { foreach (var item in Iforecast.ChangeRealEndDateForecast(Projeto,forecasts.LastOrDefault().EndDate)) { projectForecastRepository.Add(item); } } else { List<ProjectForecast> Forecasts = new List<ProjectForecast>(); foreach (var i in forecasts) { //Está assim pois a data fim pode mudar e deixar de ser o ultimo dia do mês DateTime EndDate = new DateTime(i.EndDate.Year, i.EndDate.Month, DateTime.DaysInMonth(i.EndDate.Year, i.EndDate.Month)); //Ultimo dia do mês do projeto DateTime LastDateofProject = new DateTime(Projeto.RealEndDate.Value.Year, Projeto.RealEndDate.Value.Month, DateTime.DaysInMonth(Projeto.RealEndDate.Value.Year, Projeto.RealEndDate.Value.Month)); if (EndDate > LastDateofProject && i.CanWrite == true) { projectForecastRepository.Delete(projectForecastRepository.GetById(i.Id)); } else { Forecasts.Add(UpdateForecastForecastFactory(Projeto, i)); } } foreach (var item in Forecasts) { projectForecastRepository.Update(item); ! The error is thrown here ! } } } } object: \SGI2.Data\Infrastructure\IRepository.cs using System; using System.Collections.Generic; using System.Linq.Expressions; namespace SGI2.Data.Infrastructure { public interface IRepository<T> where T : class { // Marks an entity as new void Add(T entity); // Marks an entity as modified void Update(T entity); // Marks an entity to be removed void Delete(T entity); void Delete(Expression<Func<T, bool>> where); // Get an entity by int id T GetById(int id); // Get an entity using delegate T Get(Expression<Func<T, bool>> where); // Gets all entities of type T IEnumerable<T> GetAll(); // Gets entities using delegate IEnumerable<T> GetMany(Expression<Func<T, bool>> where); } } object: \SGI2.Data\Infrastructure\RepositoryBase.cs public virtual void Update(T entity) { dbSet.Attach(entity); ! The error is thrown here ! dataContext.Entry(entity).State = EntityState.Modified; } What can I do to resolve? What i want is call twice :_service.UpdateProjeto Best regards Isabel FonsecaIsabelFonsecaFeb 17, 2023Copper Contributor9.9KViews0likes3CommentsApplications are not correctly detecting .NET Desktop Runtime 6.0.1 (x64)
Even though I have .NET Desktop Runtime 6.0.1 (x64) installed, I'm still getting an error when launching a .NET application Windows 10 21H2 OS Build 19044.1466 Event log shows event 1023 - Description: A .NET application failed. Application: HandBrake.exe Path: C:\Program Files\HandBrake\HandBrake.exe Message: Failure processing application bundle. Bundle header version compatibility check failed. A fatal error occured while processing application bundleJustMarksJan 14, 2022Copper Contributor8.6KViews0likes3CommentsPrincipal.WindowsImpersonationContext on .Net 6 and EF6
We are currently migrating our projects which are developed on .NET472 to .NET6.0. We had EF6 used for Oracle DB connection and it has been done via Oracle.Manageddataaccess. Now after we changed the underlying projects, we are getting below error. We found there were two feasible solutions on net but we had some issue. Change from Oracle.ManagedDataAccess to Oracle.ManagedDataAccess.Core(this needs application to be moved EFCore). But we cant do this since we cant move all our code from EF6 to EFCore now. Add reference to Microsoft.NETCore.Portable.Compatibility, i have added that but still we are getting same error. System.TypeLoadException: 'Could not load type 'System.Security.Principal.WindowsImpersonationContext' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.' Here are the reference link which i have already tried COULD NOT LOAD TYPE 'System.Security.Principal.WindowsImpersonationContext' from assembly 'mscorlib' You must add a reference to assembly mscorlib, version=4.0.0Sundaram_RAug 12, 2022Copper Contributor8KViews0likes1CommentVB.NET. "The process cannot access the file because it is being used by another process"
I should add a list of files into a ZIP. Procedure code is like this Sub CreateZip Dim FileList As New ArrayList 'List of File Paths to be added to the ZIP For Each path in FileList Try AddFileToZip(ZipFilePath, path.ToString) Catch (ex as New Exception) .... End Try Next End Sub And this is AddFileToZip Public Sub AddFileToZip(ByVal zipFilename As String, ByVal fileToAdd As String) Using zip As Package = System.IO.Packaging.Package.Open(zipFilename, FileMode.OpenOrCreate) Dim destFilename As String = ".\" & Path.GetFileName(fileToAdd) Dim uri As Uri = PackUriHelper.CreatePartUri(New Uri(destFilename, UriKind.Relative)) If zip.PartExists(uri) Then zip.DeletePart(uri) End If Dim part As PackagePart = zip.CreatePart(uri, "", CompressionOption.Normal) Using fileStream As New FileStream(fileToAdd, FileMode.Open, FileAccess.Read) Using dest As Stream = part.GetStream() CopyStream(fileStream, dest) End Using End Using End Using End Sub At runtime, I get this error message The process cannot access the file [ZipFilePath] because it is being used by another process this error is raised randomly, maybe on adding small files into the Zip. If I place breakpoints and run procedure in debug mode, it works. It seems clear that procedure thread is not synchronized with IO, so that my procedure loop continues even if IO is still adding processed file into Zip (ie VB.NET is faster than IO). I also tried to place a Thread.Sleep(1000) before AddFileToZip, but this may be not enough to synchronize the two processes. Placing Thread.Sleep(2000) seems to make procedure work, but it may slow down dramaticly performances (I should pack more than 50 files into my Zip). So, how can I force my loop to "wait" until IO Process has released ZIP file?mr_antoJun 16, 2022Copper Contributor7.9KViews0likes4CommentsThe SSL connection could not be established
We have developed an application using Microsoft.Net Core. The application has a function that generates tokens and executes an API call. Suddenly the application is throwing an error while generating the token. When we test the application, the same application is working on Windows applications but not on Windows servers. It would be helpful if anyone could guide us on how to resolve this issue Exception from server: System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. ---> System.ComponentModel.Win32Exception (590615): The context has expired and can no longer be used. --- End of inner exception stack trace --- at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm) at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request) at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellation(CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.SocketsHttpHandler.Send(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpMessageInvoker.Send(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.Send(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken) at System.Net.HttpWebRequest.SendRequest(Boolean async) at System.Net.HttpWebRequest.GetResponse()MOHANDHASGANDHINov 02, 2023Copper Contributor7.6KViews1like6Comments.NET Conf 2021 Recap – Videos, Slides, Demos, and More
.NET Conf 2021 was the largest .NET Conf ever with over 80 sessions from speakers around the globe! We want to give a huge THANK YOU to all who tuned in live, asked questions in our Twitter feed, and participated in our fun and games. The learning continues with community-run events happening thru the end of January so make sure to check those out. Also, watch the session replays and keep an eye on our conference GitHub repo where we are collecting all the slides and demos from our presenters. If you participated in .NET Conf 2021, please give us your feedback about the event so we can improve in 2022. On-Demand Recordings We had a lot of awesome sessions from various teams and community experts that showed us all sorts of cool things we can build with .NET across platforms and devices. You can watch all of the sessions right now on the .NET YouTube or the new Microsoft Docs events hub. What were your favorite sessions? Leave them in the comments below! I have so many favorites, but I loved the Productivity talk around Roslyn and AI with Mika: I also recommend the C# 10 session with Mads and Dustin. Explore Slides & Demo Code All of our amazing speakers have been uploading their PowerPoint slide decks, source code, and more on the official .NET Conf 2021 GitHub page. Be sure to head over there to download all of the material from the event and don’t forget you can still grab digital swag as well! .NET Podcasts App We are happy to announce the release of .NET Podcast app, a sample application showcasing .NET 6, ASP.NET Core, Blazor, .NET MAUI, Azure Container Apps, and more from the .NET Conf 2021 keynote! Grab the source code on GitHub and start exploring locally on your machine, or fork the repo and deploy to Azure with GitHub actions in a few easy steps. Launch After Party Q&A on December 16th On December 16, 2021 .NET Conf and Visual Studio 2022 launch event speakers and experts will be LIVE to answer all of your questions. Learn more about the recent launch of Visual Studio 2022 and .NET 6, including tips and tricks, new features with the latest releases, and connect with others in your community. Register for the event today! Local .NET Conf Events The learning continues with community-run events happening thru the end of January, so be sure to find a local event and sign up today!. Thanks again to everyone that made .NET Conf 2021 possible and we can’t wait for even more .NET Conf events in 2022!JamesMontemagnoDec 03, 2021Microsoft7.2KViews6likes3Comments
Resources
Tags
- .net117 Topics
- .NET Framework97 Topics
- .net core79 Topics
- accessibility1 Topic
- community1 Topic