Problem with adding new reference to a custom module

Topics: Administration, Customizing Orchard
Dec 19, 2012 at 4:10 PM

Hi all,

I created a custom module, it actually is a register form. It works on both of the localhost and my website. The problem happen when i add a reCAPTCHA to my form. I installed Microsoft.Web.Helpers reference package in the project and it works well when i build the source code, but when i create a package of the custom module and install it on the website, it doesn't work. I guess the custom module needs some references and can not found them.

Has anybody any idea?

Thanks.

Coordinator
Dec 19, 2012 at 6:23 PM

Please elaborate on "it doesn't work". How so?

Dec 20, 2012 at 4:57 PM
Edited Dec 20, 2012 at 4:58 PM

Hi bertrandleroy,

When i navigate to custom module, this error appears:

Compiler Error Message: CS0234: The type or namespace name 'Helpers' does not exist in the namespace 'Microsoft.Web' (are you missing an assembly reference?)

Source Error:


Line 26:     using System.Web.Routing;
Line 27:     using Orchard.Mvc.Html;
Line 28:     using Microsoft.Web.Helpers;
Line 29:     
Line 30:     

 

Developer
Dec 21, 2012 at 2:09 PM

I sometimes get the same issue with my own modules, but I have always been able to solve it by rebuilding the modules and recycle the app pool.