webforms - Parsing error after editing Asp.Net User Control markup -
i have asp.net webforms (.net 4.0, visual studio 2013) user control works right now. uses asp label controls , resource tags bring text in based on current user's language/culture setting.
i need add text it.
however, adding new asp label automatically creates parsing error. once error has appear, cannot delete label. have revert markup , designer code last commit. seems me must corrupted in designer code, have no idea start looking.
below parsing error:
description: error occurred during parsing of resource required service request. please review following specific parse error details , modify source file appropriately. parser error message: not load type 'onlineregistration.confirmation'. source error: line 1: line 2: <%@ control language="vb" autoeventwireup="false" codebehind="confirmation.ascx.vb" inherits="onlineregistration.confirmation" %> line 3: line 4: <asp:label source file: /webpages/confirmationuctl/confirmation.ascx line: 2
here markup of user control
<%@ control language="vb" autoeventwireup="false" codebehind="confirmation.ascx.vb" inherits="onlineregistration.confirmation" %> <asp:label id="litconfirmation" runat="server" meta:resourcekey="litconfirmationresource1"/> <p> <asp:label id="litconfirmationthankyou" runat="server" meta:resourcekey="litconfirmationthankyouresource1"/> <strong>  <asp:label id="litconfirmationnumber" runat="server" meta:resourcekey="litconfirmationnumberresource1"/> </strong>.  <asp:label id="litconfirmationprocessing" runat="server" meta:resourcekey="litconfirmationprocessingresource1"/> </p> <asp:label id="label1" runat="server" text="label" /> <p> <asp:label id="litconfirmationvnc" runat="server" meta:resourcekey="litconfirmationvncresource1"/> </p> <p> <asp:label id="litconfirmationquestions" runat="server" meta:resourcekey="litconfirmationquestionsresource1"/> </p> <p> <asp:label id="literrorsaving" runat="server" meta:resourcekey="literrorsavingresource1" cssclass="hide"/> </p> <asp:hyperlink id="linkprintvra" runat="server" meta:resourcekey="linkprintvraresource1" cssclass="hide"/>
all add this:
<asp:label id="label1" runat="server" text="label" />
and compile , run. , parsing error appears.
any idea start looking bug?
i still don't know why happened. went theory somehow designer.vb file corrupt.
so copied contents of markup , code behind file text file.
then deleted whole user control project , saved , cleaned application.
then added user control in scratch , saved.
finally, copied contents of markup , code behind user control, saved , compiled.
now adding new controls markup working fine.
Comments
Post a Comment