Last post May 27, 2018 12:36 PM by human2x
May 26, 2018 12:07 PM|human2x|LINK
I can't get rid of errors that are shown when I publish my website.
Visual Studio 2015
These errors are not errors in fact.
For example :
Error 'hdnCat_Numbers' is not declared. It may be inaccessible due to its protection level.
Error 'hdnToggle' is not declared. It may be inaccessible due to its protection level.
while these variables are form controls that are 100% declared in the design page (aspx).
May 26, 2018 08:44 PM|Nasser Malik|LINK
If this isn't appearing on your machine than it might be Framework issue. Kindly follow link
May 27, 2018 09:58 AM|human2x|LINK
This problem happens only in one page. Other pages are having similar codes and they have no errors.
This page is the last page I worked on.
It is frustrating.
I tried changing the framework from 4.5 to 4.5.1 then to 4.0 but it is not solved.
May 27, 2018 11:02 AM|Nasser Malik|LINK
May 27, 2018 12:36 PM|human2x|LINK
Thanks Malik for your support.
I solved the issue.
Actually I having a page called "parts.aspx" with code page called "parts.aspx.vb".
At the same time , I had a copy of the page "parts.aspx" . It points to the same above "parts.aspx.vb".
There are many controls I added in the new "parts.aspx" page. The code file "parts.aspx.vb" makes errors because the old page "parts.aspx" doesn't have these controls.
For example, the hidden control variable "hdnToggle" is found in the new version of the "parts.aspx" file but not in the old one.
Sorry for disturbing you all.
Thanks again to you Malik