关于安装:Sitecore SSM-轮询模块无法安装

Sitecore SSM - Poll Module failing to install

在轮询模块(Sitecore 6.2软件包:1.1.0 OMS版本)的安装过程中,发生错误,阻止安装完成。

我从这里下载了软件包:
http://trac.sitecore.net/投票

我们正在使用:Sitecore.NET 6.2.0(修订版100507)

我已尝试重复安装几次,在出现提示时还原数据库并覆盖文件,但仍然遇到以下粘贴的错误。

发生以下错误:

System.TypeLoadException:无法从程序集" Sitecore.Analytics"中加载类型" Sitecore.Analytics.Data.AnalyticsDataContext",版本= 1.0.0.0,区域性=中性,PublicKeyToken =空。 Sitecore.Modules.OMSPoll.Domain.PollEventHandler.OnItemCreating(Object) )在Sitecore.Events.Event.EventSubscribers.RaiseEvent(字符串eventName,Object []参数,EventResult结果)在Sitecore.Events.Event.EventSubscribers.RaiseEvent(字符串eventName,Object []参数)在Sitecore.Events.Event.RaiseEvent Sitecore.Events.Event.RaiseItemCreating(对象发送者,ItemCreatingEventArgs args)处的(String eventName,Object []参数)在Sitecore.Data.Engines.EngineCommand 2.CanExecute() at Sitecore.Data.Engines.EngineCommand 2.Execute()在Sitecore.Data.Engines.DataEngine.CreateItem(字符串itemName,项目目标,ID templateId,ID newId)在Sitecore.Data.Managers.ItemProvider.DoCreateItem(字符串项目我,Sitecore.Data.Managers.ItemProvider.CreateItem(字符串itemName,Item目的地,ID目的地,ID templateId,ID newId,SecurityCheck的SecurityCheck),位于Sitecore.Data.Managers.ItemManager.CreateItem(字符串itemName,项目目的地,ID模板ID,ID newId) ,Sitecore.Data.Managers.ItemManager.CreateItem(String itemName,Item目的地,ID模板ID,ID newId)在Sitecore.Nexus.Data.DataCommands.AddFromTemplateCommand。(String itemName ,Sitecore.Nexus.Data.DataCommands.AddFromTemplateCommand.Execute(Sitecore.Nexus.Data.NexusDataApi.AddFromTemplate(ID templateId,Item)上的ID目标ID,ID templateId,ID newId) destination,字符串项名称,ID newId)在Sitecore.Install.Utils.EntrySorter.Populate(ISink 2.Execute() at Sitecore.Data.Engines.DataEngine.AddFromTemplate(String itemName, ID templateId, Item destination, ID newId) at Sitecore.Install.Items.ItemInstaller.CreateLightweightItem(ItemReference item, XmlVersionParser parser) at Sitecore.Install.Items.ItemInstaller.InstallItem(BehaviourOptions installOptions, Item targetItem, ItemReference item, XmlVersionParser parser) at Sitecore.Install.Items.ItemInstaller.GetVersionInstallMode(PackageEntry entry, ItemReference reference, XmlVersionParser parser, ItemInstallerContext context) at Sitecore.Install.Items.ItemInstaller.InstallEntry(PackageEntry entry) at Sitecore.Install.Items.ItemInstaller.Flush() at Sitecore.Install.Items.LegacyItemUnpacker.Flush() at Sitecore.Install.Framework.SinkDispatcher.Flush() at Sitecore.Install.Utils.EntrySorter.Flush() at Sitecore.Install.Framework.EntryBuilder.Flush() at Sitecore.Install.Zip.PackageReader.Populate(ISink 1接收器在) > 1个来源,IProcessingContext Sitecore.Install.Installer.InstallPackage(字符串路径,IProcessingContext上下文)在Sitecore.Shell.Applications.Install.Dialogs.InstallPackage.InstallPackageForm.AsyncHelper.b__0()在Sitecore.Shell.Applications.Install.Dialogs.InstallPackage中。 InstallPackageForm.AsyncHelper.CatchExceptions(ThreadStart开始)

我可以安装本地,但是当我使用民意测验分支创建新的民意测验时出现以下错误:

type类型Sitecore.Analytics.Data.AnalyticsDataContext向左装载装配组件Sitecore.Analytics,版本= 1.0.0.0,文化=中性,PublicKeyToken =空。

正文{font-family:" Verdana"; font-weight:normal; font-size:.7em; color:black;}
p {font-family:" Verdana"; font-weight:normal; color:black; margin-top:-5px}
b {font-family:" Verdana"; font-weight:bold; color:black; margin-top:-5px}
H1 {font-family:" Verdana"; font-weight:normal; font-size:18pt; color:red}
H2 {font-family:" Verdana"; font-weight:normal; font-size:14pt; color:maroon}
pre {font-family:" Lucida Console"; font-size:.9em}
.marker {font-weight:粗体;颜色:黑色;文本装饰:无;}
.version {颜色:灰色;}
.error {margin-bottom:10px;}
.expandable {文本修饰:下划线; font-weight:bold;颜色:海军蓝;光标:手; }

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<body bgcolor="white">

        <span>Serverfout in toepassing /.<hr width=100% size=1 color=silver>

         Kan type Sitecore.Analytics.Data.AnalyticsDataContext niet laden vanuit assembly Sitecore.Analytics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. </span>

        <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif">

         Beschrijving: Er is een onverwerkte uitzondering opgetreden tijdens het uitvoeren van de huidige webaanvraag. Raadpleeg de stacktracering voor meer informatie over deze fout en de oorsprong ervan in de code.

       

         Details van uitzondering: System.TypeLoadException: Kan type Sitecore.Analytics.Data.AnalyticsDataContext niet laden vanuit assembly Sitecore.Analytics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.

        Fout in bron:

        <table width=100% bgcolor="#ffffcc">
           <tr>
              <td>
                  <wyn>

Er是人们在gegenereerd tijdens het uitvoeren van de huidige webaanvraag上的作品。范德韦斯特兰德的追随者范德·埃特桑德斯港的堆栈信息在范德伊特桑德斯河畔的奥尔普朗山脉上通行。

zh-cn.pb>

1
2
3
4
5
6
7
8
9
10
11
12
              </td>
           </tr>
        </table>

       

        Stacktracering:

        <table width=100% bgcolor="#ffffcc">
           <tr>
              <td>
                  <wyn>[cc]

[TypeLoadException:Kan类型为Sitecore.Analytics.Data.AnalyticsDataContext。
Sitecore.Modules.OMSPoll.Domain.PollAnalyticsDataProvider.PollExists(String pollName)0
Sitecore.Modules.OMSPoll.Domain.PollEventHandler.CheckIsPollItemNameDuplicate(String pollName)128
Sitecore.Modules.OMSPoll.Controls.OMSPollWizardForm.get_IsPollExists()93
Sitecore.Modules.OMSPoll.Controls.OMSPollWizardForm.ActivePageChanging(String pageFrom,String


此问题的解决方案是:

Sitecore CMS 6.2.0 rev.091012引入了一些重大的API更改,因此您不能直接从代码中使用LINQ to SQL。这意味着您必须针对自己版本的Sitecore重建共享源模块。

要针对自己的版本进行重建,这就是我所做的:

  • 在VS中打开"轮询模块"项目,然后重建OMSPoll。 dll文件
  • 在Visual Studio中打开共享的源代码
  • 从程序集引用(Sitecore.Client,Sitecore.Kernel)中删除所有与Sitecore相关的Dll。
  • 对OMSPoll.dll的新建版本的引用
  • 对您的Sitecore项目中使用的Sitecore.Client和Sitecore.Kernel的引用
  • 引用正确的Sitecore.Analytics.dll
  • 重建共享源模块(民意测验)
  • 打开默认的package.zip,并用新构建的dll替换其中的dll。
  • 安装套件

遇到这个问题,祝你好运!


看起来您尚未在解决方案上安装OMS,这是您要做的先决条件。

在任何Sitecore版本(我知道)上,默认情况下均未安装Sitecore OMS。

在此处下载链接:Sitecore OMS在SDN上下载