簡體   English   中英

ApplicationSettingsBase.Save:無法將配置保存到文件

[英]ApplicationSettingsBase.Save: Unable to save config to file

什么可能導致 ApplicationSettingsBase.Save 失敗並顯示錯誤“無法將配置保存到文件”?

if (Settings.Default.CallUpgrade)
{
    Settings.Default.Upgrade();
    Settings.Default.CallUpgrade = false;
    Settings.Default.Save();
}

Exception Type: System.Configuration.ConfigurationErrorsException

Exception Message: Konfiguration konnte nicht in Datei "C:\Users\u00001\AppData\Roaming\CompanyName\ApplicationName.ex_StrongName_4vozv12n21s5wt5tg4h44jakrs6m65xy\3.0.0.1\user.config" gespeichert werden.

Stack Trace:
   bei System.Configuration.Internal.WriteFileContext.ReplaceFile(String Source, String Target)
   bei System.Configuration.Internal.WriteFileContext.Complete(String filename, Boolean success)
   bei System.Configuration.Internal.InternalConfigHost.StaticWriteCompleted(String streamName, Boolean success, Object writeContext, Boolean assertPermissions)
   bei System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.WriteCompleted(String streamName, Boolean success, Object writeContext, Boolean assertPermissions)
   bei System.Configuration.Internal.DelegatingConfigHost.WriteCompleted(String streamName, Boolean success, Object writeContext, Boolean assertPermissions)
   bei System.Configuration.ClientSettingsStore.ClientSettingsConfigurationHost.WriteCompleted(String streamName, Boolean success, Object writeContext)
   bei System.Configuration.UpdateConfigHost.WriteCompleted(String streamName, Boolean success, Object writeContext)
   bei System.Configuration.MgmtConfigurationRecord.SaveAs(String filename, ConfigurationSaveMode saveMode, Boolean forceUpdateAll)
   bei System.Configuration.Configuration.SaveAsImpl(String filename, ConfigurationSaveMode saveMode, Boolean forceSaveAll)
   bei System.Configuration.ClientSettingsStore.WriteSettings(String sectionName, Boolean isRoaming, IDictionary newSettings)

除了 user.config 之外,該文件夾還包含另一個名為 a2rx2s4u.newcfg 的文件。 運行應用程序的用戶可以完全控制文件夾。

該應用程序在帶有 Citrix XenApp 的 Windows 2019 服務器上運行。

我已經使用 Sysinternals Process Monitor 記錄了應用程序的活動。 據我了解,該應用程序嘗試將 a2rx2s4u.newcfg 重命名為 user.config 以替換現有的 user.config,這似乎失敗了:

Operation: IRP_MJ_SET_INFORMATION
Result: 0xC0000369
Path: C:\Users\u00001\AppData\Roaming\CompanyName\ApplicationName.ex_StrongName_4vozv12n21s5wt5tg4h44jakrs6m65xy\3.0.0.1\a2rx2s4u.newcfg
Type: SetRenameInformationFile
ReplaceIfExists: True
FileName: C:\Users\u00001\AppData\Roaming\CompanyName\ApplicationName.ex_StrongName_4vozv12n21s5wt5tg4h44jakrs6m65xy\3.0.0.1\user.config

來自 Process Explorer 的堆棧跟蹤:

    "Frame","Module","Location","Address","Path"
