This project is read-only.

Build failure: namespace 'contrib' could not be found

Topics: Troubleshooting
Nov 9, 2011 at 4:41 AM
Edited Nov 9, 2011 at 4:42 AM

I'm very new to Orchard and .Net for that matter. Please excuse me if this is one of those basic newbie questions I should have known the answer to by now.

I'm receiving the following error when attempting to build a site based on the Minty theme (although I don't think it's related to the theme).

Error: The type or namespace name 'Contrib' could not be found (are you missing a using directive or an assembly reference?)   ...\App_Web_gnz0rcdh.0.cs 30

Line 30 in App_Web_gnz0rcdh.0.cs 30

public class _Page_Modules_Contrib_FileField_Views_DefinitionTemplates_FileFieldSettings_cshtml : Orchard.Mvc.ViewEngines.Razor.WebViewPage<Contrib.FileField.Settings.FileFieldSettings>

It appears to me that reference should resolve correctly based on the project.

Also, this is the standard plain-Jane out-of-the-box code without any logic modifications or additions.

Any suggestions would be greatly appreciated.


Nov 9, 2011 at 1:05 PM

Most obvious thing: do you have the Contrib.FileField module installed?

Nov 10, 2011 at 3:23 AM

I believe so - again my .Net newbie status shines through brightly...

The VS Solution Explorer shows Contrib.FileField under Modules.

I have the 'site' open in WebMatrix and launched VS from there.

Thanks for the response.


Nov 10, 2011 at 12:34 PM

Try building in Visual Studio first (or run ClickToBuild.cmd in the root of Orchard source).