ASP.NET (VB) 应用程序以前可以运行,但现在在 2008 R2 IIS 7.5 上显示“过载解析失败”

ASP.NET (VB) 应用程序以前可以运行,但现在在 2008 R2 IIS 7.5 上显示“过载解析失败”

我正在将旧版 ASP.NET 2.0 (VB) 应用程序从旧的 Windows 2003 IIS 6 服务器迁移到 Windows 2008 R2 IIS 7.5。该应用程序在 Win 2003 上运行良好,在新服务器上“基本”运行良好...

然而,当我尝试使用 Web 应用程序的文件附件功能时,收到下面奇怪的错误,我相信该功能使用了 Telerik 的 RadUpload 控件。

问题是,这个特定的应用程序和文件附件功能(完全相同的 .dll)已验证可在 Win 2008 IIS 7.5 上运行,而且我已仔细检查了安装,一切似乎都很好。也许是 IIS 设置或 .NET/VB 编译存在问题?

有人见过这个或者类似的东西吗?

Overload resolution failed because no Public 'Item' is most specific for these arguments:
  'Public Property Item(index As Integer) As System.Object':
    Not most specific.
  'Public Property Item(name As String) As System.Object':
    Not most specific. - /error.aspx <- http://appsrv001/error.aspx?aspxerrorpath=/dialog/dlgAdvUpLoad.aspx

Exception of type 'System.Web.HttpUnhandledException' was thrown. (System.Reflection.AmbiguousMatchException)
-----------------------------------------
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.error_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-----------------------------------------
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Reflection.AmbiguousMatchException: Overload resolution failed because no Public 'Item' is most specific for these arguments:
  'Public Property Item(index As Integer) As System.Object':
    Not most specific.
  'Public Property Item(name As String) As System.Object':
    Not most specific.
at Microsoft.VisualBasic.CompilerServices.OverloadResolution.ResolveOverloadedCall(String MethodName, List`1 Candidates, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, BindingFlags LookupFlags, Boolean ReportErrors, ResolutionFailure& Failure)
at Microsoft.VisualBasic.CompilerServices.OverloadResolution.ResolveOverloadedCall(String MethodName, MemberInfo[] Members, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, BindingFlags LookupFlags, Boolean ReportErrors, ResolutionFailure& Failure)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.ResolveCall(Container BaseReference, String MethodName, MemberInfo[] Members, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, BindingFlags LookupFlags, Boolean ReportErrors, ResolutionFailure& Failure)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
at APP.LegacyApp.Web._error.ImgExportPDF_Click(Object sender, ImageClickEventArgs e)
at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)
at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.error_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

答案1

通过使用服务器管理器删除 Web 服务器 (IIS) 角色并重新安装,问题得到解决。也许是角色服务组件不正确造成的问题。

相关内容