Hi
I recently published my web MVC 4 application on IIS 6. I have created the application pool for my web site. The portal works fine but I have some issues for which I am unable to get the right solution. The issue is
My application is published on " Server 1 " but one of the web page in application has links to excel reports. These excel reports physically exists on " Server 2 ". User gets access denied error when the reports are accessed through the links. All the
users have access to the " Server 2 " reports folder. When I give the domain path as link like
"\\server2\DailyReports\
" ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS
6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access. "
I am not understanding to which ASP.NET user I need to give access to Server 2 or is there any way to access the Server 2 using the user authentication as the user has access to the " server 2 " files.
Please help me. Many Thanks in advance.
Jaya