Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6830171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:35:11+00:00 2026-05-26T22:35:11+00:00

Exception during writing event log on host machine(Windows 2008 R2) hosting WCF Service named

  • 0

Exception during writing event log on host machine(Windows 2008 R2) hosting WCF Service named my machine
from WCFClient (Windows 7) running within domain but on a different machine.

WCF Client is impersonated to access resources on Server.

So far following links have not helped

http://support.microsoft.com/kb/2028427#appliesto

http://forums.asp.net/t/1131903.aspx

http://msdn.microsoft.com/en-us/library/Aa379567 (Detals about SDDL)
http://blogs.dirteam.com/blogs/jorge/archive/2008/03/26/parsing-sddl-strings.aspx (SDDL)

similar question on SO without any answer
https://stackoverflow.com/questions/6456444/allow-wcf-services-writing-to-custom-event-log-under-windows-2008-r2-server

Exception is as follows

System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Cannot open log for source ‘MyService’. You may not have write access. (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.InvalidOperationException: Cannot open log for source ‘MyService’. You may not have write access. —-> System.ComponentModel.Win32Exception: Access is denied

— End of inner ExceptionDetail stack trace —
at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName)
at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName)
at System.Diagnostics.EventLogInternal.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type)
……………….
…………………

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:35:12+00:00Added an answer on May 26, 2026 at 10:35 pm

    Modified ProcesModel’s Identity of AppPool from NetworkService to LocalSystem and everything is working.

    Although this is not public facing site and is a corporate distributed setup which will run within its own domain but one can still argue about security risk.

    and possible solution can be

    To separate the Event writing code from Imperosnation

    or just elevate permission for offending code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a WCF service in Visual Studio 2008 to be hosted on a
During the package phase of a VSeWSS deployment, an exception is thrown. From the
I have a small WCF hosting engine that I am writing that will dynamically
I recently had a problem during the deployment of a windows service. Four computers
I'm getting the error fatal error C9999: *** exception during compilation *** Whenever I
For the attached code, I get the following compile time error : exception during
Description: An unhandled exception occurred during the execution of the current web request. Please
Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException:
In certain cases - especially when an exception escapes a destructor during stack unwinding
Related: Cannot view exceptions thrown during Tomcat startup from Eclipse I have Eclipse setup

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.