The module (contentbox) cannot be loaded

Hi,

today I ran into a strange problem.
After setting up a new CB installation and configuring it on local machine I moved it to the live system.
Everything was working fine. Suddenly I got an error:

The module (contentbox) cannot be loaded as it does not have a ModuleConfig.cfc in its root. Path Checked: C:\inetpub\wwwkunden\modules/contentbox

It seems that COLDBOX_APP_ROOT_PATH is wrong, but doing a dump right after being set it points to the correct folder.

Does anyone have an idea?
CF 9.0.2 and IIS

Cheers
Andy

Is the site in the web root or a sub folder?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

New IIS Site and everything there in the root.

Hmm, so is C:\inetpub\wwwkunden\modules/contentbox the correct location of the module? What makes you think the root path is wrong?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

The correct location of the webroot is: C:\inetpub\wwwkunden\akibaseASP_XXX_43htrrg65
The dump of COLDBOX_APP_ROOT_PATH in the application shows that path correct.

Do I miss another setting? It seems as if it gets overwritten at some point…

you haven’t set it up as a folder called contentbox under the web root have u?

The contentbox 1.6 archive is extracted in the folder:
C:\inetpub\wwwkunden\akibaseASP_XXX_43htrrg65\

regards,
andy

Yes, but that doesn’t answer if it is in a folder in the web root. The problem you are having sounds very much like this.

Sorry got it wrong. The webroot is on the same level like “wwwkunden”

Solved!

In the folder “C:\inetpub\wwwkunden” on the same level like “C:\inetpub\wwwkunden\akibaseASP_XXX_43htrrg65” was an empty Folder “Modules”.
That caused the problem.
Can we limit this kind of directory scan? When the base path of the app is “C:\inetpub\wwwkunden\akibaseASP_XXX_43htrrg65” the dir scan should not start from /

Cheers Andy

Are you using wwwkunden as the webroot, then you would be facing this issue. The full ContentBox application itself, the one you unzipped, is designed to run at the web root level and not a sub folder or virtual directory from that.

I could be wrong here, but it sounds like you would need to modify the base ColdBox settings for ContentBox to take that scenario into account. So that the scan would then work as expected.