Sitecore - Upload File Error in Media Library - sitecore

When I click on the "Upload File" button in the Sitecore Media Library, an Exception is thrown. The "Upload Files (Adavanced)" button works fine.
This is the error message:
Server Error in '/' Application.
Value cannot be null.
Parameter name: value
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: value
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: value]
Sitecore.Text.UrlString.Add(String key, String value) +149
Sitecore.Shell.Framework.Commands.Media.Upload.Run(ClientPipelineArgs args) +1801
Sitecore.Intranet.Commands.Media.Upload.RunOverridden(ClientPipelineArgs args) +421
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +1255
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +38
Sitecore.Pipelines.Processor.Invoke(PipelineArgs args) +318
Sitecore.Nexus.Pipelines.NexusPipelineApi.Resume(PipelineArgs args, Pipeline pipeline) +330
Sitecore.Pipelines.Pipeline.DoStart(PipelineArgs args) +208
Sitecore.Pipelines.Pipeline.Start(PipelineArgs args, Boolean atomic) +182
Sitecore.Web.UI.Sheer.ClientPage.RunPipelines() +280
Sitecore.Web.UI.Sheer.ClientPage.OnPreRender(EventArgs e) +530
Sitecore.Shell.Applications.ContentManager.ContentEditorPage.OnPreRender(EventArgs e) +25
System.Web.UI.Control.PreRenderRecursiveInternal() +108
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394
Any idea how I can fix this? Alternativly I would like to hide the "Upload File" button. How can I do that?
Thanks :)

The button was not working with you only in firefox.
You can hide it by going to the core database, and remove this item
/sitecore/content/Applications/Content Editor/Editors/Media/Media Folder/Buttons/Upload - Multi
I tested it, and it works.

Related

Could not load type 'Sitecore.LayoutService.ItemRendering.Factories.Interfaces.IRenderingFactory'

This issue started, while I installed Sitecore JavaScript Services Server for Sitecore 10.0.0 XP 15.0.1 rev. 201112 while my Sitecore is 10.2, Kindly please suggest or help me with respect to the issue.
Could not load type 'Sitecore.LayoutService.ItemRendering.Factories.Interfaces.IRenderingFactory' from assembly 'Sitecore.LayoutService, Version=6.1.0.0, Culture=neutral, PublicKeyToken=null'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.TypeLoadException: Could not load type 'Sitecore.LayoutService.ItemRendering.Factories.Interfaces.IRenderingFactory' from assembly 'Sitecore.LayoutService, Version=6.1.0.0, Culture=neutral, PublicKeyToken=null'.
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
Add a "Debug=true" directive at the top of the file that generated the error. Example:
or:
Add the following section to the configuration file of your application:
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack trace:
[TypeLoadException: Could not load type 'Sitecore.LayoutService.ItemRendering.Factories.Interfaces.IRenderingFactory' from assembly 'Sitecore.LayoutService, Version=6.1.0.0, Culture=neutral, PublicKeyToken=null'.]
Sitecore.LayoutService.GraphQL.RegisterDependencies.Configure(IServiceCollection serviceCollection) +0
Sitecore.DependencyInjection.BaseServicesConfiguratorFactory.Configure(IServiceCollection serviceCollection) +171
Sitecore.DependencyInjection.BaseServicesConfiguratorFactory.Configure(IServiceCollection serviceCollection) +171
Sitecore.DependencyInjection.BaseServiceProviderBuilder.ConfigureServiceCollection() +142
Sitecore.DependencyInjection.ServiceLocator.ConfigureServiceProvider() +225
Sitecore.DependencyInjection.ServiceLocator.get_ServiceProvider() +513
Sitecore.Web.Application..cctor() +45
[TypeInitializationException: The type initializer for 'Sitecore.Web.Application' threw an exception.]
ASP.global_asax..ctor() +28
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +142
System.Activator.CreateInstance(Type type, Boolean nonPublic) +107
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1476
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +186
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +80
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +182
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369
[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +724
Any suggestion is most appreciated, I am new to sitecore, and not able to find much information on the same, please guide me.

Could not find configuration node: settings/setting[#name='mediaFolder']/#value

I upgraded sitecore from 7.1 to 7.2 and changed all the configurtion files as stated and getting error Could not find configuration node: settings/setting[#name='mediaFolder']/#value". But my webconfig has following values
<setting name="MediaFolder" value="$(mediaFolder)" />
<sc.variable name="mediaFolder" value="/upload" />
<media>
<folder ref="settings/setting[#name='mediaFolder']/#value">
</folder>
<filter>*</filter>
</media>
The stacktrace
Could not find configuration node:
settings/setting[#name='mediaFolder']/#value
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Could not find
configuration node: settings/setting[#name='mediaFolder']/#value
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: Could not find configuration node:
settings/setting[#name='mediaFolder']/#value]
Sitecore.Diagnostics.Assert.IsTrue(Boolean condition, String message)
+70 Sitecore.Diagnostics.Assert.IsTrue(Boolean condition, String format, Object[] args) +82
Sitecore.Configuration.Factory.GetConfigNode(String xpath, Boolean
assert) +281 Sitecore.Configuration.Factory.CreateObject(String
configPath, String[] parameters, Boolean assert) +158
Sitecore.Configuration.Factory.CreateFromReference(XmlNode configNode,
String[] parameters, Boolean assert) +203
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
String[] parameters, Boolean assert, IFactoryHelper helper) +161
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
String[] parameters, Boolean assert) +64
Sitecore.Configuration.Factory.CreateObject(String configPath,
String[] parameters, Boolean assert) +461
Sitecore.Configuration.Factory.CreateObject(String configPath, Boolean
assert) +61 Sitecore.Configuration.Factory.GetString(String
configPath, Boolean assert) +63
Sitecore.IO.FileWatcher..ctor(String configReference) +222
Sitecore.Resources.Media.UploadWatcher..ctor() +50
[TargetInvocationException: Exception has been thrown by the target of
an invocation.] System.RuntimeTypeHandle.CreateInstance(RuntimeType
type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached,
RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean
skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +113
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly,
Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
+232 System.Activator.CreateInstance(Type type, Boolean nonPublic) +83 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes, StackCrawlMark& stackMark) +1122
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes) +128 System.Activator.CreateInstance(Type
type, BindingFlags bindingAttr, Binder binder, Object[] args,
CultureInfo culture) +18
System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[]
args) +60
System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1
moduleList) +189
System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +950
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr
appContext, HttpContext context, MethodInfo[] handlers) +82
System.Web.HttpApplication.InitSpecial(HttpApplicationState state,
MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr
appContext, HttpContext context) +336
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr
appContext) +296
[HttpException (0x80004005): Exception has been thrown by the target
of an invocation.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9948312
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
+101 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest
wr, HttpContext context) +254
The issue was Sitecore.ContentSearch.config was missing '<' for the comment section.
The setting is case sensitive. Change your reference to this:
<folder ref="settings/setting[#name='MediaFolder']/#value">
</folder>

