Home Server
New Blog Posts: Merging Reports - Part 1 and Part 2

No content provider for request

edited July 2003 in Server
Hello, again,

While trying to implement a server with parameters i'm getting a problem
using the rsWebTier.
My 'regular'-client, derived from the demo app with parameters works fine.
I'm able to check what user logged in and i'm showing only the 'allowed'
reports to that user.

When doing the some over a WebTier (testing as a WebApp-exe or ISAPI-dll),
the login works (i'm using codesite to 'monitor' my webserver) but then i'm
getting this error on the WebTier

EWebTierError TrsWebTier.GenerateContent: No Content provider for Request

Any suggestions ???
--
Harry Leboeuf
Email Inversed moc.silopenik@fueobelh (For Spam-Reason)
Visit us at http://www.kinepolis.com

Comments

  • edited July 2003


    The error you are receiving indicates that either the content parameter
    is missing or there is no content provider registered for the specified
    content type.

    I just wrote the following article that explains the ContentProvider
    architecture:


    ---------------------------------------------
    Tech Tips: WebTier Content Providers
    ---------------------------------------------

    The WebTier architecture dispatches WebRequests to appropriate
    ContentProviders. ContentProviders are responsible for processing a
    request and generating a response.

    Requests sent from a web browser to the webtier must include a content
    parameter. For example:

    content=Viewer


    In your WebTier application you can check this by checking
    TrsWebRequest.ContentType (or by checking
    TrsWebRequest.ContentParameters['content']). Either syntax checks the
    same parameter.


    RB Server ContentProviders
    ---------------------------

    Viewer - web report previewer
    Explorer - web report explorer
    SearchForm - web autosearch form
    Soap - web proxy for Thin Client applications using HTTP
    PDF - PDF report provider for Waler or Pragnaan, if registered









    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited July 2003
    I've added the code aWebRequest.ContentType = 'Viewer', but now i'm getting
    the next error

    TrsWebContentProviderViewer.ValidaterequestParameters : No volume name
    specified.

    I'm sure the server is running, when connection with a thin-client to the
    same server it works fine (program copied from the thin-client-parameters
    demo).


  • edited July 2003

    Perhaps this will help......


    ---------------------------------------------
    Tech Tips: How can I request that the webtier
    execute a specified report?
    ---------------------------------------------


    Question:
    ---------

    Without using the Web ReportExplorer, how can I request that the webtier
    execute a specified report?


    Solution:
    ---------

    The webtier processes requests for web content. These requests consists of

    1. The URL for the webtier

    example: http://127.0.0.1/rbWebPub/report.dll


    2. A parameter specifying the content type.

    example: content=viewer

    {note: content=viewer, is used to request report viewer content.}


    3. Additional parameters that are specific to the content request.

    volume=Report Forms (the volume name)
    Name=Basic\Biolife Table (the full path name to the report)
    frameset=1 (show the framset with the toolbar etc., this is required)


    Use a web browser to access the webtier demo that displays the report
    explorer.

    Notice that when you place the mouse over a report in the report explorer
    that the status bar in IE shows the url plus some params. That is the string
    required to run the report on the web tier.

    Example:
    http://127.0.0.1/rbWebPub/report.dll?content=viewer&volume=Report
    Forms&name=Basic\Biolife Table&framset=1


    So the parameters here are

    content=viewer (type of content is report viewer)
    volume=Report Forms (the volume name)
    Name=Basic\Biolife Table (the full path name to the report)
    frameset=1 (show the framset with the toolbar etc., this is required)





    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.