Pythagrous

I wrote a program which utilises the Ntidy HTML parser (NTidy.dll). The application works on all the machines on our network except the live windows 2003 server (it works on a test 2003 server with similar setup). The app just fails to start. The event log shows the following error:

Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 5000
EventType clr20r3, P1 testapp1.exe, P2 1.0.0.0, P3 46d830aa, P4 testapp1, P5 1.0.0.0, P6 46d830aa, P7 44, P8 e, P9 system.io.filenotfoundexception, P10 NIL.

Data:
0000: 63 00 6c 00 72 00 32 00 c.l.r.2.
0008: 30 00 72 00 33 00 2c 00 0.r.3.,.
0010: 20 00 74 00 65 00 73 00 .t.e.s.
0018: 74 00 61 00 70 00 70 00 t.a.p.p.
0020: 31 00 2e 00 65 00 78 00 1...e.x.
0028: 65 00 2c 00 20 00 31 00 e.,. .1.
0030: 2e 00 30 00 2e 00 30 00 ..0...0.
0038: 2e 00 30 00 2c 00 20 00 ..0.,. .
0040: 34 00 36 00 64 00 38 00 4.6.d.8.
0048: 33 00 30 00 61 00 61 00 3.0.a.a.
0050: 2c 00 20 00 74 00 65 00 ,. .t.e.
0058: 73 00 74 00 61 00 70 00 s.t.a.p.
0060: 70 00 31 00 2c 00 20 00 p.1.,. .
0068: 31 00 2e 00 30 00 2e 00 1...0...
0070: 30 00 2e 00 30 00 2c 00 0...0.,.
0078: 20 00 34 00 36 00 64 00 .4.6.d.
0080: 38 00 33 00 30 00 61 00 8.3.0.a.
0088: 61 00 2c 00 20 00 34 00 a.,. .4.
0090: 34 00 2c 00 20 00 65 00 4.,. .e.
0098: 2c 00 20 00 73 00 79 00 ,. .s.y.
00a0: 73 00 74 00 65 00 6d 00 s.t.e.m.
00a8: 2e 00 69 00 6f 00 2e 00 ..i.o...
00b0: 66 00 69 00 6c 00 65 00 f.i.l.e.
00b8: 6e 00 6f 00 74 00 66 00 n.o.t.f.
00c0: 6f 00 75 00 6e 00 64 00 o.u.n.d.
00c8: 65 00 78 00 63 00 65 00 e.x.c.e.
00d0: 70 00 74 00 69 00 6f 00 p.t.i.o.
00d8: 6e 00 20 00 4e 00 49 00 n. .N.I.
00e0: 4c 00 0d 00 0a 00 L.....

I have narrowed it down to this line of code:

NTidy.TidyDocument HTMLcode = new NTidy.TidyDocument();

It just cant seem to access the NTidy.dll file (which is in the same directory as the exe).

My guess was that it was a permissions problem but I have given full access to most groups. Any thoughts would be welcome.



Re: Visual C# General filenotfoundexception in Win forms application

Peter Ritchie

Can you debug the exception






Re: Visual C# General filenotfoundexception in Win forms application

Pythagrous

Its on a live server so I don't have any debugging applications on the server. I created a new project with one line of code as above and I get the same problem. With the line commented out the form displays ok.




Re: Visual C# General filenotfoundexception in Win forms application

Peter Ritchie

Does ntidy.dll have any other dependencies debugging the exception would give you more details about what the problem is.






Re: Visual C# General filenotfoundexception in Win forms application

Pythagrous

Thanks for your help,

I downloaded dependancy walker http://www.dependencywalker.com/ to see if any other dlls where missing. The file MSJAVA.dll was missing and when I install it the program worked.