Constructor on type 'CommonController' not found issue in Simple Injector Sitecore 8.1 MVC

I have implemented Simple Injector in Sitecore 8.1 MVC glass mapper v4 project and using Controller rendering on MVC Layout.When I run the page getting following error:
Server Error in '/' Application.
Constructor on type 'GlassSimpleInjector.Controllers.CommonController' not found.
Description: An unhandled exception occurred.
Exception Details: System.MissingMethodException: Constructor on type 'GlassSimpleInjector.Controllers.CommonController' not found.
Source Error:
Line 13: <h1>#Html.Sitecore().Field("title")</h1>
Line 14: <div>
Line 15: #Html.Sitecore().Placeholder("main")
Line 16: </div>
Line 17: </body>
Source File: c:\inetpub\wwwroot\GlassSimpleInjector\Website\Views\Shared\MVC Layout.cshtml Line: 15
Stack Trace:
[MissingMethodException: Constructor on type 'GlassSimpleInjector.Controllers.CommonController' not found.]
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +14259449
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +200
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
Sitecore.Mvc.Helpers.TypeHelper.CreateObject(Type type, Object[] parameters) +43
Sitecore.Mvc.Controllers.SitecoreControllerFactory.CreateControllerInstance(RequestContext requestContext, String controllerName) +330
Sitecore.Mvc.Controllers.SitecoreControllerFactory.CreateController(RequestContext requestContext, String controllerName) +122
[ControllerCreationException: Could not create controller: ' GlassSimpleInjector.Controllers.CommonController,GlassSimpleInjector'.
The context item is: '/sitecore/content/Home'.
The current route url is: '{*pathInfo}'. This is the default Sitecore route which is set up in the 'InitializeRoutes' processor of the 'initialize' pipeline. ]
Sitecore.Mvc.Controllers.SitecoreControllerFactory.CreateController(RequestContext requestContext, String controllerName) +371
Sitecore.Mvc.Controllers.ControllerRunner.GetController() +24
Sitecore.Mvc.Controllers.ControllerRunner.Execute() +54
Sitecore.Mvc.Presentation.ControllerRenderer.Render(TextWriter writer) +131
Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Render(Renderer renderer, TextWriter writer, RenderRenderingArgs args) +27
Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Process(RenderRenderingArgs args) +62
(Object , Object[] ) +83
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +369
Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +202
Sitecore.Mvc.Pipelines.Response.RenderPlaceholder.PerformRendering.Render(String placeholderName, TextWriter writer, RenderPlaceholderArgs args) +192
(Object , Object[] ) +83
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +369
Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +202
Sitecore.Mvc.Helpers.SitecoreHelper.Placeholder(String placeholderName) +323
ASP._Page_Views_Shared_MVC_Layout_cshtml.Execute() in c:\inetpub\wwwroot\GlassSimpleInjector\Website\Views\Shared\MVC Layout.cshtml:15
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +126
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +125
System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +147
Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +258
I have done almost all configuration but don't know what is missing.
Any suggestion.
I have implemented the solution from this link
Simple Injector
Update as on 11/24/2015
Just want to throw some light on structure
I have two MVC project:
GlassSimpleInjector.Global -->I did basic SimpleInjector implementation here and added SimpleInjector.cs class inside App_Start folder which contains common functionality and registered ISitecoreService and ISitecoreContext
GlassSimpleInjector --> I have added SimpleInjector.cs file inside App_Start where I have registered interface and classes only speicific to this project
SimpleInjector.config
<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"
xmlns:set="http://www.sitecore.net/xmlconfig/set/">>
<sitecore>
<pipelines>
<initialize>
<processor type="Sitecore.Mvc.Pipelines.Loader.InitializeControllerFactory, Sitecore.Mvc"
set:type="GlassSimpleInjector.Global.Pipelines.DI.InitializeSimpleInjectorControllerFactory, GlassSimpleInjector.Global" />
</initialize>
</pipelines>
</sitecore>
</configuration>
Are you sure your controller factory is getting registered? According to the stack trace SimpleInjectorControllerFactory is not being invoked. Try checking the showConfig page to see if your processor is getting patched into the initialize pipeline correctly.
Update in response to comment from OP
The first block of code in Akshay's post is a Sitecore config patch file that needs to go in the /App_Config/Include folder. Note that you will need to put it in an additional subfolder or name the file so that it comes alphabetically after the Sitecore.Mvc.config in order for it to correctly patch the original processor. If you go to /sitecore/admin/showconfig.aspx in a browser, you can see the merged configuration. You should see your custom processor in the place of the original InitializeControllerFactory processor in the initialize pipeline. If it's not there, then your controller factory won't get registered.
Update
The problem is an extra right angle bracket in the config patch file.

