473,854 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Security Issue in Service

Hello All,
I've run into a bit of an issue and I was hoping that someone here
could help me. I have inherited a Windows Service written in .Net 2.0
(C#) from a previous employee. It build successfully and I am able to
install it on the target machine via installutil but when I attempt to
run it I receive a security error. First I receive the dialog telling
me that the service could not be started "Error 1053: The service
did..." and then "An unhandled exception of type
'System.Securit y.SecurityExcep tion' occurred in System.dll" . I've
tried running the service on my local machine and opening the CLR
debugger and the errors seems to be related to EventLog.WriteE ntry.
I've found the support article
http://support.microsoft.com/?kbid=918122 and have added the

EventLogPermiss ion eventLogPermiss ion = new
EventLogPermiss ion(EventLogPer missionAccess.A dminister, ".");
eventLogPermiss ion.PermitOnly( ); to no avail.

Any help would be greatly appreciated.

Oct 27 '06 #1
1 1673

"bthubbard" <Br************ *@gmail.comwrot e in message
news:11******** **************@ f16g2000cwb.goo glegroups.com.. .
| Hello All,
| I've run into a bit of an issue and I was hoping that someone here
| could help me. I have inherited a Windows Service written in .Net 2.0
| (C#) from a previous employee. It build successfully and I am able to
| install it on the target machine via installutil but when I attempt to
| run it I receive a security error. First I receive the dialog telling
| me that the service could not be started "Error 1053: The service
| did..." and then "An unhandled exception of type
| 'System.Securit y.SecurityExcep tion' occurred in System.dll" . I've
| tried running the service on my local machine and opening the CLR
| debugger and the errors seems to be related to EventLog.WriteE ntry.
| I've found the support article
| http://support.microsoft.com/?kbid=918122 and have added the
|
| EventLogPermiss ion eventLogPermiss ion = new
| EventLogPermiss ion(EventLogPer missionAccess.A dminister, ".");
| eventLogPermiss ion.PermitOnly( ); to no avail.
|
| Any help would be greatly appreciated.
|

My guess is that your service attempts to create a "private log", only
admininstrator accounts have the right to "create" private logs. If your
service runs as localservice or networkservice (as it should), it won't be
able to create the log, so, you'll have to create the log from another
program, not from within your service.
Willy.

Oct 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1257
by: Jiho Han | last post by:
This seems like a often-asked topic. I created a windows service and installed it on my workstation. The application basically goes out and "receieves" messages from a queue on a remote server. When I use a windows forms app that uses the same components(classes), it works fine but as a service it blocks on GetAllMessages() method due to security issue. However, I am able to create messages, so that rules out any network issues.
5
2799
by: Ken Cox [Microsoft MVP] | last post by:
MS has posted this here: http://www.asp.net/faq/ms03-32-issue.aspx Fix for: 'Server Application Unavailable' Error after Applying Security Update for IE ------------------------------------------------------------------------------- -
5
1987
by: nicholas | last post by:
I have a website designed in ASP.NET In my BIN-folder I have several .NET dll-files: DreamweaverCtrls.dll FreeTextBox.dll WebXelMail.dll Now, for "security" reason my hoster told me it is prohibited to put .dll files on the webspace. So, right now they deleted all the dll files and blocked my bin folder.
0
2454
by: Sam Fields | last post by:
I have found very little regarding the error "Unable to find an entry point named EnumerateSecurityPackagesW in DLL security.dll. ". I have an ASP.NET Web Service being accessed via SSL. I found a website indicating that if any of your .dll names are security.dll, it could cause this issue. I happened to have named the service that -- so I renamed the service's dll, and it still didn't work. I decided to start from scratch, and built...
0
1075
by: Scanner2001 | last post by:
I have a web service, which in turn uses a dll that is installed on the same server. The dll is deployed to the GAC. One of the purposes of the dll is to create a file, then write some information to the file. The file location is not in web directory. This works when it run the web service on windows 2000 server, but does not work on a windows 2003 server. My suspicion is that this is a security/privilege issue. The web service is not...
0
2232
by: Charles Leonard | last post by:
I am having yet another issue with Windows Server 2003. This time, the web service (a file import web service) appears to run except for one odd message: "ActiveX component can't create object". There are no other statements to indicate what object cannot be created. Otherwise, everything on the test Windows Server 2003 works fine—all import data updates correctly. Unfortunately, my normal development environment is not Windows...
3
20313
by: Grant Schenck | last post by:
I have a simple remoting sample using IPCChannel. If I run the server code as a console app my client can connect just fine. However, if I the same server code runs in a service, the client gets a RemotingException of "Failed to connect to an IPC Port: Access is denied". The Access is denied changes if my service isn't running to "The system cannot find the file specified" so the I think I'm connecting but being denied due to some type...
1
3427
by: WebServiceSecurity | last post by:
The issue involves the following technologies: - 1. .NET 2.0 Framework 2. WSE2.0 (WS-Security) 3. X.509 certificates 4. BEA Weblogic 8.1.5
8
13347
by: =?Utf-8?B?TWFuanJlZSBHYXJn?= | last post by:
Hi, I created a web service and hosted it in Windows Services. It is working fine. Now I am trying to implement the X509 certificates for message layer security. But it is throwing the following exception: An unhandled exception of type 'System.ServiceModel.Security.SecurityNegotiationException' occurred in mscorlib.dll
0
9901
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11024
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10679
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10756
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10371
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7914
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5741
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4159
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.