V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ranzige
V2EX  ›  问与答

使用 CS 程序( .net winform), mssql 数据库放在阿里云 ECS 上。每隔几天就出现 winform 异常关闭,查日志是数据库操作时异常的。求解决方法?

  •  1
     
  •   ranzige · 2016-09-02 23:02:31 +08:00 · 1656 次点击
    这是一个创建于 2793 天前的主题,其中的信息可能已经有所发展或是发生改变。
    1 、目前是 winform 直接远程连接的 ECS 上的数据库。是不是这样的连接方式不如使用 web 服务的方式稳定呢?求解答!
    2 、之前有想过 ashx 文件来处理,可是又对授权访问的问题有迷惑。
    第 1 条附言  ·  2016-09-03 22:45:02 +08:00
    Application: PushMoniter.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.Exception
    Stack:
    at PushMoniter.Db.Query(System.String)
    at PushMoniter.UB.GetAndUpdateList(System.String, Int32)
    at PushMoniter.frmMain.CM()
    at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
    at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
    at System.Threading.ThreadHelper.ThreadStart()

    这个是报错的日志信息
    4 条回复    2016-09-03 22:44:08 +08:00
    yejinmo
        1
    yejinmo  
       2016-09-02 23:15:52 +08:00
    报错信息呢?

    出错的代码?
    ranzige
        2
    ranzige  
    OP
       2016-09-02 23:38:27 +08:00 via iPhone
    @yejinmo upupdate 代码报错,大意应该是超时,或者死锁中被放弃
    49degree
        3
    49degree  
       2016-09-03 01:58:20 +08:00
    没错误信息。。。
    ECS 上的 DB 装的有问题?
    DB 可以考虑用阿里云的 RDS
    ranzige
        4
    ranzige  
    OP
       2016-09-03 22:44:08 +08:00
    @49degree 信息是有的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2877 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 07:15 · PVG 15:15 · LAX 00:15 · JFK 03:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.