1
Vote

Creating new (very first) album >> error

description

Just, after install, got ClubStarterKit (CSK) v3 Preview running, hitting some buttons to test its functionality, on page Photos to add my very first album, the CSK gave me right away the rather general error "Object reference not set to an instance of an object" in class ...\ClubStarterKit.Infrastructure\UI\Html\HiddenForHelper.cs. During debugging this error arises in a piece of Linq code, It seems some mysterious hidden values are not set ???
 
error on line 32
var hiddenValues = from prop in t.GetProperties()
                >>>>  let value = prop.GetValue(val, null).ToString() <<<<
                  where value != prop.PropertyType.ToString()
                  select string.Format(HiddenInputFormat, name, prop.Name, value);articular part
I'm yet not that familiar with Linq (however I want to) I guess the prop.GetValue(val, null).ToString() is null / nothing something is missing ???
 
Message = "Method may only be called on a Type for which Type.IsGenericParameter is true."
Source = "mscorlib"
 
Finally I found it!
After setting up several watches on variables a was able to track down that in my case I did not had given a value for the Signature and Bio parameters during setting the first (admin) user. So, these parameters may be left empty, the table Album as well allows nullable values, "on-the-road-in-the-code" if one of these parameters are left empty (may be more optional parameters) do arise the nasty error...
So-far-So-Good
Next step trying to delete ...

comments