I'm using a Web Application Project as a control library by wrting User Controls then using a Web Deployment Project to compile the .ascx files into an assembly and deploying that assembly along with the output of the Web Application Project to a Web Site Project that will use the controls. My Web Application Project builds, but my Web Deployment Project fails with the following error:
Error 108 Reference required to assembly 'Digop.EnterpriseControlRoom.CompiledUI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=05356650562eee27' containing the type 'Digop.EnterpriseControlRoom.ModuleControllerLayout'. Add one to your project.
Digop.EnterpriseControlRoom.CompiledUI is an assembly containing custom server controls that I'm using in my User Controls. The Web Application Project has a reference to this assembly. I can reference the controls in the code behind with no problem. I can create user controls in a Web Site Project that use the custom server controls in Digop.EnterpriseControlRoom.CompiledUI. Why can't aspnet_compiler (used by the Web Deployment Project) find the assembly? The .vbproj project file has the reference in it. Do I have to declare the reference somewhere else as well (web.config?)?
I've noticed that in a Web Site Project, where the reference is found, user controls have CodeFile attribute and in the Web Application Project, where the reference is not found, they have a CodeBehind attribute. Does my problem have something to do with that?