Adding module causes Orchard Azure to fail

Topics: Installing Orchard, Troubleshooting
Mar 17, 2012 at 6:08 PM

I've been taking advantage of the three month free trial to get a taste for Azure and Orchard both. Following the instructions here (which are a bit out of date) I managed to get and Orchard site up and running. Then I figured it would be nice to add some Google Analytics to the site, so I downloaded a Google Analytics module and went about manually installing it following the instructions on the Deploying Orchard to Azure page.

Problem is that now building Orchard Azure fails with a modest 1304 errors.  It looks like this:

  Shapes\CoreShapes.cs(576,10): error CS0246: The type or namespace name 'Shape
Attribute' could not be found (are you missing a using directive or an assembly
 reference?) [H:\OrchardEnlistment\src\Orchard.Azure\Orchard.Azure.Web\Core\Orc
hard.Core.csproj]
  Shapes\CoreShapes.cs(618,10): error CS0246: The type or namespace name 'Shape
' could not be found (are you missing a using directive or an assembly referenc
e?) [H:\OrchardEnlistment\src\Orchard.Azure\Orchard.Azure.Web\Core\Orchard.Core
.csproj]
  Shapes\CoreShapes.cs(618,10): error CS0246: The type or namespace name 'Shape
Attribute' could not be found (are you missing a using directive or an assembly
 reference?) [H:\OrchardEnlistment\src\Orchard.Azure\Orchard.Azure.Web\Core\Orc
hard.Core.csproj]
  Shapes\CoreShapes.cs(623,10): error CS0246: The type or namespace name 'Shape
' could not be found (are you missing a using directive or an assembly referenc
e?) [H:\OrchardEnlistment\src\Orchard.Azure\Orchard.Azure.Web\Core\Orchard.Core
.csproj]
  Shapes\CoreShapes.cs(623,10): error CS0246: The type or namespace name 'Shape
Attribute' could not be found (are you missing a using directive or an assembly
 reference?) [H:\OrchardEnlistment\src\Orchard.Azure\Orchard.Azure.Web\Core\Orc
hard.Core.csproj]
  Shapes\CoreShapes.cs(628,10): error CS0246: The type or namespace name 'Shape
' could not be found (are you missing a using directive or an assembly referenc
e?) [H:\OrchardEnlistment\src\Orchard.Azure\Orchard.Azure.Web\Core\Orchard.Core
.csproj]
  Shapes\CoreShapes.cs(628,10): error CS0246: The type or namespace name 'Shape
Attribute' could not be found (are you missing a using directive or an assembly
 reference?) [H:\OrchardEnlistment\src\Orchard.Azure\Orchard.Azure.Web\Core\Orc
hard.Core.csproj]
  Shapes\CoreShapes.cs(633,10): error CS0246: The type or namespace name 'Shape
' could not be found (are you missing a using directive or an assembly referenc
e?) [H:\OrchardEnlistment\src\Orchard.Azure\Orchard.Azure.Web\Core\Orchard.Core
.csproj]
  Shapes\CoreShapes.cs(633,10): error CS0246: The type or namespace name 'Shape
Attribute' could not be found (are you missing a using directive or an assembly
 reference?) [H:\OrchardEnlistment\src\Orchard.Azure\Orchard.Azure.Web\Core\Orc
hard.Core.csproj]
  Shapes\DateTimeShapes.cs(25,10): error CS0246: The type or namespace name 'Sh
ape' could not be found (are you missing a using directive or an assembly refer
ence?) [H:\OrchardEnlistment\src\Orchard.Azure\Orchard.Azure.Web\Core\Orchard.C
ore.csproj]
  Shapes\DateTimeShapes.cs(25,10): error CS0246: The type or namespace name 'Sh
apeAttribute' could not be found (are you missing a using directive or an assem
bly reference?) [H:\OrchardEnlistment\src\Orchard.Azure\Orchard.Azure.Web\Core\
Orchard.Core.csproj]
  Shapes\DateTimeShapes.cs(43,10): error CS0246: The type or namespace name 'Sh
