Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2005

Tip: Looking for answers? Try searching our database.

Error while executing my app on a target/client machine?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GTDriver - 03 Jan 2005 17:23 GMT
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.

Signature

Sincerely,

Keith

Cowboy (Gregory A. Beamer) - MVP - 03 Jan 2005 18:39 GMT
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!
***************************

> 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
[quoted text clipped - 100 lines]
> 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.
GTDriver - 03 Jan 2005 21:09 GMT
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

> 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
[quoted text clipped - 113 lines]
> > 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.
GTDriver - 05 Jan 2005 03:05 GMT
Does anyone know how to fix this error from my original post? If it is the
user having access to the event log, then I don't know how to fix this?

I've installed another app on the same machine which does not use the event
log in the code and I'm getting the following error when executing the app:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: URI formats are not supported.
  at System.IO.Path.GetFullPathInternal(String path)
  at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath,
Boolean bFromProxy)
  at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize)
  at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean
detectEncodingFromByteOrderMarks, Int32 bufferSize)
  at System.IO.StreamReader..ctor(String path)
  at NetSql.NetSql.NetSql_Load(Object sender, EventArgs e)
  at System.Windows.Forms.Form.OnLoad(EventArgs e)
  at System.Windows.Forms.Form.OnCreateControl()
  at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
  at System.Windows.Forms.Control.CreateControl()
  at System.Windows.Forms.Control.WmShowWindow(Message& m)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
  at System.Windows.Forms.ContainerControl.WndProc(Message& m)
  at System.Windows.Forms.Form.WmShowWindow(Message& m)
  at System.Windows.Forms.Form.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.2032
   CodeBase: file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
System
   Assembly Version: 1.0.5000.0
   Win32 Version: 1.1.4322.2032
   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.2032
   CodeBase:
file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
RegexAssembly9_0
   Assembly Version: 0.0.0.0
   Win32 Version: n/a
   CodeBase:
----------------------------------------
IEExecRemote
   Assembly Version: 1.0.5000.0
   Win32 Version: 1.1.4322.2032
   CodeBase:
file:///c:/winnt/assembly/gac/ieexecremote/1.0.5000.0__b03f5f7f11d50a3a/ieexecremote.dll
----------------------------------------
NetSql
   Assembly Version: 1.0.1830.36964
   Win32 Version: n/a
   CodeBase: http://localhost/NetSql.EXE
----------------------------------------
System.Windows.Forms
   Assembly Version: 1.0.5000.0
   Win32 Version: 1.1.4322.2032
   CodeBase:
file:///c:/winnt/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System.Data
   Assembly Version: 1.0.5000.0
   Win32 Version: 1.1.4322.2032
   CodeBase:
file:///c:/winnt/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------
Microsoft.VisualBasic
   Assembly Version: 7.0.5000.0
   Win32 Version: 7.10.6001.4
   CodeBase:
file:///c:/winnt/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.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.

This seems to be a problem that I don't know how to fix, but needs to be
addressed right away. I'd appreciate someone's guidence on this

Thanks,

Keith

> 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?
[quoted text clipped - 122 lines]
> > > 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.