Developer forum

Forum » Development » Application error: Value cannot be null. Parameter name: source

Application error: Value cannot be null. Parameter name: source

Dmitrij Jazel
Reply

Wonder if anyone encountered error like this?

http://screencast.com/t/19sEhMBkAmS

Just recovered an application after a breakdown, and that is first thing this site started showing.

Any suggestions? Something is wrong when it tries to accrss Page structure looks like it.

Error:

Server Error in '/' Application.


Value cannot be null.
Parameter name: source

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: source

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: source]
   System.Linq.Enumerable.Select(IEnumerable`1 source, Func`2 selector) +5813303
   Dynamicweb.Content.Items.Queries.Repository.GetTableInfo(ItemType meta, String alias) +179
   Dynamicweb.Content.Items.Queries.Repository.GetTableInfo(MetadataInheritanceInfo inheritance) +113
   Dynamicweb.Content.Items.Queries.Repository.SelectByPageId(IEnumerable`1 pageIds, Query query) +340
   Dynamicweb.Content.Items.Queries.StorageManager.GetByPageId(String systemName, Int32 pageId) +158
   Dynamicweb.Admin.ItemEdit.get_TargetItem() +276
   Dynamicweb.Admin.ItemEdit.EnsureItem() +31
   Dynamicweb.Admin.ItemEdit.Page_Load(Object sender, EventArgs e) +214
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4740

 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1069.1

 

/Dmitrij


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Looks like a mismatch of items vs. database. Ensure you have the right /Files/System/ItemTypes folder to the database and reset IIS.

BR Nicolai

Votes for this answer: 1
 
Dmitrij Jazel
Reply

But where do you set that setting that sayd DB Items first?

I would like to use Item types saved in DB.

Took a look in Documentation, can't seem to find it.http://developer.dynamicweb.com/documentation/for-developers/item-based-structure/getting-started.aspx

 
Nicolai Høeg Pedersen
Reply

In file manager control panel: http://manual.dynamicweb-cms.com/Default.aspx?ID=6625

 

You must be logged in to post in the forum