473,405 Members | 2,171 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Application fails to create custom eventlog on 2008 server even when run as admin

Hi,
I have a C++ Dll which only does logginG of data in to my custom log - say 'Log1'. This Dll is used by many vb.net dlls/applications for logging their corresponding data. All the applications and Dlls were earlier in .net 2003 and now migrated to 2010(Framework 4).
The custom log is not present in the system yet. SO my Dll has to create the log first befor adding the data and that is where it seems to fail.
This when tested on windows server 2008(Server also migrated from 2003 to 2008)throws a security exception.
The error reads as this - ' THE SOURCE WAS NOT FOUND.BUT SOME OR ALL EVENT LOGS COULD NOT BE SEARCHED.TO CREATE THE SOURCE,YOU NEED PERMISSION TO READ ALL EVENT LOGS TO MAKE SURE THE NAME IS UNIQUE. INACCESSIBLE LOGS : SECURITY'
Jan 11 '13 #1
1 1938
Banfa
9,065 Expert Mod 8TB
From StackOverflow

When you write the event log from any application, the event source needs to be already created, or the application itself will try to create it before writing to it. Unfortunately, creating an event source is an action which requires local admin priveledges.

So you can do two things:

pre-create the event source
make sure the user which your biztalk host is running as is in local admins (bad)

To pre-create the event source is a nicer option. You can do this via the powershell command

New-EventLog -LogName "Application" -Source "MyEsb"
Jan 11 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: John Lau | last post by:
Hi, I am looking at the MS KB Article 306355: HOW TO: Create Custom Error Reporting Pages in ASP.NET by Using Visual C# .NET This article describes how to redirect errors to a custom html...
2
by: Marauderz | last post by:
OK this just seems to be a common question being asked around here, I've tried Google Grouping the question but I still haven't came up with a solution yet. So here goes... I'm getting the...
15
by: joun | last post by:
Hi all, i want to create in my asp.net application a custom server variable, so i can retrieve later in other pages (even asp or perl) with request.servervariables("HTTP_mycustomvariable") ...
8
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
5
by: Josef Brunner | last post by:
Hi everybody, I tried to publich my application to a simple file location. (no online publishing or anything like that.) Running the setup that VS generates for me works fine on my machine...
2
by: Alan Silver | last post by:
Hello, I have a pair of radiobuttons on a form, used to select the type of search someone is to do... <asp:RadioButton ID="rdbLastNDays" Text="Show tips for the last" GroupName="rbgSearch"...
1
by: Miguel Isidoro | last post by:
Hi all, I am developing a Custom ASP.NET Server Controls that generates a form based on a xml file and want to include RequiredFieldValidator for mandatory questions. I am using the following...
0
by: Steve Harp | last post by:
Hi All, I've just been severely bitten by not having a current Emergency Recovery Disk for one of my Windows 2000 Servers. I know that I can use the Windows Backup utility to create an ERD. ...
0
by: th12345 | last post by:
Hi All, I want to create custom excel sheet page in my web application like how Google spreadsheet was created. I do not want load data into Microsoft excel sheet. Please give some idea...
4
by: comtrendz | last post by:
Application fails with error: 80040154 when attempting to open a doc in Word 2010. I have a VB.Net app that uses word to open documents. I am running VS 2008 on my PC with Office 2003. When I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.