将IIS 6中的应用程序迁移到7.0

我有Web 2.0应用程序编写的.NET 2.0托pipe在IIS 6.0启用集成授权。 我把这个应用程序移动到Windows Server 2008 R2的IIS 7.5启用Windows身份validation,现在我得到这个错误。 任何帮助?

安全例外

说明:应用程序试图执行安全策略不允许的操作。 要授予此应用程序所需的权限,请联系您的系统pipe理员或在configuration文件中更改应用程序的信任级别。

exception详细信息: System.Runtime.InteropServices.COMException:发生操作错误。

源错误:

在执行当前Web请求期间生成未处理的exception。 有关exception的来源和位置的信息可以使用下面的exception堆栈跟踪来标识。

堆栈跟踪:

[COMException (0x80072020): An operations error occurred.] System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +557 System.DirectoryServices.DirectoryEntry.Bind() +44 System.DirectoryServices.DirectoryEntry.get_AdsObject() +42 System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) +98 System.DirectoryServices.DirectorySearcher.FindOne() +49 [SecurityException: Error authenticating user.] System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171 

您的新环境是否可能具有除FullTrust之外的其他信任级别 ? 如果将它放在web.config中的<system.web>部分下,会发生什么?

 <trust level="Full" originUrl="" />