Error when saving in Sitecore Backend in the Core Database

After updating our Sitecore 6.3 to 6.6 we are facing the problem that when we want to save an item in the Core DB, this error message comes up:
[NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.]
Sitecore.Intranet.FrontendEditing.FrontendEditor.IsAutoVersioningEnabledForItem(Item item) +69
Sitecore.Intranet.Pipelines.SaveUI.AddNewVersion.Process(SaveArgs args) +515
[TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht.]
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +1255
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +38
Sitecore.Pipelines.Processor.Invoke(PipelineArgs args) +318
Sitecore.Nexus.Pipelines.NexusPipelineApi.Resume(PipelineArgs args, Pipeline pipeline) +330
Sitecore.Pipelines.Pipeline.DoStart(PipelineArgs args) +208
Sitecore.Pipelines.Pipeline.Start(PipelineArgs args, Boolean atomic) +182
Sitecore.Web.UI.Sheer.ClientPage.RunPipelines() +280
Sitecore.Web.UI.Sheer.ClientPage.OnPreRender(EventArgs e) +530
Sitecore.Shell.Applications.ContentManager.ContentEditorPage.OnPreRender(EventArgs e) +25
System.Web.UI.Control.PreRenderRecursiveInternal() +108
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394
[NullReferenceException]: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Sitecore.Intranet.FrontendEditing.FrontendEditor.IsAutoVersioningEnabledForItem(Item item)
bei Sitecore.Intranet.Pipelines.SaveUI.AddNewVersion.Process(SaveArgs args)
[TargetInvocationException]: Ein Aufrufziel hat einen Ausnahmefehler verursacht.
bei System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
bei Sitecore.Pipelines.Processor.Invoke(PipelineArgs args)
bei Sitecore.Nexus.Pipelines.NexusPipelineApi.Resume(PipelineArgs args, Pipeline pipeline)
bei Sitecore.Pipelines.Pipeline.DoStart(PipelineArgs args)
bei Sitecore.Pipelines.Pipeline.Start(PipelineArgs args, Boolean atomic)
bei Sitecore.Web.UI.Sheer.ClientPage.RunPipelines()
bei Sitecore.Web.UI.Sheer.ClientPage.OnPreRender(EventArgs e)
bei Sitecore.Shell.Applications.ContentManager.ContentEditorPage.OnPreRender(EventArgs e)
bei System.Web.UI.Control.PreRenderRecursiveInternal()
bei System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
[HttpUnhandledException]: Eine Ausnahme vom Typ "System.Web.HttpUnhandledException" wurde ausgelöst.
bei System.Web.UI.Page.HandleError(Exception e)
bei System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
bei System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
bei System.Web.UI.Page.ProcessRequest()
bei System.Web.UI.Page.ProcessRequest(HttpContext context)
bei ASP.sitecore_shell_applications_content_manager_default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\0a348ed6\6269aa05\App_Web_x1rqdwhm.1.cs:Zeile 0.
bei System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
bei System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Saving items in the Master DB works fine. We made the necessary config files changes. Backend and the Website are working fine.
How can I fix this? Thanks in advance :)
Looking at your stack trace - exception is thrown by the Sitecore.Intranet.FrontendEditing.FrontendEditor class. This class is from Sitecore Intranet module.
The last version of Sitecore Intranet module which contains this class is Sitecore Intranet 3.3 (which supports Sitecore 6.3).
This class no longer exists in Sitecore Intranet 4.0 (which supports Sitecore 6.6).
You should update Sitecore Intranet module to 4.0 version
EDIT:
Release History of Sitecore Intranet says:
June 20, 2013
The Sitecore Intranet Platform - SIP v4.0 rev.130523 released on May 23, 2013.
Tested with Sitecore CMS 6.6. rev. 130529 (Update-6) released on June 6, 2013.
Compatibility
This release only runs on Sitecore 6.6 and DMS 6.6.
EDIT 2:
You can try to create a class that will inherit from Sitecore.Intranet.Pipelines.SaveUI.AddNewVersion and catch this exception. It should not be executed for core database anyway.
Remember to register your new class instead of original AddNewVersion:
<!-- processor mode="on" type="Sitecore.Intranet.Pipelines.SaveUI.AddNewVersion, Sitecore.Intranet" / -->
<processor mode="on" type="My.Assembly.Namespace.AddNewVersion, My.Assembly.Namespace" />
namespace My.Assembly.Namespace
{
public class AddNewVersion : Sitecore.Intranet.Pipelines.SaveUI.AddNewVersion
{
public new void Process(Sitecore.Pipelines.Save.SaveArgs args)
{
try
{
base.Process(args);
}
catch (Exception exc)
{
Log.Error("Exception in AddNewVersion.Process", exc, this);
}
}
}
}

