614 :代码修正: halcon 注销;sql配置修改

System.IO.FileNotFoundException

HResult=0x80070002

Message=test_images/test1.jpg

Source=System.Drawing

StackTrace:

在 System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)

在 WpfApp6.ViewModel.MockImageProvider.GetImage() 在 D:\Download\WpfApp6 (2)\WpfApp6\WpfApp6\ViewModel\MockImageProvider.cs 中: 第 32 行

MySql.Data.MySqlClient.MySqlException

HResult=0x80004005

Message=Unable to connect to any of the specified MySQL hosts

Source=MySql.Data

StackTrace:

在 MySql.Data.MySqlClient.NativeDriver.d__44.MoveNext()

在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

在 MySql.Data.MySqlClient.Driver.d__80.MoveNext()

在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

在 MySql.Data.MySqlClient.Driver.d__75.MoveNext()

在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

在 MySql.Data.MySqlClient.Driver.d__75.MoveNext()

在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

在 MySql.Data.MySqlClient.MySqlPool.d__37.MoveNext()

在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

在 MySql.Data.MySqlClient.MySqlPool.d__35.MoveNext()

在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

在 MySql.Data.MySqlClient.MySqlPool.d__42.MoveNext()

在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

在 MySql.Data.MySqlClient.MySqlPool.d__44.MoveNext()

在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

在 MySql.Data.MySqlClient.MySqlConnection.d__99.MoveNext()

在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

在 System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()

在 WpfApp6.Data.MySqlDetectionRepository.d__2.MoveNext() 在 D:\Download\WpfApp6 (2)\WpfApp6\WpfApp6\Data\MySqlDetectionRepository.cs 中: 第 24 行

此异常最初是在此调用堆栈中引发的:

外部代码

内部异常 1:

SocketException: 由于目标计算机积极拒绝,无法连接。 127.0.0.1:3306

System.ArgumentException

HResult=0x80070057

Message=不支持关键字: "port"。

Source=System.Data

StackTrace:

在 System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey)

在 System.Data.Common.DbConnectionOptions...ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules)

在 System.Data.SqlClient.SqlConnectionString...ctor(String connectionString)

在 System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)

在 System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)

在 System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)

在 System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)

在 System.Data.SqlClient.SqlConnection...ctor(String connectionString, SqlCredential credential)

在 WpfApp6.Data.SqlServerDetectionRepository.d__2.MoveNext() 在 D:\Download\WpfApp6 (2)\WpfApp6\WpfApp6\Data\SqlServerDetectionRepository.cs 中: 第 25 行

git

bash 复制代码
Admin(无密码)@Admin MINGW64 ~
$ cd "/D/Download/WpfApp6 (2)/"

Admin(无密码)@Admin MINGW64 /D/Download/WpfApp6 (2)
$ cd wpfapp6

Admin(无密码)@Admin MINGW64 /D/Download/WpfApp6 (2)/wpfapp6 (master)
$ git status
On branch master
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   WpfApp6/Data/EtherCATMasterSdk.cs

no changes added to commit (use "git add" and/or "git commit -a")

Admin(无密码)@Admin MINGW64 /D/Download/WpfApp6 (2)/wpfapp6 (master)
$ git add .

Admin(无密码)@Admin MINGW64 /D/Download/WpfApp6 (2)/wpfapp6 (master)
$ git commit -m "Mes功能"
[master 1dccb5c] Mes功能
 1 file changed, 100 insertions(+), 9 deletions(-)

Admin(无密码)@Admin MINGW64 /D/Download/WpfApp6 (2)/wpfapp6 (master)
$ git add .

Admin(无密码)@Admin MINGW64 /D/Download/WpfApp6 (2)/wpfapp6 (master)
$ git commit -m "注释掉halcon相关 "
[master f19cdd9] 注释掉halcon相关
 7 files changed, 178 insertions(+), 58 deletions(-)
 create mode 100644 WpfApp6/ViewModel/MockImageProvider.cs
 create mode 100644 WpfApp6/test_images/test1.jpg

Admin(无密码)@Admin MINGW64 /D/Download/WpfApp6 (2)/wpfapp6 (master)
$ git add .

Admin(无密码)@Admin MINGW64 /D/Download/WpfApp6 (2)/wpfapp6 (master)
$ git commit -m "sqlserver 修正"
[master 4b4e3b1] sqlserver 修正
 5 files changed, 10 insertions(+), 16 deletions(-)

Admin(无密码)@Admin MINGW64 /D/Download/WpfApp6 (2)/wpfapp6 (master)
$ git add .

Admin(无密码)@Admin MINGW64 /D/Download/WpfApp6 (2)/wpfapp6 (master)
$ git commit -m "SqlServer修正"
On branch master
nothing to commit, working tree clean

Admin(无密码)@Admin MINGW64 /D/Download/WpfApp6 (2)/wpfapp6 (master)
$
相关推荐
Blockchina1 小时前
Codex安全盲区:我用4组本地测试复盘SQLi、XSS、越权与路径穿越
sql·安全·xss
山峰哥18 小时前
数据库工程与查询优化案例深度复盘‌
数据库·sql·oracle·编辑器·深度优先·宽度优先
茶栀(*´I`*)21 小时前
数据库零基础入门指南:从基本概念到 SQL 实战
数据库·sql
zcn1261 天前
exists子查询改写思考
数据库·sql·sql优化改写
黄俊懿1 天前
【架构师从入门到进阶】第五章:DNS&CDN&网关优化思路——第八节:网关-注入攻击与预防
sql·网络安全·架构·系统架构·架构师·架构设计
HackTwoHub1 天前
Butter_Cookie 黄油曲奇|浏览器渗透插件,云存储检测、XSS、SQL 注入一站式 Web 安全测试工具
前端·sql·安全·web安全·网络安全·自动化·xss
Sagittarius_A*1 天前
【好靶场】报错注入-sql注入-数字型
数据库·sql·web安全·sql注入
闻哥2 天前
小表驱动大表——SQL查询优化的核心原则(深度剖析+流程图)
数据库·sql·流程图
派小汤2 天前
Harmony2.2.0通过RdbStore实现通用类操作本地SQLite数据库
数据库·sql·sqlite·鸿蒙·鸿蒙系统