Orchard Build Failed - Orchard.Core missing from Modules\Mello.ImageGallery

Topics: Troubleshooting
Jun 5, 2012 at 6:33 PM

Hi,

Running Orchard CMS on localhost - displays ok in browser. I need to publish the full source version Orchard v.1.2.41.0 so I can deploy to live server.

In Visual Studio 2010 pro the solution source code build now fails on 'The type or namespace name 'Core' does not exist in the namespace 'Orchard'  - this has the knock on effect of publish failing.

 

Orchard.Web folder has a 'Core' folder which shows up in the solution explorer as Orchard.Core  - so its not clear why Modules\Mello.ImageGallery cannot find the Core namespace?

 

Any ideas?

 

 

------ Rebuild All started: Project: Mello.ImageGallery, Configuration: Release Any CPU ------C:\Users\Sam\Documents\Phuture Design\Websites\2011\ITFWorldCup2012\Orchard.Source.1.2.41\src\Orchard.Web\Modules\Mello.ImageGallery\Migrations.cs(4,15): error CS0234: The type or namespace name 'Core' does not exist in the namespace 'Orchard' (are you missing an assembly reference?)

 

C:\Users\Sam\Documents\Phuture Design\Websites\2011\ITFWorldCup2012\Orchard.Source.1.2.41\src\Orchard.Web\Modules\Mello.ImageGallery\Controllers\AdminController.cs(8,15): error CS0234: The type or namespace name 'Core' does not exist in the namespace 'Orchard' (are you missing an assembly reference?)C:\Users\Sam\Documents\Phuture Design\Websites\2011\ITFWorldCup2012\Orchard.Source.1.2.41\src\Orchard.Web\Modules\Mello.ImageGallery\Controllers\AdminController.cs(86,10): error CS0246: The type or namespace name 'FormValueRequired' could not be found (are you missing a using directive or an assembly reference?)C:\Users\Sam\Documents\Phuture Design\Websites\2011\ITFWorldCup2012\Orchard.Source.1.2.41\src\Orchard.Web\Modules\Mello.ImageGallery\Controllers\AdminController.cs(86,10): error CS0246: The type or namespace name 'FormValueRequiredAttribute' could not be found (are you missing a using directive or an assembly reference?)C:\Users\Sam\Documents\Phuture Design\Websites\2011\ITFWorldCup2012\Orchard.Source.1.2.41\src\Orchard.Web\Modules\Mello.ImageGallery\Controllers\AdminController.cs(171,10): error CS0246: The type or namespace name 'FormValueRequired' could not be found (are you missing a using directive or an assembly reference?)C:\Users\Sam\Documents\Phuture Design\Websites\2011\ITFWorldCup2012\Orchard.Source.1.2.41\src\Orchard.Web\Modules\Mello.ImageGallery\Controllers\AdminController.cs(171,10): error CS0246: The type or namespace name 'FormValueRequiredAttribute' could not be found (are you missing a using directive or an assembly reference?)C:\Users\Sam\Documents\Phuture Design\Websites\2011\ITFWorldCup2012\Orchard.Source.1.2.41\src\Orchard.Web\Modules\Mello.ImageGallery\Controllers\AdminController.cs(214,10): error CS0246: The type or namespace name 'FormValueRequired' could not be found (are you missing a using directive or an assembly reference?)C:\Users\Sam\Documents\Phuture Design\Websites\2011\ITFWorldCup2012\Orchard.Source.1.2.41\src\Orchard.Web\Modules\Mello.ImageGallery\Controllers\AdminController.cs(214,10): error CS0246: The type or namespace name 'FormValueRequiredAttribute' could not be found (are you missing a using directive or an assembly reference?)C:\Users\Sam\Documents\Phuture Design\Websites\2011\ITFWorldCup2012\Orchard.Source.1.2.41\src\Orchard.Web\Modules\Mello.ImageGallery\Controllers\AdminController.cs(234,10): error CS0246: The type or namespace name 'FormValueRequired' could not be found (are you missing a using directive or an assembly reference?)C:\Users\Sam\Documents\Phuture Design\Websites\2011\ITFWorldCup2012\Orchard.Source.1.2.41\src\Orchard.Web\Modules\Mello.ImageGallery\Controllers\AdminController.cs(234,10): error CS0246: The type or namespace name 'FormValueRequiredAttribute' could not be found (are you missing a using directive or an assembly reference?)

 

Compile complete -- 10 errors, 0 warningsc:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Orchard.Core". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

 

Coordinator
Jun 5, 2012 at 6:54 PM

Apparently the project file in that module is incorrectly referencing Orchard.Core. You should open the references folder in its project, delete that reference and re-add it back by pointing it to Core/Orchard.Core.csproj.