COLDBOX PLATFORM V4.1.0

I am trying to learn Coldbox. I have been using fusebox for the past 12 years. I downloaded the book on Coldbox and I can get Commandbox to work and the examples will run on the built in commandbox server but the same code does not run when I try running the pages from my IIS server. Why do the pages not work from IIS? I’m running IIS 8 on Windows 12 server with CF 11.

Welcome to ColdBox Bo. I’d love to help you get ColdBox working, but you’re going to need to improve how you report your issues to us. Right now you said your code “does not run” but you haven’t shared what that means exactly. What we need from you is what happens when you try to run your code. Do you receive an error? If so, that is it? Please provide the stack trace, and perhaps any code snippets or configuration that would be useful.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

OK -

Here is the first page that works http://coldbox.srtechgroup.com/

When I try to add the Hello page per the tutorial, the link to Hello gives a 404 page not found error

Remove and re-add your ISS connectors please? This appears to be a path info issue with SES URLs.

For a typical Windows CF11 install, open this directory:

C:\ColdFusion11\cfusion\bin\connectors

And run Remove_ALL_connectors.bat followed by IIS_connector.bat.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

Hi Bo Reahard,

coldbox URL should have CFC name where “hello” method is defined.

Example
http://coldbox.srtechgroup.com/index.cfm/General/hello

General.cfc component and “hello” is method…

Thanks Brad - that procedure moved us another step closer to success.

http://coldbox.srtechgroup.com/index.cfm/hello - this is the error that I am getting now.

Bo

It should be:

http://coldbox.srtechgroup.com/index.cfm/hello/index

Alternatively, you use non-SES: http://coldbox.srtechgroup.com/index.cfm?event=hello.index

Thanks, that url works fine.

Do you have any idea what id did wrong using the CLI to auto generate the link code for the sample app?

Have you added any routes to /config/Routes.cfm? I just created a fresh app using these CommandBox commands and it loads the page just fine,

coldbox create app myApp --installColdBox
coldbox create handler hello index
start --!openbrowser
server open /index.cfm/hello

Note, “index” is the default action so it’s run automatically.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

I have not added any routes to the /config/routes.cfm.

I deleted the entire foler with my coldbox and the hello app.

I went back to the Coldbox tutorial book and started from scratch.

I installed Coldbox

Then I created the hello.cfc app.

http://coldbox.srtechgroup.com/index.cfm - this page still works.

The link to the Hello app on the working page is http://coldbox.srtechgroup.com/index.cfm/hello and that URL still gives an error

http://coldbox.srtechgroup.com/index.cfm/hello/index.cfm - this link works and I was expecting the tutorial and the CLI would produce a page which has the proper link but the code:

<cfloop list="#getSetting(“RegisteredHandlers”)#" index=“handler”>

  • #handler#
  • does not resolve to a working URL link.

    What am I missing?

    Bo

    I don’t know Bo, there must be something off about your setup. “index” is the default action so you only need to have the handler name in the URL “hello” and it will automatically translate to “hello/index”.

    Thanks!

    ~Brad

    ColdBox Platform Evangelist
    Ortus Solutions, Corp

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

    This morning whatever was “off about the setup” has miraculously started working so I can move forward with the tutorial.

    I did restart the IIS services yesterday.

    Thank you!

    Thank you for the video link, now I know how to do a Pull Request.

    Bo