【问题标题】:load sharepoint 2007 webpart to microsoft online emea?将sharepoint 2007 webpart 加载到microsoft online emea?
【发布时间】:2011-08-31 05:45:17
【问题描述】:

我在 Visual Studio 2007 中实现了 webpart“Hello World”。 在项目中有 webpart.cs、webpart.xml 和 webpart.webpart 文件。 我建立了洞项目,并尝试在我位于 emea microsoft 服务器上的在线共享点项目中加载webpart.webpart。 加载以下内容:webpartcatalog->load->"webpart.webpart"。 它加载好了。 但是当我想在 aspx 页面中添加它时,会出现以下错误 ->

"Cannot import webpart webpart"

请帮我加载“Hello World”webpart。 有webpart的xml:

  <?xml version="1.0" encoding="utf-8" ?> 
- <webParts>
- <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
- <metaData>
- <!-- 
      The following Guid is used as a reference to the web part class, 
      and it will be automatically replaced with actual type name at deployment time.


  --> 
  <type name="df39a6a8-c663-4f78-becb-f09748d31927" /> 
  <importErrorMessage>Cannot import WebPart1 Web Part.</importErrorMessage> 
  </metaData>
- <data>
- <properties>
  <property name="Title" type="string">WebPart1 Web Part</property> 
  <property name="Description" type="string">WebPart1 Description</property> 
  </properties>
  </data>
  </webPart>
  </webParts>

【问题讨论】:

    标签: c# visual-studio-2008 sharepoint load web-parts


    【解决方案1】:

    正如您所说,您刚刚上传了 webpart 文件,但这还不够。您必须在 gac 中部署 dll 并使用安全控制条目更新 web.config。

    更简单的选择是使用 wsp。使用 stsadm 命令添加解决方案,将其部署到要激活该功能的站点集合。你的 webpart 就可以使用了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-11-17
      • 2011-09-28
      • 2017-07-30
      • 2011-03-06
      • 1970-01-01
      • 2011-06-13
      • 2010-10-12
      • 2011-09-26
      相关资源
      最近更新 更多