I've been trying to leverage sub-Web Application Project option when creating a business module. However, when I try configuring a ObjectContainerDataSource on a page inside the sub-Web Application Project, it only shows types from the Microsoft.Practices.Web.UI.WebControls assembly. The ObjectContainerDataSource works as expected on the root site, but not in any of the sub web applications. I've ensured that there is a project reference to my business module project.
Here are a few things I've tried to do to resolve the issue without success:
I've tried manually typing the type name, but when refreshing the schema, I get the following exception:
Cannot get type. Error: Could not load type "MySolution.MyModule.BusinessEntity" from assembly "Microsoft.VisualStudio.Web, Version=..."
I've tried adding an entry in the <assemblies> element of the <system.Web> configuration section in the web.config of my sub-web application project.
I've tried adding the base website's bin directory to the reference paths section in the projects properties.
I've posted a discussion on this issue: