RE: Error while executing my app on a target/client machine?
From: GTDriver (GTDriver_at_discussions.microsoft.com)
Date: 01/03/05
- Previous message: PIEBALD: "Re: simple math problem?"
- In reply to: Cowboy (Gregory A. Beamer) - MVP: "RE: Error while executing my app on a target/client machine?"
- Next in thread: GTDriver: "RE: Error while executing my app on a target/client machine?"
- Reply: GTDriver: "RE: Error while executing my app on a target/client machine?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 3 Jan 2005 13:09:04 -0800
I logged onto the client machine as the Administrator when I installed the
application. Wouldn't the Administrator already have access to the event log?
If not, how do I give a windows account access to the event log? I'm assuming
I do this on the client machine and not through code?
Sincerely,
Keith
"Cowboy (Gregory A. Beamer) - MVP" wrote:
> On the client machine, the user running the application (you?) does not have
> access to the event log. This is the most probable error, according to your
> exception call stack dump.
>
> ---
>
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
>
> ***************************
> Think Outside the Box!
> ***************************
>
> "GTDriver" wrote:
>
> > I'm new at developing apps in VB.NET. I just created a small app that just
> > has a text box and a button on the form. The button code will just write to
> > the eventlog using eventlog.writeEntry(txtMessage.text).
> >
> > After copying the following files to the target machine and running the
> > setup.exe, I get the following error when executing the program:
> >
> > EventLogApplicationSetup (Windows Installer Package)
> > Setup.exe
> > Setup.config
> >
> > Error:
> > An unhandled exception has occurred in your app.
> > The network path was not found.
> > Details:
> > See the end of this message for details on invoking
> > just-in-time (JIT) debugging instead of this dialog box.
> >
> > ************** Exception Text **************
> > System.IO.IOException: The network path was not found.
> >
> > at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
> > at Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(RegistryHive hKey,
> > String machineName)
> > at System.Diagnostics.EventLog.FindSourceRegistration(String source,
> > String machineName, Boolean readOnly)
> > at System.Diagnostics.EventLog.SourceExists(String source, String
> > machineName)
> > at System.Diagnostics.EventLog.WriteEntry(String message,
> > EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
> > at System.Diagnostics.EventLog.WriteEntry(String message,
> > EventLogEntryType type, Int32 eventID, Int16 category)
> > at System.Diagnostics.EventLog.WriteEntry(String message,
> > EventLogEntryType type, Int32 eventID)
> > at System.Diagnostics.EventLog.WriteEntry(String message,
> > EventLogEntryType type)
> > at System.Diagnostics.EventLog.WriteEntry(String message)
> > at EventLogApplication.EventLogApplication.btnWrite_Click(Object sender,
> > EventArgs e)
> > 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.ControlNativeWindow.OnMessage(Message& m)
> > at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
> > at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
> > IntPtr wparam, IntPtr lparam)
> >
> >
> > ************** Loaded Assemblies **************
> > mscorlib
> > Assembly Version: 1.0.5000.0
> > Win32 Version: 1.1.4322.573
> > CodeBase: file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll
> > ----------------------------------------
> > System
> > Assembly Version: 1.0.5000.0
> > Win32 Version: 1.1.4322.573
> > CodeBase:
> > file:///c:/winnt/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
> > ----------------------------------------
> > System.Drawing
> > Assembly Version: 1.0.5000.0
> > Win32 Version: 1.1.4322.573
> > CodeBase:
> > file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
> > ----------------------------------------
> > EventLogApplication
> > Assembly Version: 1.0.1829.14097
> > Win32 Version: 1.0.1829.14097
> > CodeBase:
> > file:///C:/Program%20Files/EventLog%20Application/EventLogApplication/EventLogApplication.exe
> > ----------------------------------------
> > System.Windows.Forms
> > Assembly Version: 1.0.5000.0
> > Win32 Version: 1.1.4322.573
> > CodeBase:
> > file:///c:/winnt/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
> > ----------------------------------------
> >
> > ************** JIT Debugging **************
> > To enable just in time (JIT) debugging, the config file for this
> > application or machine (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 machine
> > rather than being handled by this dialog.
> >
> > When I go to the directory where the app was installed I don't see any
> > application config file. Where do I get this? Did I copy all the correct file
> > to have a propert install of this app onto the target machine?
> > What do I need to change to allow my app to run without the above error.
> >
> > --
> > Sincerely,
> >
> > Keith
- Previous message: PIEBALD: "Re: simple math problem?"
- In reply to: Cowboy (Gregory A. Beamer) - MVP: "RE: Error while executing my app on a target/client machine?"
- Next in thread: GTDriver: "RE: Error while executing my app on a target/client machine?"
- Reply: GTDriver: "RE: Error while executing my app on a target/client machine?"
- Messages sorted by: [ date ] [ thread ]