"0","FLTMGR.SYS","FLTMGR.SYS + 0x555d","0xfffff8058039555d","C:\Windows\System32\drivers\FLTMGR.SYS"
"1","FLTMGR.SYS","FLTMGR.SYS + 0x50bc","0xfffff805803950bc","C:\Windows\System32\drivers\FLTMGR.SYS"
"2","FLTMGR.SYS","FLTMGR.SYS + 0x4c28","0xfffff80580394c28","C:\Windows\System32\drivers\FLTMGR.SYS"
"3","FLTMGR.SYS","FLTMGR.SYS + 0x4a1e","0xfffff80580394a1e","C:\Windows\System32\drivers\FLTMGR.SYS"
"4","ntoskrnl.exe","ntoskrnl.exe + 0x38109","0xfffff8016c0db109","C:\Windows\system32\ntoskrnl.exe"
"5","ntoskrnl.exe","ntoskrnl.exe + 0x10b343","0xfffff8016c1ae343","C:\Windows\system32\ntoskrnl.exe"
"6","ntoskrnl.exe","ntoskrnl.exe + 0x11a4ac","0xfffff8016c1bd4ac","C:\Windows\system32\ntoskrnl.exe"
"7","ntoskrnl.exe","ntoskrnl.exe + 0x1c8605","0xfffff8016c26b605","C:\Windows\system32\ntoskrnl.exe"
"8","ntdll.dll","ntdll.dll + 0x9fc44","0x7ffb5408fc44","C:\Windows\System32\ntdll.dll"
"9","wow64.dll","wow64.dll + 0x14a35","0x7ffb53ca4a35","C:\Windows\System32\wow64.dll"
"10","wow64.dll","wow64.dll + 0xa507","0x7ffb53c9a507","C:\Windows\System32\wow64.dll"
"11","wow64.dll","wow64.dll + 0x7783","0x7ffb53c97783","C:\Windows\System32\wow64.dll"
"12","wow64cpu.dll","wow64cpu.dll + 0x1783","0x775f1783","C:\Windows\System32\wow64cpu.dll"
"13","wow64cpu.dll","wow64cpu.dll + 0x1199","0x775f1199","C:\Windows\System32\wow64cpu.dll"
"14","wow64.dll","wow64.dll + 0xcfda","0x7ffb53c9cfda","C:\Windows\System32\wow64.dll"
"15","wow64.dll","wow64.dll + 0x17dfd","0x7ffb53ca7dfd","C:\Windows\System32\wow64.dll"
"16","wow64win.dll","wow64win.dll + 0x2e0f","0x7ffb53ee2e0f","C:\Windows\System32\wow64win.dll"
"17","ntdll.dll","ntdll.dll + 0xa34b4","0x7ffb540934b4","C:\Windows\System32\ntdll.dll"
"18","ntoskrnl.exe","ntoskrnl.exe + 0x672ae5","0xfffff8016c715ae5","C:\Windows\system32\ntoskrnl.exe"
"19","win32kfull.sys","win32kfull.sys + 0x65ff7","0xfffff4df95065ff7","C:\Windows\System32\win32kfull.sys"
"20","win32kfull.sys","win32kfull.sys + 0x65d20","0xfffff4df95065d20","C:\Windows\System32\win32kfull.sys"
"21","win32kfull.sys","win32kfull.sys + 0x65796","0xfffff4df95065796","C:\Windows\System32\win32kfull.sys"
"22","win32kfull.sys","win32kfull.sys + 0x652dc","0xfffff4df950652dc","C:\Windows\System32\win32kfull.sys"
"23","win32kfull.sys","win32kfull.sys + 0xa033e","0xfffff4df950a033e","C:\Windows\System32\win32kfull.sys"
"24","win32kfull.sys","win32kfull.sys + 0x5a972","0xfffff4df9505a972","C:\Windows\System32\win32kfull.sys"
"25","win32kfull.sys","win32kfull.sys + 0x5a020","0xfffff4df9505a020","C:\Windows\System32\win32kfull.sys"
"26","win32kfull.sys","win32kfull.sys + 0xec27c","0xfffff4df950ec27c","C:\Windows\System32\win32kfull.sys"
"27","win32kfull.sys","win32kfull.sys + 0xce961","0xfffff4df950ce961","C:\Windows\System32\win32kfull.sys"
"28","ntoskrnl.exe","ntoskrnl.exe + 0x1c8605","0xfffff8016c26b605","C:\Windows\system32\ntoskrnl.exe"
"29","wow64win.dll","wow64win.dll + 0xf5b4","0x7ffb53eef5b4","C:\Windows\System32\wow64win.dll"
"30","wow64win.dll","wow64win.dll + 0x36d2","0x7ffb53ee36d2","C:\Windows\System32\wow64win.dll"
"31","wow64win.dll","wow64win.dll + 0x19fe","0x7ffb53ee19fe","C:\Windows\System32\wow64win.dll"
"32","wow64.dll","wow64.dll + 0x7783","0x7ffb53c97783","C:\Windows\System32\wow64.dll"
"33","wow64cpu.dll","wow64cpu.dll + 0x1783","0x775f1783","C:\Windows\System32\wow64cpu.dll"
"34","wow64cpu.dll","wow64cpu.dll + 0x1199","0x775f1199","C:\Windows\System32\wow64cpu.dll"
"35","wow64.dll","wow64.dll + 0xcfda","0x7ffb53c9cfda","C:\Windows\System32\wow64.dll"
"36","wow64.dll","wow64.dll + 0xcea0","0x7ffb53c9cea0","C:\Windows\System32\wow64.dll"
"37","ntdll.dll","ntdll.dll + 0xd5c7d","0x7ffb540c5c7d","C:\Windows\System32\ntdll.dll"
"38","ntdll.dll","ntdll.dll + 0xc38b9","0x7ffb540b38b9","C:\Windows\System32\ntdll.dll"
"39","ntdll.dll","ntdll.dll + 0x756c3","0x7ffb540656c3","C:\Windows\System32\ntdll.dll"
"40","ntdll.dll","ntdll.dll + 0x7566e","0x7ffb5406566e","C:\Windows\System32\ntdll.dll"
"41","ntdll.dll","ntdll.dll + 0x7090c","0x7767090c","C:\Windows\SysWOW64\ntdll.dll"
"42","KernelBase.dll","KernelBase.dll + 0x121517","0x76341517","C:\Windows\SysWOW64\KernelBase.dll"
"43","KernelBase.dll","KernelBase.dll + 0x121338","0x76341338","C:\Windows\SysWOW64\KernelBase.dll"
"44","Sfrhook.dll","Sfrhook.dll + 0x2ae7","0x730a2ae7","C:\Program Files (x86)\Citrix\System32\Sfrhook.dll"
"45","System.Configuration.ni.dll","System.Configuration.ni.dll + 0xa427d","0x6d92427d","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Configuration\727d61c30dcf1fe944a3c6110c244de8\System.Configuration.ni.dll"
"46","System.Configuration.ni.dll","System.Configuration.ni.dll + 0xc4c31","0x6d944c31","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Configuration\727d61c30dcf1fe944a3c6110c244de8\System.Configuration.ni.dll"
"47","System.Configuration.ni.dll","System.Configuration.ni.dll + 0xc4bbd","0x6d944bbd","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Configuration\727d61c30dcf1fe944a3c6110c244de8\System.Configuration.ni.dll"
"48","System.Configuration.ni.dll","System.Configuration.ni.dll + 0xc49c3","0x6d9449c3","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Configuration\727d61c30dcf1fe944a3c6110c244de8\System.Configuration.ni.dll"
"49","System.Configuration.ni.dll","System.Configuration.ni.dll + 0xc42c2","0x6d9442c2","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Configuration\727d61c30dcf1fe944a3c6110c244de8\System.Configuration.ni.dll"
"50","System.Configuration.ni.dll","System.Configuration.ni.dll + 0xc4334","0x6d944334","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Configuration\727d61c30dcf1fe944a3c6110c244de8\System.Configuration.ni.dll"
"51","System.ni.dll","System.ni.dll + 0x75e36e","0x705ee36e","C:\Windows\assembly\NativeImages_v4.0.30319_32\System\9d718786e2ea160f395d8ee3d2488791\System.ni.dll"
"52","System.Configuration.ni.dll","System.Configuration.ni.dll + 0xc225c","0x6d94225c","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Configuration\727d61c30dcf1fe944a3c6110c244de8\System.Configuration.ni.dll"
"53","System.Configuration.ni.dll","System.Configuration.ni.dll + 0xb6d07","0x6d936d07","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Configuration\727d61c30dcf1fe944a3c6110c244de8\System.Configuration.ni.dll"
"54","System.Configuration.ni.dll","System.Configuration.ni.dll + 0xab5cd","0x6d92b5cd","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Configuration\727d61c30dcf1fe944a3c6110c244de8\System.Configuration.ni.dll"
"55","System.ni.dll","System.ni.dll + 0x6423f0","0x704d23f0","C:\Windows\assembly\NativeImages_v4.0.30319_32\System\9d718786e2ea160f395d8ee3d2488791\System.ni.dll"
"56","System.ni.dll","System.ni.dll + 0x643fcf","0x704d3fcf","C:\Windows\assembly\NativeImages_v4.0.30319_32\System\9d718786e2ea160f395d8ee3d2488791\System.ni.dll"
"57","<unknown>","0xccf4cde","0xccf4cde",""
"58","System.ni.dll","System.ni.dll + 0x646425","0x704d6425","C:\Windows\assembly\NativeImages_v4.0.30319_32\System\9d718786e2ea160f395d8ee3d2488791\System.ni.dll"
"59","System.ni.dll","System.ni.dll + 0x64624f","0x704d624f","C:\Windows\assembly\NativeImages_v4.0.30319_32\System\9d718786e2ea160f395d8ee3d2488791\System.ni.dll"
"60","System.ni.dll","System.ni.dll + 0x641636","0x704d1636","C:\Windows\assembly\NativeImages_v4.0.30319_32\System\9d718786e2ea160f395d8ee3d2488791\System.ni.dll"
"61","<unknown>","0x9e7637a","0x9e7637a",""
"62","<unknown>","0x9e75ff5","0x9e75ff5",""
"63","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x8b8b0c","0x60988b0c","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"64","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x8bcc03","0x6098cc03","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"65","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0xc43fe4","0x60d13fe4","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"66","<unknown>","0xa4b0385","0xa4b0385",""
"67","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x1c2ff3","0x60292ff3","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"68","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x1c2f85","0x60292f85","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"69","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x1c28c0","0x602928c0","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"70","<unknown>","0x32dd446","0x32dd446",""
"71","user32.dll","user32.dll + 0x45cab","0x77495cab","C:\Windows\SysWOW64\user32.dll"
"72","user32.dll","user32.dll + 0x367bc","0x774867bc","C:\Windows\SysWOW64\user32.dll"
"73","user32.dll","user32.dll + 0x3635a","0x7748635a","C:\Windows\SysWOW64\user32.dll"
"74","user32.dll","user32.dll + 0x4312f","0x7749312f","C:\Windows\SysWOW64\user32.dll"
"75","ntdll.dll","ntdll.dll + 0x72aed","0x77672aed","C:\Windows\SysWOW64\ntdll.dll"
"76","user32.dll","user32.dll + 0x37b5f","0x77487b5f","C:\Windows\SysWOW64\user32.dll"
"77","uxtheme.dll","uxtheme.dll + 0x32dca","0x74342dca","C:\Windows\SysWOW64\uxtheme.dll"
"78","uxtheme.dll","uxtheme.dll + 0x32418","0x74342418","C:\Windows\SysWOW64\uxtheme.dll"
"79","user32.dll","user32.dll + 0x37dd3","0x77487dd3","C:\Windows\SysWOW64\user32.dll"
"80","user32.dll","user32.dll + 0x45cab","0x77495cab","C:\Windows\SysWOW64\user32.dll"
"81","user32.dll","user32.dll + 0x367bc","0x774867bc","C:\Windows\SysWOW64\user32.dll"
"82","user32.dll","user32.dll + 0x35d0f","0x77485d0f","C:\Windows\SysWOW64\user32.dll"
"83","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x1c35d7","0x602935d7","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"84","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x1cca34","0x6029ca34","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"85","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0xc4180c","0x60d1180c","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"86","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x1cc9c1","0x6029c9c1","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"87","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x1cdae3","0x6029dae3","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"88","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x8bd542","0x6098d542","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"89","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0xc43ea9","0x60d13ea9","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"90","<unknown>","0xa4b0385","0xa4b0385",""
"91","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x1c2ff3","0x60292ff3","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"92","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x1c2f85","0x60292f85","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"93","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x1c28c0","0x602928c0","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"94","<unknown>","0x32dd446","0x32dd446",""
"95","user32.dll","user32.dll + 0x45cab","0x77495cab","C:\Windows\SysWOW64\user32.dll"
"96","user32.dll","user32.dll + 0x367bc","0x774867bc","C:\Windows\SysWOW64\user32.dll"
"97","user32.dll","user32.dll + 0x358fb","0x774858fb","C:\Windows\SysWOW64\user32.dll"
"98","user32.dll","user32.dll + 0x356d0","0x774856d0","C:\Windows\SysWOW64\user32.dll"
"99","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x225f1d","0x602f5f1d","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"100","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x1d34e3","0x602a34e3","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"101","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x1d30d1","0x602a30d1","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"102","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x1d2f23","0x602a2f23","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"103","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x893c13","0x60963c13","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"104","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x8bbf5d","0x6098bf5d","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"105","System.Windows.Forms.ni.dll","System.Windows.Forms.ni.dll + 0x8bbc0d","0x6098bc0d","C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\bf4d479ac30cbf95afe4c0d4de1fc37b\System.Windows.Forms.ni.dll"
"106","<unknown>","0x9f6225b","0x9f6225b",""
"107","<unknown>","0x9d89434","0x9d89434",""
"108","<unknown>","0x822b0f7","0x822b0f7",""
"109","<unknown>","0x3411f66","0x3411f66",""
"110","clr.dll","clr.dll + 0xf036","0x7200f036","C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll"
"111","clr.dll","clr.dll + 0x122da","0x720122da","C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll"
"112","clr.dll","clr.dll + 0x1859b","0x7201859b","C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll"
"113","clr.dll","clr.dll + 0x1bb11b","0x721bb11b","C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll"
"114","clr.dll","clr.dll + 0x1bb7fa","0x721bb7fa","C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll"
"115","clr.dll","clr.dll + 0x1bb727","0x721bb727","C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll"
"116","clr.dll","clr.dll + 0x1bb8a8","0x721bb8a8","C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll"
"117","clr.dll","clr.dll + 0x1bb9ce","0x721bb9ce","C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll"
"118","clr.dll","clr.dll + 0x1b7305","0x721b7305","C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll"
"119","mscoreei.dll","mscoreei.dll + 0xfa84","0x7294fa84","C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll"
"120","mscoree.dll","mscoree.dll + 0xe80e","0x74bee80e","C:\Windows\SysWOW64\mscoree.dll"
"121","mscoree.dll","mscoree.dll + 0x143f8","0x74bf43f8","C:\Windows\SysWOW64\mscoree.dll"
"122","ntdll.dll","ntdll.dll + 0x666ed","0x776666ed","C:\Windows\SysWOW64\ntdll.dll"
"123","ntdll.dll","ntdll.dll + 0x666bd","0x776666bd","C:\Windows\SysWOW64\ntdll.dll"

