[Debugging] ASP. NET: Compilation error, defined in multiple places

Source: Internet
Author: User
Author: John lauhttp: // sapces.msn.com/members/yollelawfound another bug today. The error message is as follows:Compilation Error Description:An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler error message:Cs1595: 'asp. folder_display_pendding_ascx 'is defined in multiple places; using definition from 'd:/Windows/Microsoft. net/framework/v1.1.4322/Temporary ASP. net files/storm/df9780a4/135f598d/mqa0kutp. 0. CS'

Source error:

Line 32:         Line 33:         public FOLDER_Display_Pendding_ascx() {Line 34:             if ((ASP.FOLDER_Display_Pendding_ascx.__initialized == false)) {Line 35:                 ASP.FOLDER_Display_Pendding_ascx.__initialized = true;Line 36:             }

Source file:D:/Windows/Microsoft. NET/framework/v1.1.4322/Temporary ASP. NET files/storm/df9780a4/135f598d/mqa0kutp. 0.csLine:34. The cause of the error is: I have defined two user controls named folder_display_pendding.ascx. This is not a problem because they are in different directories; however, in one of the folder_display_pendding.ascx controls, I used another control with the same name as its sub-control, as a result, this control does not know whether the referenced sub-control points to its own directory or to another directory.
Solution: Change the name of a control and re-compile it.
I think the primary responsibility for this problem should be borne by Microsoft, because the control is registered and has a specified prefix, which can be different from the definition in <% @ page, why can't I use it the same way?

Line 32:         Line 33:         public FOLDER_Display_Pendding_ascx() {Line 34:             if ((ASP.FOLDER_Display_Pendding_ascx.__initialized == false)) {Line 35:                 ASP.FOLDER_Display_Pendding_ascx.__initialized = true;Line 36:             }

Source file:D:/Windows/Microsoft. NET/framework/v1.1.4322/Temporary ASP. NET files/storm/df9780a4/135f598d/mqa0kutp. 0.csLine:34. The cause of the error is: I have defined two user controls named folder_display_pendding.ascx. This is not a problem because they are in different directories; however, in one of the folder_display_pendding.ascx controls, I used another control with the same name as its sub-control, as a result, this control does not know whether the referenced sub-control points to its own directory or to another directory.
Solution: Change the name of a control and re-compile it.
I think the primary responsibility for this problem should be borne by Microsoft, because the control is registered and has a specified prefix, which can be different from the definition in <% @ page, why can't I use it the same way?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.