vb.net - Win10程序上的VB .Net无法运行
问题描述
Public Sub New()
Dim stackframe As New Diagnostics.StackFrame
Dim LogConfig As Log.Configure = New Log.Configure(My.Application.Info.ProductName)
Log.EventLog.Write("Aplication Open")
If Process.GetProcessesByName(My.Application.Info.ProductName).Length > 1 Then
Log.ErrorLog.Write(stackframe.GetMethod.Name.ToString, "Application its running, can't duplicate it")
End
End If
' This call is required by the designer.
Log.EventLog.Write("InitializeComponent")
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
Log.EventLog.Write("ReadINI")
If Not ReadINI(Application.StartupPath & "\" & Application.ProductName & ".ini") Then
MsgBox("Failed!! Read ini file, please contact administrator", MsgBoxStyle.OkOnly, "Error")
Log.ErrorLog.Write(stackframe.GetMethod.Name.ToString, "Read ini file failed")
End
End If
2020-02-06 11:38:03 [PCCLIENT] 应用程序打开
2020-02-06 11:38:03 [PCCLIENT] InitializeComponent
我正在尝试在具有 Windows 10 版本 1803 直到 1909 的客户端 PC 上执行程序,但无法运行它。我检查过,日志卡在 InitializeComponent() 中,但我无法跟踪它。
解决方案
推荐阅读
- javascript - 如何清除来自其他组件的 ngModel 值?
- javascript - Ajax 无法将 javascript 变量发布到 php
- react-native - 如何获取在 Expo sdk 32 中使用的 google WEB API 密钥?
- python - 如何进行大数据分层随机抽样?
- mysql - SQL-如何在聚合操作期间获取每组重复次数最多的文本值?
- pandas - 散点图大小未按预期变化 matplotlib
- libvlc - 如何在 vc++ 中使用 LIBVLC 从 VLC 媒体播放器(VLC Direct 3d 输出)中隐藏标题栏
- javascript - 您将如何提取 2 个数字并将它们存储到字符串中的单独变量中
- node.js - 似乎无法自动完成在 WebStorm 中工作
- django - 在 django 中执行“python manage.py runserver”时出现问题