"The base class includes the field 'WebUserControl1', but its type (common_WebUserControl) is not compatible with the type of control (ASP.common_webusercontrol_ascx)"
RSS
thanks for the suggestion but this solution is not applicable in vs 2008.. the usercontrol comes with the codefile tag and not the codebehind tag by default.. if u mention the codebehind it throws a compilation error.. is there any other solution?
When You enable, "Use fixed Name namespaces and single assemblies for all files", while publishing a web site. then the building process will consolidate your directory level files into single DLL and merge your classes into the same DLL. Which will create
problems for the websites which are using subdirectories in their project.
That meas, who ever using root folder as one and only directory then there will not be any problem, but once we started using subdirectories then we need to have different DLLs for each files. Otherwise at the runtime it will throw this error.
praddy
Member
4 Points
2 Posts
Re: "The base class includes the field 'WebUserControl1', but its type (common_WebUserControl) is...
Oct 20, 2009 05:44 AM|LINK
thanks for the suggestion but this solution is not applicable in vs 2008.. the usercontrol comes with the codefile tag and not the codebehind tag by default.. if u mention the codebehind it throws a compilation error.. is there any other solution?
vijay_010237...
Participant
1102 Points
537 Posts
Re: "The base class includes the field 'WebUserControl1', but its type (common_WebUserControl) is...
Oct 20, 2009 06:00 AM|LINK
In the reference the path of the control given must be ~/Common/User.ascx.
nagappmking
Member
6 Points
3 Posts
Re: "The base class includes the field 'WebUserControl1', but its type (common_WebUserControl) is...
Dec 11, 2009 11:57 AM|LINK
When You enable, "Use fixed Name namespaces and single assemblies for all files", while publishing a web site. then the building process will consolidate your directory level files into single DLL and merge your classes into the same DLL. Which will create problems for the websites which are using subdirectories in their project.
That meas, who ever using root folder as one and only directory then there will not be any problem, but once we started using subdirectories then we need to have different DLLs for each files. Otherwise at the runtime it will throw this error.
Digitally Signed,
Nagaraj
+919741012395