Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dummy file not found #68

Closed
mreilaender opened this issue Jan 10, 2025 · 1 comment
Closed

Dummy file not found #68

mreilaender opened this issue Jan 10, 2025 · 1 comment

Comments

@mreilaender
Copy link

Getting an exception about the dummy file not being found after I end my session with moonlight:

DEBUG: Starting Get-MonitorIdFromXML function for filePath: .\Dummy.xml
Get-Content : Cannot find path 'C:\xxxxxx\Dummy.xml' because it does not exist.
At C:\xxxxxx\Events.ps1:199 char:17
+     [xml]$xml = Get-Content -Path $filePath
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\xxxxxx\...apper\Dummy.xml:String) [Get-Content], 
ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
Get-Content : Cannot find path 'C:\xxxxxx\Dummy.xml' because it does not exist.
At C:\xxxxxx\Events.ps1:199 char:17
+     [xml]$xml = Get-Content -Path $filePath
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\xxxxxx\...apper\Dummy.xml:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Pretty sure the path is correct though because copying from the log file and pasting in explorer opens it ...

@Nonary
Copy link
Owner

Nonary commented Jan 11, 2025

It either does not exist or its some type of file permissions issue, the exact same code is used for Primary.xml so it does not make sense to me how it works but not on the Dummy.xml file.

That is an error for Windows itself, claiming that it does not exist.

@Nonary Nonary closed this as not planned Won't fix, can't repro, duplicate, stale Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants