Solved

issues with IIS 7.5 Application Pool

Posted on 2013-11-11
4
490 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of 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…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

685 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