gpt4 book ai didi

c# - Sitecore,错误地点击了 `Rebuild Solution` 而不是 `Build Solution`

转载 作者:行者123 更新时间:2023-11-30 14:27:29 25 4
gpt4 key购买 nike

我在 Visual Studio 2013 中处理我的项目,我错误地点击了 Rebuild Solution。我收到以下异常,我不知道如何解决它。请建议。

Server Error in '/' Application.

无法解析类型名称: Sitecore.Buckets.Commands.AddFromTemplateCommand,Sitecore.Buckets(方法:Sitecore.Configuration.Factory.CreateType(XmlNode configNode,String[] parameters,Boolean断言)).

描述: 在执行当前网络请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其在代码中的来源的更多信息。

异常详细信息: System.Exception:无法解析类型名称:Sitecore.Buckets.Commands.AddFromTemplateCommand、Sitecore.Buckets(方法:Sitecore.Configuration.Factory.CreateType(XmlNode configNode , String[] 参数, Boolean assert)).

堆栈跟踪:


异常:无法解析类型名称: Sitecore.Buckets.Commands.AddFromTemplateCommand,Sitecore.Buckets(方法:Sitecore.Configuration.Factory.CreateType(XmlNode configNode,String[] 参数, bool 断言)).

Sitecore.Diagnostics.Error.Raise(String error, String method) +129
Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert) +428
Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert) +67
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +141
Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert) +694
Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +577
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +296
Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert) +420
Sitecore.Configuration.Factory.GetDatabase(String name, Boolean assert) +185
Sitecore.Configuration.Factory.GetDatabases() +168
Sitecore.Data.Managers.HistoryManager.InitializeEventHandlers() +49
Sitecore.Pipelines.Loader.InitializeManagers.Process(PipelineArgs args) +16
(Object , Object[] ) +80
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +365
Sitecore.Nexus.Web.HttpModule.Application_Start() +172
Sitecore.Nexus.Web.HttpModule.Init(HttpApplication app) +516
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +530
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

[HttpException (0x80004005): Could not resolve type name: Sitecore.Buckets.Commands.AddFromTemplateCommand, Sitecore.Buckets (method: Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert)).]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12618692
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12458309

最佳答案

重建将清理您的 /bin 文件夹,如果您将 Sitecore dll 存储在那里但您没有从其他路径引用它们,您将丢失它们。

您可以再次下载 Sitecore 文件并将 dll 复制到一个文件夹(即:/depends/sitecore)并在您的项目中添加对它们的引用。这样,当您构建解决方案时,dll 将被复制到 bin 文件夹。

关于c# - Sitecore,错误地点击了 `Rebuild Solution` 而不是 `Build Solution`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32710755/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com