Deploy BCS in VS2010 Issue

简介:

Deploy时提示:

Error ocurred in deployment step 'Add Solution': Failed to load receiver assembly 'Microsoft.Office.SharePoint.ClientExentions.dll....

 

这个异常只会在WSS中发生,解决办法是:

前提:两台机子,一台是WSS4.0,另外一台是MOSS2010,VS2010

 

1,从MOSS的服务器,把 

1) Microsoft.Office.Server.dll

2) microsoft.office.sharepoint.clientextensions.dll

3) Microsoft.Office.Sharepoint.ClientExtensions.xml

三个文件从ISAPI folder中(可以从IIS application的vti_bin中explore)复制到 WSS的 ISAPI文件夹中

 

2,把两个dll加入到VS2010的BCS 项目中的Package中去(在designer  Advance 中设置)

 

3,

build--> deploy solution,当有提示说是否修改Web.config, 选择修改。

 

确保你deploy的web application中的web.config有如下字样:

复制代码

   
   
< SafeControl Assembly ="Microsoft.Office.Server.Chart, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace ="Microsoft.Office.Server.WebControls" TypeName ="*" Safe ="True" SafeAgainstScript ="True" />
< SafeControl Assembly ="Microsoft.Office.Server.UI, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace ="Microsoft.Office.Server.WebControls" TypeName ="*" />
< SafeControl Assembly ="Microsoft.Office.Server.UI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace ="Microsoft.Office.Server.WebControls" TypeName ="*" />
< SafeControl Assembly ="Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace ="Microsoft.Office.Server.WebControls.FieldTypes" TypeName ="*" />
< SafeControl Assembly ="Microsoft.Office.Server.UserProfiles, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace ="Microsoft.Office.Server.WebControls" TypeName ="*" />
< SafeControl Assembly ="Microsoft.Office.Server.UserProfiles, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace ="Microsoft.Office.Server.WebControls.FieldTypes" TypeName ="*" />
< SafeControl Assembly ="Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace ="Microsoft.Office.Server.WebControls" TypeName ="*" />
< SafeControl Assembly ="Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace ="Microsoft.Office.Server.WebControls.FieldTypes" TypeName ="*" />
< SafeControl Assembly ="Microsoft.Office.SharePoint.ClientExtensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace ="Microsoft.Office.SharePoint.ClientExtensions.Publishing" TypeName ="TakeListOfflineRibbonControl" />
复制代码

 

 

 

问题解决~~

 

 

PS:WSS4.0 = Microsoft SharePoint Foundation 2010

目录
相关文章
|
7月前
|
数据库 开发工具 开发者
【Python】已解决:You have 18 unapplied migration(s). Your project may not work properly until you apply t
【Python】已解决:You have 18 unapplied migration(s). Your project may not work properly until you apply t
315 0
|
存储 JSON 前端开发
听GPT 讲Alertmanager源代码--cluster/cli/asset等
听GPT 讲Alertmanager源代码--cluster/cli/asset等
91 0
|
C++ iOS开发
报错解决:Could not build wheels for soxr, which is required to install pyproject.toml-based projects(可用)
链接如下:【金山文档】 1-Microsoft Visual C++ Build Tools。找了好久,才找到正确的解决方案,网上一大堆升级setuptools的方法只对少数人管用。注意,虽然我的这个报错内容有点长,但是我感觉和其它的。如果网页提示登录,可以不用登录,直接下载即可。然后打开镜像ios文件(双击即可)错误是一样的解决方案。文件,打开后安装即可。
2857 1
报错解决:Could not build wheels for soxr, which is required to install pyproject.toml-based projects(可用)
|
开发工具 git
gitlab--workflow、rules
gitlab--workflow、rules
|
分布式计算 Spark
《Sparklint a Tool for Identifying and Tuning Inefficient Spark Jobs Across Your Cluster》电子版地址
Sparklint a Tool for Identifying and Tuning Inefficient Spark Jobs Across Your Cluster
109 0
《Sparklint a Tool for Identifying and Tuning Inefficient Spark Jobs Across Your Cluster》电子版地址
关于scrapyd-deploy项目部署时出现environment can only contain strings的解决方法
关于scrapyd-deploy项目部署时出现environment can only contain strings的解决方法
112 0
关于scrapyd-deploy项目部署时出现environment can only contain strings的解决方法
|
Kubernetes Cloud Native 安全
Kubernetes CKS 2021【7】---Cluster Setup - Verify Platform
Kubernetes CKS 2021【7】---Cluster Setup - Verify Platform
Kubernetes CKS 2021【7】---Cluster Setup - Verify Platform
|
开发工具 git Windows
Git 遇到了 early EOF index-pack failed 问题
Git 遇到了 early EOF index-pack failed 问题  今天想 clone 一下 boost 在 github 的 repo,结果在 clone 的过程中遇到了下面的错误。
6343 0
That command depends on command in Target 'XXX': script phase “[CP] Copy Pods Resourc 报错解决方法
That command depends on command in Target 'XXX': script phase “[CP] Copy Pods Resourc 报错解决方法
191 0
|
网络协议 虚拟化