Created
January 16, 2014 12:17
-
-
Save hellboy81/8454032 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pre-conditions: fileName: \\Program Files\\MyAppName\\myapp_log.txt | |
// This File name | |
// Debuggging in Visual Studio 2008 with ActiveSync | |
// Log file myapp_log.txt is opened on PC with Windows Explorer | |
// Windows 7 machine | |
// An error message is available for this exception but cannot be displayed because these messages | |
// are optional and are not currently installed on this device. | |
// Please install ‘NETCFv35.Messages.EN.wm.cab’ for Windows Mobile 5.0 and above or | |
// ‘NETCFv35.Messages.EN.cab’ for other platforms. Restart the application to see the message. | |
Trace2.Listeners.Add(new TextWriterTraceListener(fileName)); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System.IO.IOException was unhandled
Message="An error message is available for this exception but cannot be displayed because these messages are optional and are not currently installed on this device. Please install ‘NETCFv35.Messages.EN.wm.cab’ for Windows Mobile 5.0 and above or ‘NETCFv35.Messages.EN.cab’ for other platforms. Restart the application to see the message."
StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.IO.StreamWriter.CreateFile(String path, Boolean append)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path, Boolean append)
at OpenNETCF.Diagnostics.TextWriterTraceListener..ctor(String fileName)
...
at System.Windows.Forms.Control.OnClick(EventArgs e)
at OpenNETCF.Windows.Forms.Button2.OnClick(EventArgs e)
at System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam)
at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
at System.Windows.Forms.Application.Run(Form fm)
at .....Program.Main()