gpt4 book ai didi

c# - 尝试在 IIS 中启动网站时出错 : Value cannot be null. 参数名称:key

转载 作者:太空狗 更新时间:2023-10-30 00:07:30 26 4
gpt4 key购买 nike

我尝试在 IIS 中启动网站并出现此错误。我不知道是什么原因,因为这个网站是别人创建的,不是我。

堆栈跟踪:

`System.Collections.Generic.Dictionary`2.FindEntry(TKey key) +14370237
System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value) +20
Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.GetLiteralTraceData(LiteralControl literal, TraceData& data) +71
Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.GetTraceData(Object renderedObject) +220
Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.EndRendering(TextWriter writer, Object renderedObject) +47
System.Web.UI.RenderTraceListenerList.EndRendering(TextWriter writer, Object renderedObject) +90
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +12372803
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer) +331
System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer) +114
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +151
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +49
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.Page.Render(HtmlTextWriter writer) +40
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5363`

最佳答案

如果您的服务器控件已过时或版本较旧,PageInspector 通常会起作用。如果您使用的是外部 ASP.NET 服务器控件,请尝试升级它们。

如果解决方法适合您,那么您可以按如下方式禁用页面检查器:

<appSettings>
<add key="PageInspector:ServerCodeMappingSupport" value="Disabled" />
</appSettings>

关于c# - 尝试在 IIS 中启动网站时出错 : Value cannot be null. 参数名称:key,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25132057/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com