在解析服务所需的资源期间发生错误 [英] An error occurred during the parsing of a resource required to service
问题描述
分析程序错误
描述:解析为此请求提供服务所需的资源时发生错误。请查看以下特定的解析错误详细信息并相应地修改源文件。
解析器错误消息:基类包含字段'txt_Brn_Name',但其类型(System.Web.UI.WebControls.TextBox)与类型不兼容控制(System.Web.UI.WebControls.DropDownList)。
来源错误:
第740行:
第741行:
第742行:< asp:DropDownList ID =txt_Brn_Namerunat =serverAutoPostBack =真的
第743行:高度=16pxonselectedindexchanged =txt_Brn_Name_SelectedIndexChanged
第744行:宽度=221px>
源文件:/UTILITY/COMPLAINT_UTILITY.aspx行:742
我尝试过:
检查网络的解决方案
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The base class includes the field 'txt_Brn_Name', but its type (System.Web.UI.WebControls.TextBox) is not compatible with the type of control (System.Web.UI.WebControls.DropDownList).
Source Error:
Line 740:
Line 741:
Line 742: <asp:DropDownList ID="txt_Brn_Name" runat="server" AutoPostBack="True"
Line 743: Height="16px" onselectedindexchanged="txt_Brn_Name_SelectedIndexChanged"
Line 744: Width="221px">
Source File: /UTILITY/COMPLAINT_UTILITY.aspx Line: 742
What I have tried:
Checked The Net for a solution
推荐答案
这意味着您的设计器文件存在问题。每个带有代码隐藏文件的asp.net页面也都有一个名为page.aspx.designer.cs的文件。查看该文件。有点不对劲。
或者,根据您的Visual Studio版本,删除designer.cs文件,然后右键单击您的项目并选择Convert to Web Application。这将重新创建任何缺少的设计器文件。我不确定Visual Studio 2015是否仍然存在,因此请在删除文件之前先检查。
This means there is an issue with your designer file. Each asp.net page with codebehind files will also have a file named page.aspx.designer.cs. Look in that file. Something got out of whack.
Or, depending on your version of Visual Studio, delete the designer.cs file, then right-click your project and choose Convert to Web Application. This will recreate any missing designer file(s). I'm not sure if Visual Studio 2015 still has it or not so check first before you delete the file.
这篇关于在解析服务所需的资源期间发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!