English 中文(简体)
Sitecore SSM-轮询模块安装失败
原标题:Sitecore SSM - Poll Module failing to install

在轮询模块(Sitecore 6.2软件包:1.1.0 OMS版本)的安装过程中,出现错误,无法完成安装。

I downloaded the package from here: http://trac.sitecore.net/Poll

我们使用的是:Sitecore.NET 6.2.0(修订版100507)

我已经多次尝试重复安装,恢复数据库并在提示时覆盖文件,但仍然会遇到粘贴在下面的错误。

出现以下错误:

System.TypeLoadException:无法从程序集Sitecore.Analytics.Data.AnalyticalsDataContext加载类型Sitecore.AAnalytics,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null。位于Sitecore.Modules.OMSPoll.Domain.PollAnalyticsDataProvider.PollExists(字符串pollName)位于Sitecore.Modules.OOMSPoll.DomainPollEventHandler.CheckIsPollItemNameDuplicate(字符串poll名称)位于Sitecore.Modules.OMSPoll.Domain.PollEventHandler.OnItemCreating(对象发送器,EventArgs参数)位于Sitecore.Events.EventSubscriber.RaiseEvent(String eventName,Object[]parameters)at Sitecore.EEvents.Event.RiseEvent(String eventName,Object]]parameters(Object sender,TEventArgs e)位于Sitecore.Data.Enginers.EngineCommand<code>2.CanExecute()位于Sitecore。Data.Enginers.cataEngine.CreateItem(String itemName,Item destination,ID templateId,ID newId)位于。Data.Managers.ItemProvider.DoCreateItem(字符串itemName,项目目标,ID templateId,ID newId)位于Sitecore.Data.Managers.ItemProvider.CreateItem(String itemName,Item destination,ID templateId,ID newId,SecurityCheck SecurityCheck)位于Sitecore.Data.Managers.EtemManager.CreateItemSitecore.Nexus.Data.DataCommands.AddFromTemplateCommand.(String itemName,Item destination,ID templateId,ID newId)在Sitecore.Nextus.DataCommands.AddFromTemplateCommand。在Sitecore.Nexus.Data NexusDataApi.AddFromTemplate(ID templateIdSitecore.Install.Items.ItemInstaller.InstallItem处的Sitecore.Data.Enginers.DataCommands.AddFromTemplateCommand.DoExecute(BehaviourOptions installOptions,Item targetItem,ItemReference项,XmlVersionParser解析器)位于Sitecore.Install.Items.ItemInstaller.GetVersionInstallMode(PackageEntry条目,ItemReference引用,XmlVersion解析器解析器,ItemInstallerContext上下文)位于Sitecore.Install.Item.ItemInstaller.InstallEntry(PackageEntry条目的PackageInstaller.Flush)Sitecore.Install.Items.LegacyItemUnpacker.Flush()(位于Sitecore.Iinstall.Framework.SinkDispatcher.Flush)(位于Sitecore.Install.Utils.EntrySorter.Flush(字符串路径,ISource1源,IProcessingContext上下文)在Sitecore.Install.Installer.InstallPackage(字符串路径、IProcessing上下文上下文)在Sitecore.Shell.Applications.Install.Dialogs.InstallPackage.InstallPackageForm.AsyncHelper.b_0()在Sitecore.Shell.Applications.Install.DDialogs.InstallPackage.EnstallPackageForm.AsyncHelper.CatchExceptions(ThreadStart启动)

本地我可以安装,但当我使用轮询分支创建新的轮询时,会出现以下错误:

Kan type Sitecore.Analytics.Data.AnalyticsDataContext niet laden vanuit assembly Sitecore.Analytics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. body {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: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }

<body bgcolor="white">

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

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

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

        <b> Beschrijving: </b>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.

        <br><br>

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

        <b>Fout in bron:</b> <br><br>

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

这是一个很好的例子。在现场追踪的过程中,我们会在现场收集信息。

              </td>
           </tr>
        </table>

        <br>

        <b>Stacktracering:</b> <br><br>

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

[TypeLoadException: Kan type Sitecore.Analytics.Data.AnalyticsDataContext niet laden vanuit assembly Sitecore.Analytics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.] 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& pageTo) +97 Sitecore.Web.UI.Pages.WizardForm.set_Active(String value) +80 Sitecore.Web.UI.Pages.WizardForm.Next() +92 Sitecore.Web.UI.Pages.WizardForm.OnNext(Object sender, EventArgs formEventArgs) +40 Sitecore.Web.UI.HtmlControls.Button.DoClick(Message message) +40

[TargetInvocationException: Het doel van een aanroep heeft een uitzondering veroorzaakt.] System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0 System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +71 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +261 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29 Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj) +45 Sitecore.Reflection.ReflectionUtil.CallMethod(Type type, Object obj, String methodName, Boolean includeNonPublic, Boolean includeInherited, Boolean includeStatic, Object[] parameters) +87 Sitecore.Reflection.ReflectionUtil.CallMethod(Object obj, String methodName, Boolean includeNonPublic, Boolean includeInherited, Object[] parameters) +43 Sitecore.Web.UI.HtmlControls.Component.HandleMessage(Message message) +133 Sitecore.Web.UI.HtmlControls.Control.HandleMessage(Message message) +497 Sitecore.Shell.Framework.Commands.ClientEventCommand.SendEventMessage() +105 Sitecore.Shell.Framework.Commands.ClientEventCommand.Execute(CommandContext context) +10 Sitecore.Web.UI.Sheer.ClientPage.RaiseEvent() +64 Sitecore.Web.UI.Sheer.ClientPage.OnPreRender(EventArgs e) +268 System.Web.UI.Control.PreRenderRecursiveInternal() +80 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

              </td>
           </tr>
        </table>

        <br>

        <hr width=100% size=1 color=silver>

        <b>Versiegegevens:</b>&nbsp;Microsoft .NET Framework Versie:2.0.50727.4206; ASP.NET Versie:2.0.50727.4209

        </font>