ape' could not be found (are you missing a using directive or an assembly refer
ence?) [H:\OrchardEnlistment\src\Orchard.Azure\Orchard.Azure.Web\Core\Orchard.C
ore.csproj]
  Shapes\DateTimeShapes.cs(43,10): error CS0246: The type or namespace name 'Sh
apeAttribute' could not be found (are you missing a using directive or an assem
bly reference?) [H:\OrchardEnlistment\src\Orchard.Azure\Orchard.Azure.Web\Core\
Orchard.Core.csproj]
  XmlRpc\Controllers\HomeController.cs(28,10): error CS0246: The type or namesp
ace name 'AlwaysAccessible' could not be found (are you missing a using directi
ve or an assembly reference?) [H:\OrchardEnlistment\src\Orchard.Azure\Orchard.A
zure.Web\Core\Orchard.Core.csproj]
  XmlRpc\Controllers\HomeController.cs(28,10): error CS0246: The type or namesp
ace name 'AlwaysAccessibleAttribute' could not be found (are you missing a usin
g directive or an assembly reference?) [H:\OrchardEnlistment\src\Orchard.Azure\
Orchard.Azure.Web\Core\Orchard.Core.csproj]
  XmlRpc\Controllers\LiveWriterController.cs(22,10): error CS0246: The type or
namespace name 'AlwaysAccessible' could not be found (are you missing a using d
irective or an assembly reference?) [H:\OrchardEnlistment\src\Orchard.Azure\Orc
hard.Azure.Web\Core\Orchard.Core.csproj]
  XmlRpc\Controllers\LiveWriterController.cs(22,10): error CS0246: The type or
namespace name 'AlwaysAccessibleAttribute' could not be found (are you missing
a using directive or an assembly reference?) [H:\OrchardEnlistment\src\Orchard.
Azure\Orchard.Azure.Web\Core\Orchard.Core.csproj]

    2 Warning(s)
    1304 Error(s)

Time Elapsed 00:00:08.11

H:\OrchardEnlistment>pause
Press any key to continue . . .

H:\OrchardEnlistment>goto end

H:\OrchardEnlistment>
Now, that is only the tail end of the errors but it continues in the same vein as far back as the Visual Studio Command Prompt is willing to go.

Now I should mention that I have tried both Google Analytics modules I found in the gallery and both result in the same errors.

Coordinator
Mar 17, 2012 at 9:10 PM

Did you add the module's project to the Azure web site's references?

Mar 17, 2012 at 9:12 PM
bertrandleroy wrote:

Did you add the module's project to the Azure web site's references?

Yes, I did.

Coordinator
Mar 18, 2012 at 5:59 AM

Just to make sure, in the Azure solution that is in the Orchard.Azure directory?

Mar 18, 2012 at 8:29 AM
bertrandleroy wrote:

Just to make sure, in the Azure solution that is in the Orchard.Azure directory?

Yes

Coordinator
Mar 18, 2012 at 8:50 AM

Then I don't know. I've done this dozens of times without a problem. Maybe it's that module that has an incompatibility?

Mar 18, 2012 at 9:07 AM

Is there some module you know is compatible I could test with just to see if it works?

Coordinator
Mar 19, 2012 at 7:07 PM

Sure, we use those on the Orchard web site:

https://bitbucket.org/bleroy/orchardpo

https://bitbucket.org/bleroy/orchard.externalblogaggregation

Mar 25, 2012 at 5:09 PM

I tried adding orchard.externalblogaggregation and I get the same errors. Could there be something wrong with the source I got when I cloned the repository?

Coordinator
Mar 25, 2012 at 8:25 PM

Maybe yes.

Mar 28, 2012 at 9:58 AM

So I deleted everything and cloned the repository over again. I'm still having the same problem. I'm starting to be a bit confused. Could I be doing something wrong? Might the documentation be out of date or something?

Mar 29, 2012 at 4:41 AM

What command are you using to build?

Mar 29, 2012 at 6:40 AM

ClickToBuildAzurePackage.cmd from the visual studio command prompt.