C# HTTP错误500.19-内部服务器错误--由指定用户访问共享时发生IIS

C# HTTP错误500.19-内部服务器错误--由指定用户访问共享时发生IIS,c#,asp.net,iis,iis-7,C#,Asp.net,Iis,Iis 7,我在服务器1上创建了一个虚拟目录,以访问另一台服务器上的共享位置共享。将URL指定为 共享位置包含的文件夹很少 通过位于server1上的另一个应用程序,我需要访问URL 我没有使用传递应用程序,而是使用特定的用户凭据连接到共享位置。还验证了用户对共享位置具有完全访问权限 但是当访问URL时,我发现下面有一个错误 HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the

我在服务器1上创建了一个虚拟目录,以访问另一台服务器上的共享位置共享。将URL指定为 共享位置包含的文件夹很少

通过位于server1上的另一个应用程序,我需要访问URL

我没有使用传递应用程序,而是使用特定的用户凭据连接到共享位置。还验证了用户对共享位置具有完全访问权限

但是当访问URL时,我发现下面有一个错误

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

Module IIS Web Core 
Notification BeginRequest 
Handler Not yet determined 
Error Code 0x8007052e 
Config Error Cannot read configuration file  
Config File \\?\UNC\server1.com\alias\upload\web.config 
Requested URL http://server1.com/alias/
Physical Path \\server2\\share
Logon Method Not yet determined 
Logon User Not yet determined 
 Config Source
-1: 
    0:
当我指定我的windows登录凭据时,不使用指定的用户凭据,而是访问URL时没有问题。
请提供帮助

您应该检查web.config中的拼写错误和xml有效性。您应该检查IIS_用户组是否有权访问我忘记提到的web.config所在的文件夹。虚拟目录未配置为应用程序。