Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 7th, 2004, 11:44 AM
Authorized User
 
Join Date: Aug 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Network User Question

I have a .NET Windows Service written to watch one of our network drives for any deletions. I am running this service as a user service seeing I do not have access to the servers and have to run it as myself to get it to work. Now in part of this service it is suppose to log who deleted a folder. The problem is that everytime something is deleted it shows that I deleted it even when it was another user. What is the best way to fix this? I have tried everything from System.Net.DNS.GetHostName, to Enviroment.UserName. Any help would me most appreciated.

Billy
 
Old December 7th, 2004, 05:26 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Not that I am trying to dissuade you from creating new things, but why don't you just set the auditing properties of the folders/files to log for deletion? This is already built into Windows and, unless it does something you don't want it to no sense re-inventing the wheel.

J
 
Old December 8th, 2004, 08:11 AM
Authorized User
 
Join Date: Aug 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I would have gone that route except for the fact that A. I do not have security permissions to do so. B. I do not have access to the logs.

Yea I hate re-inventing the wheel

Billy

 
Old December 29th, 2004, 09:22 AM
Authorized User
 
Join Date: Aug 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Bump






Similar Threads
Thread Thread Starter Forum Replies Last Post
failed for user 'NT AUTHORITY\NETWORK SERVICE' GS ASP.NET 2.0 Professional 5 March 26th, 2007 05:16 AM
user 'NT AUTHORITY\NETWORK SERVICE' GS ASP.NET 2.0 Basics 0 March 25th, 2007 10:58 AM
User permissions on mapped network drive affinity Classic ASP Professional 0 January 12th, 2006 12:22 PM
Getting the network user name dreamzentrue Classic ASP Basics 1 November 18th, 2005 03:34 PM
Login failed for user 'NT INSTANS\NETWORK SERVICE' keysersoze BOOK: ASP.NET Website Programming Problem-Design-Solution 3 April 6th, 2005 01:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.