cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
trwagner1
Engaged Sweeper
Please bear with me, this is a long post. I'm providing some information to help others with troubleshooting.

I installed a new instance of Lansweeper on a new server.

Installed on Windows 2003 server, R2 SP2. Fully patched. .Net 2.0, fully patched as well. No firewall, no port blocking at all.

SQL 2005 Express installed locally.

Here are the errors I was getting.

In the Lansweeper service error log: (this one repeats about every 2 minutes)

5/6/2008 7:35:08 AM : Database connection successful, starting up service

5/6/2008 7:35:08 AM
System.Net.HttpListenerException: Access is denied
at System.Net.HttpListener.AddAll()
at System.Net.HttpListener.Start()
at Lansweeper31.Listen.DoListen()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
-------------------------------------------------------------------------
5/6/2008 7:36:56 AM : Database connection successful, starting up service

5/6/2008 7:36:56 AM
System.Net.HttpListenerException: Access is denied
at System.Net.HttpListener.AddAll()
at System.Net.HttpListener.Start()
at Lansweeper31.Listen.DoListen()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
-------------------------------------------------------------------------


Windows Event Viewer errors

Application Log: (This repeats about every 30 seconds or so.)

Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 5000
Date: 5/6/2008
Time: 7:38:42 AM
User: N/A
Computer: Lansweeper
Description:
EventType clr20r3, P1 lansweeper31.exe, P2 3.1.3028.22480, P3 4805f4fe, P4 system, P5 2.0.0.0, P6 471ebf0d, P7 1e4a, P8 69, P9 system.net.httplistenerexception, P10 NIL.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
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 6c 00 61 00 6e 00 .l.a.n.
0018: 73 00 77 00 65 00 65 00 s.w.e.e.
0020: 70 00 65 00 72 00 33 00 p.e.r.3.
0028: 31 00 2e 00 65 00 78 00 1...e.x.
0030: 65 00 2c 00 20 00 33 00 e.,. .3.
0038: 2e 00 31 00 2e 00 33 00 ..1...3.
0040: 30 00 32 00 38 00 2e 00 0.2.8...
0048: 32 00 32 00 34 00 38 00 2.2.4.8.
0050: 30 00 2c 00 20 00 34 00 0.,. .4.
0058: 38 00 30 00 35 00 66 00 8.0.5.f.
0060: 34 00 66 00 65 00 2c 00 4.f.e.,.
0068: 20 00 73 00 79 00 73 00 .s.y.s.
0070: 74 00 65 00 6d 00 2c 00 t.e.m.,.
0078: 20 00 32 00 2e 00 30 00 .2...0.
0080: 2e 00 30 00 2e 00 30 00 ..0...0.
0088: 2c 00 20 00 34 00 37 00 ,. .4.7.
0090: 31 00 65 00 62 00 66 00 1.e.b.f.
0098: 30 00 64 00 2c 00 20 00 0.d.,. .
00a0: 31 00 65 00 34 00 61 00 1.e.4.a.
00a8: 2c 00 20 00 36 00 39 00 ,. .6.9.
00b0: 2c 00 20 00 73 00 79 00 ,. .s.y.
00b8: 73 00 74 00 65 00 6d 00 s.t.e.m.
00c0: 2e 00 6e 00 65 00 74 00 ..n.e.t.
00c8: 2e 00 68 00 74 00 74 00 ..h.t.t.
00d0: 70 00 6c 00 69 00 73 00 p.l.i.s.
00d8: 74 00 65 00 6e 00 65 00 t.e.n.e.
00e0: 72 00 65 00 78 00 63 00 r.e.x.c.
00e8: 65 00 70 00 74 00 69 00 e.p.t.i.
00f0: 6f 00 6e 00 20 00 4e 00 o.n. .N.
00f8: 49 00 4c 00 0d 00 0a 00 I.L.....


System Log:

Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 5000
Date: 5/6/2008
Time: 7:42:17 AM
User: N/A
Computer: Lansweeper
Description:
EventType clr20r3, P1 lansweeper31.exe, P2 3.1.3028.22480, P3 4805f4fe, P4 system, P5 2.0.0.0, P6 471ebf0d, P7 1e4a, P8 69, P9 system.net.httplistenerexception, P10 NIL.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
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 6c 00 61 00 6e 00 .l.a.n.
0018: 73 00 77 00 65 00 65 00 s.w.e.e.
0020: 70 00 65 00 72 00 33 00 p.e.r.3.
0028: 31 00 2e 00 65 00 78 00 1...e.x.
0030: 65 00 2c 00 20 00 33 00 e.,. .3.
0038: 2e 00 31 00 2e 00 33 00 ..1...3.
0040: 30 00 32 00 38 00 2e 00 0.2.8...
0048: 32 00 32 00 34 00 38 00 2.2.4.8.
0050: 30 00 2c 00 20 00 34 00 0.,. .4.
0058: 38 00 30 00 35 00 66 00 8.0.5.f.
0060: 34 00 66 00 65 00 2c 00 4.f.e.,.
0068: 20 00 73 00 79 00 73 00 .s.y.s.
0070: 74 00 65 00 6d 00 2c 00 t.e.m.,.
0078: 20 00 32 00 2e 00 30 00 .2...0.
0080: 2e 00 30 00 2e 00 30 00 ..0...0.
0088: 2c 00 20 00 34 00 37 00 ,. .4.7.
0090: 31 00 65 00 62 00 66 00 1.e.b.f.
0098: 30 00 64 00 2c 00 20 00 0.d.,. .
00a0: 31 00 65 00 34 00 61 00 1.e.4.a.
00a8: 2c 00 20 00 36 00 39 00 ,. .6.9.
00b0: 2c 00 20 00 73 00 79 00 ,. .s.y.
00b8: 73 00 74 00 65 00 6d 00 s.t.e.m.
00c0: 2e 00 6e 00 65 00 74 00 ..n.e.t.
00c8: 2e 00 68 00 74 00 74 00 ..h.t.t.
00d0: 70 00 6c 00 69 00 73 00 p.l.i.s.
00d8: 74 00 65 00 6e 00 65 00 t.e.n.e.
00e0: 72 00 65 00 78 00 63 00 r.e.x.c.
00e8: 65 00 70 00 74 00 69 00 e.p.t.i.
00f0: 6f 00 6e 00 20 00 4e 00 o.n. .N.
00f8: 49 00 4c 00 0d 00 0a 00 I.L.....


Interestingly enough, if I open IE to the port number on that PC, I get the error that the page cannot be displayed.


So, a bit of deduction....

I set up the service to use a domain user. I always use service users locally with limited access rights to the system. The user had rights to the database and had rights to the service directory so it could write the error log. I found this out rather quickly...if you use a user who is NOT a local admin, have to grant rights to that service directory.

The service was starting, but then failing. When I added the user to the local admin group, all worked well. When I take it out, doesn't work at all.

Ok, so I think about this a bit. In the previous version, the instructions were to go back to the service properties and re-type the password. What this does is change the local security policy by granting "Log on as service" permissions.

What security rights does that service user need on the local system? I've tried adding a few other security settings, but it appears that (at this point) that service user needs to be a local admin. I don't want to grant that user full rights to the server by adding it to the local admin group. I'd prefer just to grant it rights to only what functions it absolutely has to perform.

Thanks

Ted
2 REPLIES 2
Hemoco
Lansweeper Alumni
According to MSDN : You need Admin rights to register a new HttpListener
Lansweeper wrote:
According to MSDN : You need Admin rights to register a new HttpListener


Well, that was easy. 😉 Thank you for the rapid reply!