</body>

最佳回答

这个问题的解决方案是:

Sitecore CMS 6.2.0版本091012引入了一些突破性的API更改,因此您无法从代码中直接使用LINQ to SQL。这意味着您必须根据自己的Sitecore版本重新构建共享源模块。

为了根据自己的版本进行重建,我这样做了:

  • Open the Poll Module Project in VS and rebuild the OMSPoll. dll
  • Open the Shared Source code in Visual Studio
  • Remove all Sitecore related Dll s from the assembly references (Sitecore.Client, Sitecore.Kernel)
  • Reference to the newly build version of the OMSPoll.dll
  • Reference to the Sitecore.Client and Sitecore.Kernel that is being used in your Sitecore project
  • Reference to the correct Sitecore.Analytics.dll
  • Rebuild the Shared Source Module (Poll)
  • Open the default package.zip and replace the dll s inside by the ones that you ve newly build.
  • Install the package

每当你遇到这个问题时祝你好运!

问题回答

看来您的解决方案中尚未安装OMS,这是您尝试执行操作的先决条件。

Sitecore OMS默认情况下不会安装在任何Sitecore版本上(据我所知)。

点击此处下载链接:站点核心OMS在SDN上下载





相关问题
Correct place to install demostration projects?

With the new Windows 7 restrictions (well, new to Windows Vista anyways), we can no longer install demo projects to %ProgramFilesFolder%OurApplicationdemo since restricted users will not be able to ...

.deb package conffiles problem

I am distributing one of my applications using a .deb package, but have a problem relating to one of the files. The distribution includes a database file which is constantly updated by the app, on a ...

Closing an application using WiX

In creating my WiX installer I have run into an issue when trying to close an application before installing the upgrade. Below is an example of how I am attempting to do this. <util:...

VS 2005 Setup - HKCU

I am trying to fix an existing application that uses a Visual Studio 2005 setup project. We are requiring it to work on limited user accounts for XP, our app is written in C# for .Net 2.0. It writes ...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

configsource and installer

I have an project csproj, with app.config file, and logging Ent.Library section using configsource attribute. The logging section is in ahother file Configloggingconfiguration.config. I have a ...

热门标签