Solved

issues with IIS 7.5 Application Pool

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

Accepted Solution

by:
Emmanuel Adebayo earned 200 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
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 show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

728 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now