This project is read-only.

using @Display.Partial() in view not working for me

Topics: Português (Portuguese), Troubleshooting
Jan 23, 2013 at 9:15 PM
Edited Jan 23, 2013 at 9:16 PM



In a view im trying to use a partial view with this tip from twitter :

@Display.Partial("testpartialview", myviewmodel)


Its not working for me. This is the error i get :

Any ideas?

Sequence contains more than one element

Line 117:            // only one non-Type, non-named argument is allowed
Line 118:            var initializer = positional.SingleOrDefault();
Line 119:            if (initializer != null) {
Line 120:                foreach (var prop in initializer.GetType().GetProperties()) {


\orchard16\src\Orchard\DisplayManagement\Implementation\DefaultShapeFactory.cs    Line: 118