Solved

issues with IIS 7.5 Application Pool

Posted on 2013-11-11
4
493 Views
Last Modified: 2013-12-24
We have a legacy web  application (VS 2005/.Net Framework 2.0) that consumes couple of web services and recently moved to IIS 7.5 and their  identity  set to "ApplicationPoolIdentity''. In the code we are creating custom log [Ex:
EventLog.CreateEventSource("myApp", "myAppLog");]  and if any errors it will fill the error entries into custom log in the Event viewer.
When I try to run the application and getting an exception at EventLog.CreateEventSource("myApp", "myAppLog"). It seems the application do not have appropriate permissions and unable to create "custom log" in the Event viewer.

Q1)I changed Application Pool 's  identity from "ApplicationPoolIdentity "to "NetworkService" for the web applciation and  web services  but still getting the same exception at the code for the creation of custom log.

Q2)Because of the above error at creation of custom log, I have manually created custom log with same name in the event viewer  but now getting different exception at creation of folder

Any idea how can I fix above 2 issues (Creation of custom log in the event viewer and creation of folder ) ?

The above 2 issues seems to be issue with App pool permissions.
0
Comment
Question by:ksd123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 17

Accepted Solution

by:
Emmanuel Adebayo earned 200 total points
ID: 39638935
You will need to grant at least read permission for NetworkServices to EventLog/Security key

    Open the Registry Editor:
        Select Start then Run
        Enter regedt32 or regedit

    Navigate/expand to the following key:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security

    Right click on this entry and select Permissions

    Add the Network Service user

    Give it Read permission

regards
0
 

Author Comment

by:ksd123
ID: 39644323
Is this the best approach ? Because I never did this before and as a developer I do not have access to do above steps in the server.Please let me know if there is another approach via UI?
0
 
LVL 23

Assisted Solution

by:Christopher Kile
Christopher Kile earned 200 total points
ID: 39715324
You might try the direct Registry editing code found here.  Personally, I always add EventSources by hand by editing the registry myself, but this code should work well enough.
0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question