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

System.IO.IOException: The system cannot find message text for message number 0x%1 in the message file for %2\r\n #23899

Closed
schalkvanwyk opened this issue Oct 19, 2017 · 2 comments
Milestone

Comments

@schalkvanwyk
Copy link

Hi

It seems there is bug in the way exception messages are looked up.

I'm getting the following exception when trying to move a file:

System.IO.IOException: The system cannot find message text for message number 0x%1 in the message file for %2\r\n at System.IO.Win32FileSystem.MoveFile(String sourceFullPath, String destFullPath)\r\n at System.IO.File.Move(String sourceFileName, String destFileName)

The exception seems to materialize from the call to Win32Marshal.GetExceptionForWin32Error in
System.IO.Win32FileSystem.MoveFile(String sourceFullPath, String destFullPath)

Regards

@danmoseley
Copy link
Member

@schalkvanwyk do you have a way for us to reproduce this? If not, can you figure out what error code is getting passed to Win32Marshal.GetExceptionForWin32Error?

@JeremyKuhne
Copy link
Member

Please reopen if a repro is available.

@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 2.1.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants