将IIS7切换为使用UNCpath作为内容时出现ASP.NET安全exception

我有一个运行IIS7.5的Windows Server 2008 R2,并configuration了适用于ASP.NET的中等信任。 当我从本地内容(例如:C:\ inetpub \ wwwroot)运行网站时,一切工作正常。 当我更改IIS以使用内容的UNCpath(例如:\\ computer \ wwwroot)时,出现以下错误:

Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. 

我试图找出为什么ASP.NET / IIS将允许在使用本地内容时使用SQL调用,而不是在使用UNCpath时。 任何想法,我需要做的正确使用从IIS7的UNCpath?

看来这是我所需要的: http : //support.microsoft.com/ ?id= 320268