Skip to main content
March 19, 2011
Answered

Cant get CF9 to do anything

  • March 19, 2011
  • 1 reply
  • 501 views

I am a novice and have been at this for years, anything i try, i have managed to figure out.  Now i have cf9 with iis7 and am dead in the water.  My problem today is that if i make a page with an image on it, it wont display the image.  I have tried jpg and png, all i get is a white box.  I also dont get any of my style sheets.  It is displaying fine in dreamweaver but when i upload to test server (local machine) i get nothing.  When i right click the image box and check the path, it is correct.  The image is loaded in the directory.

Any help?

    This topic has been closed for replies.
    Correct answer 12Robots

    Typically images and CSS (and JS and other non CF assets) are served by IIS directly and the request does not involve ColdFusion at all. Can you browse directly to where the image is stored?  If so, can you provide a sampel URL where you can actually get at the image and also post how you are trying to get that image in your code?

    Does your CF code actually run correctly?  YOu say "Can't get CF9 to do anything", do you mean ANYTHING?  Will the ColdFusion code actually run?  Does the page get served?

    1 reply

    12Robots
    12RobotsCorrect answer
    Participating Frequently
    March 19, 2011

    Typically images and CSS (and JS and other non CF assets) are served by IIS directly and the request does not involve ColdFusion at all. Can you browse directly to where the image is stored?  If so, can you provide a sampel URL where you can actually get at the image and also post how you are trying to get that image in your code?

    Does your CF code actually run correctly?  YOu say "Can't get CF9 to do anything", do you mean ANYTHING?  Will the ColdFusion code actually run?  Does the page get served?

    josh_adams1
    Participating Frequently
    March 20, 2011

    This sounds like a Windows/IIS permissions issue. I have a blog post that, while it deals with a situation involving SharePoint, I think might contain some pertinent information that could help you here. The direct link is http://blog.joshuaadams.com/index.cfm/2009/11/24/403-Forbidden-Error-on-SharePoint-Images. But just in case some time way farther down the line someone finds this thread and can't get to my blog post directly for some reason (say I were to change the URL for some reason), try going to the main page of my blog at http://blog.joshuaadams.com and searching for SharePoint--that post should come up.

    Josh