开发者

ObjectDataSource cannot find type when deployed to SharePoint

I'm receiving the following error when deploying a feature containing ASP.NET pages to our development SharePoint servers:

System.InvalidOperationException: The type specified in the TypeName property of ObjectDataSource 'odsYears' could not be found.

Our .dll is being deployed to the GAC and our pages are being deployed to the the respective Features directory in the 12 hive. We are not receiving this error on our Sandbox SharePo开发者_如何学运维int server. I disassembled the .dll to be sure the class was being deployed and everything looked ok.

Does anyone have any ideas on why this would not work on one of our SharePoint environments?

Thanks.


Found the error, I needed to add a reference to our .dll in the "assemblies" node of the SharePoint web.config file - in case anyone else comes across this.


ObjectDataSource is by default disabled in the SafeControls section of the web.config.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