We have developed ASP.NET (4.0 Framework) web application named as SampleWebApp  and deployed in IIS7.
Instead of placing the web application for deployment in Inetput folder of the Server we are placing it in sharepath of another server. 
Below are the details for the scenario: 
Server Name where IIS is installed : xyz1000 
Physical Sharepath  where we place the published ASP.NET Application :\\xyz1111\SharePath\ SampleWebApp  
Authentication Mode : Windows 
In the AppPool Identity we have tried with ApplicationPoolIdentity,NetworkService,LocalService and LocalSystem 
we are getting the below error when we request Default.aspx of the SampleWebApp Application 
***Error Summary****
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information
...

Go to the complete details ...