不幸的是,我手頭沒有 32 位 Windows,而且由於應用程序是 x86,Process Explorer 無法解析符號。

有趣的是,堆棧跟蹤包含“Sfrhook.dll”,即“Citrix 特殊文件夾掛鈎 DLL”。 我認為這個 DLL 在 Citrix 中實現了特殊文件夾重定向。

根據 Windows 錯誤代碼參考,錯誤代碼 0xC0000369 表示 STATUS_INVALID_DEVICE_OBJECT_PARAMETER:

設備對象參數不是有效的設備對象,或者未附加到文件名指定的卷。

我不明白這一點 - 重命名的源和目標在同一目錄中。

如何進一步縮小這個問題的范圍?

[EDIT1] 用戶配置文件似乎駐留在 FSLogix 配置文件容器中: https ://docs.microsoft.com/en-us/fslogix/configure-profile-container-tutorial

使用配置文件容器時,應用程序和用戶都可以看到配置文件,就像它位於本地驅動器上一樣。

[EDIT2] 我們現在有另一個客戶遇到同樣的問題。 這一次:沒有 Citrix,而是“Windows 10 Enterprise 多會話” - 也使用 FSLogix 配置文件容器。 https://docs.microsoft.com/en-us/azure/virtual-desktop/windows-10-multisession-faq

我們發現,在服務器 2019 中,需要為用戶級寫入禁用 UAC 虛擬化設置。 使用Process Monitor,我們發現當錯誤發生時,它寫入了一個UAC事件日志。 對於遺留應用程序,當從“user.newcfg”文件復制 user.config 文件時會出現此問題,該文件只是 .NET 代碼創建的臨時文件。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM