13/04/2022

Error send mail Security.SslState.StartSendAuthResetSignal c#

 Khi code chức năng gửi mail smtp bằng c#

đôi khi thiết lập mail server không chính xác hoặc SSL mail server không hợp lệ

bạn sẽ gặp exception như sau

===

> Source file path:SendMail

  > Source line number:107

   at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)

   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)

   at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)

   at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)

   at System.Net.Mail.SmtpConnection.Flush()

   at System.Net.Mail.ReadLinesCommand.Send(SmtpConnection conn)

   at System.Net.Mail.EHelloCommand.Send(SmtpConnection conn, String domain)

   at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint)

   at System.Net.Mail.SmtpClient.GetConnection()

   at System.Net.Mail.SmtpClient.Send(MailMessage message)

===

(*) Cách sửa đơn giản: MailClient sét EnableSsl = false;

08/04/2022

Microsoft .NET Framework Lifecycle Policy.

 Thông tin vòng đời .net framework cho anh chị em lưu ý, nâng cấp, chỉnh sửa sản phẩm cũ hay phát triển sản phẩm mới liên quan .net

https://docs.microsoft.com/en-us/lifecycle/products/microsoft-net-framework


.NET Framework 4.5.2, 4.6, 4.6.1 will reach End of Support on April 26, 2022
https://devblogs.microsoft.com/dotnet/net-framework-4-5-2-4-6-4-6-1-will-reach-end-of-support-on-april-26-2022/

05/04/2022

Building CI/CD pipelines with Jenkins

 Build continuous integration and continuous delivery (CI/CD) pipelines with this step-by-step Jenkins tutorial.

refer:

https://opensource.com/article/19/9/intro-building-cicd-pipelines-jenkins

other docs:
Best 14 CI/CD Tools You Must Know
https://katalon.com/resources-center/blog/ci-cd-tools

CI/CD for .NET MVC Using Jenkins
https://dzone.com/articles/cicd-in-aspnet-mvc-using-jenkins

get nuget CLI restore the NuGet packages.
https://docs.microsoft.com/en-us/nuget/reference/cli-reference/cli-ref-restore

Gitlab_Jenkins integration
https://docs.gitlab.com/ee/integration/jenkins.html



Đăng ký tên miền, hosting, máy chủ, thiết kế lập trình website theo yêu cầu

 Chính thức trở thành đơn vị cung cấp dịch vụ đăng ký tên miền quốc tế, tên miền Việt Nam hosting, máy chủ, cloud hosting, cloud server, ema...