linux - SqlConnection ExecuteAsync 在 Linux 上挂起,但在 Windows 上没有
问题描述
ASP.Net 核心
我有代码而不是电话
var resp = await conn.ExecuteAsync("procedureName", sqlParams, commandType: CommandType.StoredProcedure).ConfigureAwait(false)
当我在我的 Windows 机器上启动我的应用程序时 - 一切正常。但是当我在 linux 上部署它时,执行会挂起执行此ExecuteAsync
方法。当我从 Masstransit 消费者调用我的代码时会发生这种情况,并且不是每个请求都会发生。为什么会有不同
解决方案
您是否正在运行引用相同数据库环境的应用程序?
推荐阅读
- python - 如何解决电视节目 UnboundLocalError
- javascript - 控制器返回 404 - 节点 JS
- node.js - 设置多个 .env 配置(React/Next/Node)
- ios - ReferenceError:找到“GoogleMaps.GMSGeometryDistance”的元数据,但符号在运行时不可用
- python - 有没有办法获得所有连接到公会语音频道的成员的ID?
- java - 如何展开多个 Flux 并保留原件?
- laravel - Laravel 8 中的单元测试事件抛出 EventFake::__construct() 必须实现接口 Illuminate\Contracts\Events\Dispatcher,给定 null
- c - 如何仅将 LD_PRELOAD 应用于目标程序?
- amazon-web-services - 无法从 S3 的詹金斯更新掌舵图
- tsql - 左连接 SQL 后更改列值