See the end of this message for details on invoking just-in-time (JIT) debugging ins
when I run my application on vista 32 bit it will show the following error
I compiled my application X86 that wiil run on XP 32 and 64 bit machine but not on vista
Can anybody help me
thanx Advance
Error detail is following
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Program Files\CryoServer\PST Import\PST Import\errlog.txt' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at PST.ErrorLogger.WriteToErrorLog(String msg, String stkTrace, String title) in E:\workOnDotNet\F17\pst\Resources\ErrorLogger.vb:line 34
at PST.frmMain.Button1_Click_1(Object sender, EventArgs e) in E:\workOnDotNet\F17\pst\Form1.vb:line 410
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
PST Import
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/CryoServer/PST%20Import/PST%20Import/PST%20Import.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Interop.Redemption
Assembly Version: 4.6.0.0
Win32 Version: 4.6.0.0
CodeBase: file:///C:/Program%20Files/CryoServer/PST%20Import/PST%20Import/Interop.Redemption.DLL
----------------------------------------
ExpTreeLib
Assembly Version: 2.11.3259.30240
Win32 Version: 2.11.3259.30240
CodeBase: file:///C:/Program%20Files/CryoServer/PST%20Import/PST%20Import/ExpTreeLib.DLL
----------------------------------------
System.Management
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
Interop.Shell32
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/CryoServer/PST%20Import/PST%20Import/Interop.Shell32.DLL
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Re: See the end of this message for details on invoking just-in-time (JIT) debugging
Have you acctually looked at the Error...
PST.frmMain.Button1_Click_1(Object sender, EventArgs e) in E:\workOnDotNet\F17\pst\Form1.vb:line 410
The FrmMain Function Button1_Click at line 410 made a call to:-
PST.ErrorLogger.WriteToErrorLog(String msg, String stkTrace, String title) in E:\workOnDotNet\F17\pst\Resources\ErrorLogger.vb:line 34
Function WriteToErrorLog in Class ErrorLogger at line 34 that:-
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
Tried to open a FileStream however:
System.UnauthorizedAccessException: Access to the path 'C:\Program Files\CryoServer\PST Import\PST Import\errlog.txt' is denied.
The File C:\Program Files\CryoServer\PST Import\PST Import\errlog.txt cannot be opened because Access to the path is denied..
Now..
Search the Forums for Vista and file access, and you will come across several threads disscussing the file access problems that are associated with vista...
#1 Is UAC turned on..
#2 Does the User have Admin rights
#3 Is the user a owner or creator of the file/Folder..
Gremmy...
Re: See the end of this message for details on invoking just-in-time (JIT) debugging
In Vista+, no program can write to the Program Files folder
Re: See the end of this message for details on invoking just-in-time (JIT) debugging
Quote:
Originally Posted by
dglienna
In Vista+, no program can write to the Program Files folder
I didn't want to make it that easy.. else everyone is going to start posting there "Full" errors with out any explination and expect us to solve it for them...