Object reference not set to an instance of an object. in sitecore

I moved all of the sitecore data developed in our local environment to the Amazon Web Service's Server.
I attached database. setting IIS. and rewrote connection strings.
But it doesn't work. I saw error page like this when I access top page.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Sitecore.Diagnostics.Log.Error(String message, Exception exception, Type ownerType) +246
Sitecore.Configuration.Factory.LoadAutoIncludeFiles(ConfigPatcher patcher, String folder) +1064
Sitecore.Configuration.Factory.GetConfiguration() +331
Sitecore.Diagnostics.LoggerFactory..cctor() +58
[TypeInitializationException: The type initializer for 'Sitecore.Diagnostics.LoggerFactory' threw an exception.]
Sitecore.Diagnostics.LoggerFactory.GetLogger(Type type) +28
Sitecore.Diagnostics.Log.Error(String message, Exception exception, Type ownerType) +150
Sitecore.Configuration.Factory.LoadAutoIncludeFiles(ConfigPatcher patcher, String folder) +1065
Sitecore.Configuration.Factory.GetConfiguration() +332
Sitecore.Configuration.Factory.GetConfigNode(String xpath, Boolean assert) +117
Sitecore.Resources.Media.UploadWatcher.InitializeIgnoreList() +182
[TypeInitializationException: The type initializer for 'Sitecore.Resources.Media.UploadWatcher' threw an exception.]
Sitecore.Resources.Media.UploadWatcher..ctor() +0
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +159
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +256
System.Activator.CreateInstance(Type type, Boolean nonPublic) +127
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +14407909
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +198
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +83
System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +334
System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1262
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +133
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): Exception has been thrown by the target of an invocation.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12601936
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12441597
Local environment
windows 7
SQL Server 2012 sp1
IIS 7.5
Sitecore version 7.2
AWS environment
Windows Server R2 Standard
SQL Server 2012 Express sp1
IIS 8.5
Sitecore version 7.2
I have tried all the way written in this page(tracking NullReferenceExceptions in sitecore)
but these techniques doesn't work in this case.
Please tell me how to do, if someone knows.
Thank you.
This gives away the cause of the exception:
Sitecore.Configuration.Factory.LoadAutoIncludeFiles(ConfigPatcher patcher, String folder) +1064
Sitecore.Configuration.Factory.GetConfiguration() +331
You have an error in one of the config include files (/App_Config/Include)
There is probably some malformed XML in there somewhere.
Also make sure there are no *.Debug.config or *.Release.config files in there.