在top1的top1中,我声明变量我有这一行:
private string ArchiveLogFileDirectory = Path.GetDirectoryName(Application.LocalUserAppDataPath) + "\\Archive log file";
在LocalUserAppDataPath中,我看到:
C:\Users\000\AppData\Local\mws\mws\1.0.0.5
我有目录1.0.0.5,但它是空的,为什么它会进入这个目录呢?
这是异常消息:
System.Deployment.Application.InvalidDeploymentException occurred
_HResult=-2146233087
_message=Application identity is not set.
HResult=-2146233087
IsTransient=false
Message=Application identity is not set.
Source=System.Deployment
StackTrace:
at System.Deployment.Application.ApplicationDeployment.get_CurrentDeployment()
InnerException:
答案 0 :(得分:-1)
我刚刚禁用了例外:
从“调试”菜单中打开“例外”窗口。 展开“公共语言运行时例外” - > “System.Deployment.Application”。 取消选中“System.Deployment.Application.InvalidDeploymentException”旁边的框。