value cannot be null problem

Topics: Troubleshooting
Aug 13, 2011 at 2:37 PM

Hi guys,

 

I'm having problem with our production C1 site having this issue, every time the site crashes with this error:

Exception information:     Exception type: ArgumentNullException     Exception message: Value cannot be null.Parameter name: key   at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)   at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)   at CompositeC1Contrib.Web.BaseSiteMapProvider.FindSiteMapNode(String rawUrl, CultureInfo ci)   at CompositeC1Contrib.Web.CompositeC1SiteMapProvider.ResolveNodeFromUrl(String localPath, String query)   at CompositeC1Contrib.Web.UrlFilterModule.RewritePath(HttpContext ctx)   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

after a couple of iisreset the error will change to this:

Exception information:     Exception type: InvalidOperationException    Exception message: Compilation returned error "Error generating Win32 resource: The process cannot access the file because it is being used by another process. ", File: "", Line: "0"   at Composite.Core.Types.BuildManagerImpl.Compile(BuildManagerCompileUnit buildManagerCompileUnit)   at Composite.Core.Types.BuildManagerImpl.GetCompiledTypes(BuildManagerCompileUnit buildManagerCompileUnit)   at Composite.Plugins.Data.DataProviders.XmlDataProvider.CodeGeneration.XmlDataProviderHelperGenerator.GenerateStore(Boolean staticOnly, XmlDataProviderCodeGeneratorResult result, XmlDataProviderCodeGeneratorStore store)   at Composite.Core.Parallelization.ParallelFacade.ThreadWrapper`1.WrapperAction(TSource source)   at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.<PartitionerForEachWorker>b__30()   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)   at System.Threading.Tasks.Task.<>c__DisplayClass7.<ExecuteSelfReplicating>b__6(Object )

 

Hope anyone can help.

Regards,

arnel gracela 

Coordinator
Aug 13, 2011 at 3:11 PM

Hi Arnel

I suggest performing steps described here to solve the second exception. If it won't help than there's some kind of a data corruption, are you running on Sql or Xml? Can you check the log files for other exceptions/warnings? Log files are located under /App_Data/Composite/LogFiles