部署到SharePoint时,ObjectDataSource无法找到类型

Sea*_*ean 5 asp.net sharepoint objectdatasource

将包含ASP.NET页面的功能部署到开发SharePoint服务器时,我收到以下错误:

System.InvalidOperationException:找不到ObjectDataSource'odsYears'的TypeName属性中指定的类型.

我们的.dll正在部署到GAC,我们的页面将被部署到12个配置单元中的相应功能目录中.我们在Sandbox SharePoint服务器上没有收到此错误.我拆解了.dll,以确保正在部署该类,一切看起来都不错.

有没有人知道为什么这不适用于我们的某个SharePoint环境?

谢谢.

Sea*_*ean 4

发现错误,我需要在 SharePoint web.config 文件的“程序集”节点中添加对 .dll 的引用 - 以防其他人遇到此问题。