Problem Description:
When running c# form program, vs prompts an error: an unhandled exception of type “system. Argumentexception” occurs in mscorlib.dll
Problem solving:
The debugging window prompts the following error:
The savefile method of RichTextBox control is used here. For specific usage, see c# richtextbox.savefile method code example – pure sky (vimsky.Com).
To add @ in front of the path to prevent escape, the problem is solved.
Similar Posts:
- Python:SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in pos…
- Solve the problem of destroying windows caused by multiple attchs of control classes in MFC. CWnd * pWnd = CWnd:: fromhandlepermanent (hWnd); ASSERT(pWnd != NULL); Assertion failure problem
- Error: jest not implemented window.open() [How to Solve]
- [Solved] SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position …
- Python Files Error: SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: tr
- How to Solve Android wireless debug Error
- ”Cannot read property ‘addEventListener’ of null“
- How to Solve Error: Request failed with status code 500
- window.location And window.open The difference between
- Problem overview: the setcharacterencoding() method of httpservletresponse reports an error