IIS 5 & IIS 6
Identity change in Application pool advanced settings.
Last post May 25, 2017 08:28 AM by Yuk Ding
May 17, 2017 06:58 AM|Sunil A M|LINK
I have hosted the application on server and i have selected "DefaultAppPool" as app pool for my applicaiton.
In App Pool->DefaultAppPool->Advanced settings If i select "Identity" property as "ApplicationPoolIdentity", From my applicaiton i am unable to download the excel which is having more data.(Blank excel is downloading because failing to write more than 6000
records to excel).
So if i make App Pool->DefaultAppPool->Advanced settings->Identity as "localSystem", everything is working fine.
So could you please help me to download the excel with all data when pp Pool->DefaultAppPool->Advanced settings->identity as "ApplicationPoolIdentity" Selected.
--Thanks & Regards
May 17, 2017 07:47 AM|Yuk Ding|LINK
The difference between application pool identity and local system is that local system account has high level permission to access the file while application pool identity should be granted with the least permission to access the asp.net application. So
if the local system works fine, you should try to grant read/write permission for application pool identity IIS Apppool\<your app pool name> to access the excel data. I assume the apppool identity doesn't have the permission to access the file out of the range
of your website. You could also use process monitor to figure out where should the application pool identity being granted with permission.
This link provide the instruction to grant permission for application pool identity:
May 17, 2017 07:54 AM|Sunil A M|LINK
Thanks for the reply.
You said, We should try to grant read/write permission for application pool identity IIS Apppool\<your app pool name> to access the excel data.
Can you please explain me, where should i grant read/write permission for application pool identity ?
Where i should provide IIS Apppool\<your app pool name> this ?
May 25, 2017 08:28 AM|Yuk Ding|LINK
Just grant the NTFS permission for application pooli dentity in right click properties->security.
To figure out where should you grant the permission, you could use process monitor to help you figure out the permission issue: