原来如此~ 2021-08-24 11:29 采纳率: 40%
浏览 150

ASP.NET CORE 连接 mysql 数据库,有时候报错,连接不上。

iis部署网站后,有时触发专用内存限制,进行 应用程序池回收。再次启动时,偶尔报错,导致重启失败,网站无法访问。重新启动网站就正常了。

  • System

    • Provider

    [ Name] IIS AspNetCore Module V2

    • EventID 1018

    [ Qualifiers] 0

    Level 2

    Task 0

    Keywords 0x80000000000000

    • TimeCreated

    [ SystemTime] 2021-08-24T00:31:00.270281300Z

    EventRecordID 174182

    Channel Application

    Computer WIN-MTAF82JUSFC

    Security

  • EventData

    Application '/LM/W3SVC/2/ROOT' with physical root 'D:\website' hit unexpected managed exception, exception code = '0xe0434352'. First 30KB characters of captured stdout and stderr logs: [ 08:30:44.241]-[Information]--Starting IdentityServer4 version "4.1.1+cebd52f5bc61bdefc262fd20739d4d087c6f961f" [ 08:30:44.308]-[Information]--You are using the in-memory version of the persisted grant store. This will store consent decisions, authorization codes, refresh and reference tokens in memory only. If you are using any of those features in production, you want to switch to a different store implementation. [ 08:30:44.310]-[Information]--Using the default authentication scheme "Authentication" for IdentityServer [ 08:31:00.247]-[Fatal]--Application startup exception Autofac.Core.DependencyResolutionException: An exception was thrown while activating λ:WebFramework.Core.Domain.Common.CommonSettings. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Authentication to host 'localhost' for user 'root' using method 'caching_sha2_password' failed with message: Reading from the stream has failed. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Reading from the stream has failed. ---> System.IO.IOException: Unable to read data from the transport connection: 你的主机中的软件中止了一个已建立的连接。. ---> System.Net.Sockets.SocketException (10053): 你的主机中的软件中止了一个已建立的连接。 at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.Net.Se.......
    Process Id: 3276.
    File Version: 13.1.20325.11. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: 9699b939f94b7524a178821d78addefa5af5d750

  • System

    • Provider

    [ Name] IIS AspNetCore Module V2

    • EventID 1007

    [ Qualifiers] 0

    Level 2

    Task 0

    Keywords 0x80000000000000

    • TimeCreated

    [ SystemTime] 2021-08-24T00:31:00.270281300Z

    EventRecordID 174183

    Channel Application

    Computer WIN-MTAF82JUSFC

    Security

  • EventData

    Application '/LM/W3SVC/2/ROOT' with physical root 'D:\website' failed to load coreclr. Exception message: CLR worker thread exited prematurely
    Process Id: 3276.
    File Version: 13.1.20325.11. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: 9699b939f94b7524a178821d78addefa5af5d750

  • 写回答

2条回答 默认 最新

  • H_xiao_Y 2021-08-24 11:30
    关注

    评论

报告相同问题?

问题事件

  • 修改了问题 8月24日
  • 修改了问题 8月24日
  • 创建了问题 8月24日

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测