Forum Widgets
Latest Discussions
Who is using Hot Reload?
I'm digging Hot Reload. Anyone using it? https://www.youtube.com/watch?v=4S3vPzawnoQshanselmanNov 03, 2021Microsoft2.8KViews16likes15CommentsCommon Reasons A C# Program Won't Run On A Clean Install Of Windows 11
So, back in 2017, someone made a C# program to help auto populate a Word Document with data from a design program. And has worked as expected. The few users that use it are on "Upgraded Windows 11" machines and one on Windows 10. If we create a new Windows 11 machine and try to run this program, it doesn't kick off. I made sure that the old PC and the new one had the same .NET as set in ADD WINDOWS FEATURES. It doesn't return an error or generate a system log. It just won't work... I am not a C# developer but I do have the source code...I tried debugging on my machine (where it will not run) and still haven't found a reason why it isn't running. It is almost a needle in a haystack but we need it resolved. Any suggestions?PassRusherJul 08, 2024Copper Contributor942Views0likes9CommentsDotnet 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.0https://thecapcut.com/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 tohttps://thecapcut.com/ 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 Contributor39KViews0likes9CommentsApplications 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.8KViews0likes7Comments.NET 8.0.2 Update Causes ASP.NET Core MVC 'Index View Not Found' Error
Hello everyone, I recently updated to .NET https://github.com/dotnet/core/blob/main/release-notes/8.0/8.0.2/8.0.2.md?WT.mc_id=dotnet-35129-website 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 Contributor34KViews2likes6CommentsThe 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 Contributor8.1KViews1like6Commentshow to configure asp.net.core ihostservice with global exception handler
hi ,I am developing a windows service under asp.net.core 8 as ihostservice , everything is good , but I want to configure global exception handler , I did look to most article on the net , all of them about just asp.net.core or API , ı just need to ihoaly2014Aug 19, 2024Copper Contributor503Views0likes5Commentswho is using net6 in production environment?
If you use net6 in your production environment, maybe you can report here Include the problems you encountered, your insights. all ok. In this way, perhaps we quickly grasp the knowledge about net6,If you are using net6 In your production environment, please write to the following and write problems you encounterClementGaoNov 08, 2021Copper Contributor1.8KViews0likes5CommentsWont install Framework ect automaticly ???
I have an app/program (an EXE-file) I made way back when King of Spade was a Knight and I've used it for years on Windows 10 where it automaticly downloaded and installed the dependencies ! Now I run it under Windows 11 ... it just DON'T ! I know I SHOULD go back and make an "install package" but isn't there a 'Work-Around' ?keldsorAug 15, 2025Brass Contributor68Views1like4CommentsVB.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 Contributor8.1KViews0likes4Comments
Resources
Tags
- .net120 Topics
- .NET Framework98 Topics
- .net core81 Topics
- accessibility1 Topic
- community1 Topic