Skip to main content
Inspiring
February 19, 2009
Question

error invoking cfc unauthorized

  • February 19, 2009
  • 6 replies
  • 1468 views
Hi there, would like to know if anyone else has encountered this particular error on a IIS6 server using CF8: "Error invoking CFC /'name of CFC' : Unauthorized".

This CFC works fine on my localhost, but in the midst of deploying to pre-production server for final testing. Getting issues there.

When accessing the CFC directly via URL: https://webserver/CFIDE/componentutils/cfcexplorer.cfc?method=getcfcinhtml&name=listing1&path=test.cfc I get an IIS error: 401.2 - Unauthorized: Access is denied due to server configuration.

Web logs haven't been much help either in locating a possible directory denying access. At this point we did double check to make sure /CFIDE/scripts/ has IUSR read & execute permissions. Ideas?

All test CFC's are getting the same error on this server, even those not calling a particular DB.
    This topic has been closed for replies.

    6 replies

    welkersAuthor
    Inspiring
    March 4, 2009
    apparently a known issue but can't find a solution: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:53351

    69915: The cfajaxproxy tag is not able to correctly locate CFCs that are
    in symbolically linked paths on the file system. Ensure that your
    CFCs are always available under hard linked paths.
    welkersAuthor
    Inspiring
    February 27, 2009
    FYI, I figured out that I can call CFC's with a cfrgid query but not binding a cfgrid to a CFC returntype = struct.

    this thread may be related to my issue as well:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=1&catid=3&threadid=1428236&enterthread=y

    also, after mapping CFCs in my CF admin panel, i can't call a CFC unless I use the full path dot notation to call the CFC. figured i'd be able to just call the CFC by name after mapping them in CF Admin.

    thoughts?
    Inspiring
    February 21, 2009
    post the code of your ActiveUsers function.

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/
    welkersAuthor
    Inspiring
    February 23, 2009
    sure...here is the CFC i'm calling. thanks.
    welkersAuthor
    Inspiring
    February 20, 2009
    OK...after further experimentation, I found out that CFC's do run on this server without any issues. From simple to DB queries...I can call these CFCs via a CFML page and display results. However, what I can't do and seems to be the issue now is that I'm trying to use a CFGRID. All related /CFIDE/ajax include scripts are accessible and not being blocked. So something unique is happening when putting my results into a CFGRID that has pagination and sorting.
    welkersAuthor
    Inspiring
    February 19, 2009
    to clarify I'm getting the error calling the CFC via the CFML code. for instance i'm trying to call my test page: cfgrid.cfm

    the code on that page: <cfgrid format="html" name="displayUsersActive" autowidth="yes" selectmode="row" striperows="yes" pagesize="10" bind="cfc:components.getUsers.ActiveUsers({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})">
    <cfgridcolumn name="intUserID" display="no">
    <cfgridcolumn name="txtLName" header="Last Name" headerbold="yes" href="../editUserInfo.cfm" hrefkey="intUserID">
    <cfgridcolumn name="txtFName" header="First Name" headerbold="yes">
    <cfgridcolumn name="txtMI" header="MI" width="30" headerbold="yes">
    <cfgridcolumn name="txtGrade" header="Grade" headerbold="yes">
    <cfgridcolumn name="txtServiceName" header="Service" headerbold="yes">
    </cfgrid>

    which calls this CFC "components.getUsers.ActiveUsers"

    hope that helps.
    Inspiring
    February 19, 2009
    welkers wrote:
    > All test CFC's are getting the same error on this server, even those not
    > calling a particular DB.

    The first thing to clarify is that the unauthorized error may not be to
    the CFC it self, but to the 'cfcexplorer'. If you look at the url
    provided that is what is trying to be called;
    "https://webserver/CFIDE/componentutils/cfcexplorer.cfc". This is an
    ColdFusion Administration utility to view a CFC, its methods, self
    documentation and public properties.

    If you try to directly call a CFC url in a browser, the ColdFusion
    engine will pass it to this utility for viewing, but one must be able to
    login to the CFIDE/Administrator either with an admin password or RDS
    password to use this utility.

    Are you getting errors when you try to access the CFC with CFML code?