Specified view name for Grid.Mvc not found. ViewName: _Grid

Apr 24, 2014 at 9:36 AM
Edited Apr 24, 2014 at 10:04 AM
Hi,

If have created an Orchard module and want to use Grid.Mvc in my razor view. I followed the instructions in the installation guide and quick start. When I run my module I get the following exception:

System.IO.InvalidDataException; Specified view name for Grid.Mvc not found. ViewName: _Grid

Any suggestions what could be the problem?

Regards,
Louis
Coordinator
Apr 26, 2014 at 6:40 AM
Hi,

Grid.Mvc by default looks for '_Grid.cshtml' view to render the table layout. Please ensure that your module has this view.
May 5, 2014 at 8:03 PM
Edited May 6, 2014 at 5:13 PM
Thanx for your reply.

I installed through the NuGet package manager and think everything is in place.
The _Grid.cshtml file is in this folder folder: [Orchard module name]\Views\Shared\

Any suggestions on what could be the problem?