Home Server

New tutorials

edited October 2010 in Server
Hei!

Do you newer tutorials on RBServer "Publish reports to web"? It would be
useful with tutorials
on Windows Vista, Windows 7 and IIS7. I can't get my webtier to work on IIS
7. I have read/used
"How to ...deploy to IIS7" from RBWiki without success. Please help?

Regards,
Terje Syversen

Comments

  • edited October 2010
    The purpose of the rbWiki 'How To...Deploy to IIS7' is to serve as a
    tutorial for deploying to IIS7.

    I have the WebTier ISAPI demo deployed to IIS7 on Windows 7 here and also on
    Vista - both are 32-bit.

    Are you able to complete the steps in the rbWiki How To article? What
    specific issue are you encountering?



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2010
    I have done exactly what "How to " describes. When i attempt to access the
    webtier with url, i get msg that tells me to
    select a program to open/run this file. Any ideas on what the problem is?
    This webtier runs ok on another server (Win2003).

    Terje

  • edited October 2010

    From IIS Manager, select the rbWebPub virtual directory. Select Content
    View. Select the report.dll and press the right mouse button, then select
    Edit Permissions. Make sure users have full control (read, execute, etc.).

    From IIS Manager, select the root node. From Features View, select ISAPI and
    CGI Restrictions, then double-click. Make sure the entry for the rbWebTier
    is set to 'Allowed' and contains the full path and file name for the
    report.dll.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2010
    This is a multi-part message in MIME format.
  • edited October 2010
    From IIS Manager, select the rbWebPub virtual directory. From the Features
    View, select Handler Mappings and double-click. Next, select the row for
    ISAPI-dll. Press the right mouse button and select Edit Feature
    Permissions... The dialog checkboxes for Read, Script, Execute should all be
    checked.

    Each time you change settings and want to test, you first need to restart
    the web server and also restart the Application Pool.



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2010
    That got me one step further and i get no errors now. But i don't get any
    reportexplorer on web either.
    I know that the ReportServer is running, and is connected to the sql-server.
    When are the WebTier.dll
    created? I have put a logging into OnCreate event of the WebModule to see if
    it is created. But this event never
    occurs. I'm lost. I notice that i don't have the CacheExplorer folder. This
    should be created automatically
    shouldn't it?

    Regards,
    Terje Syversen




  • edited October 2010
    What error or response do you receive when calling the WebTier?

    Yes, the cache folder would be created the first time the module is invoked.
    The ISAPI should have full control (read/write, etc) privileges to the
    directory.

    As a test try using Delphi's web broker to create a simple ISAPI dll that
    returns a string like 'Hello World' (and does not contain the WebTier) Then
    deploy the test ISAPI module to your web server and test. Does it work?



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2010
    I get no errors when i'm callin the WebTier. I just get no result, only the
    "Done" in the browsers down-left corner. Is there
    something simple i can do in the WebTier to check if it is ever called?

    I have deployed the Delphi demo WebSnapSurveyISAPI.dll to web server and
    that works very well,
    so now i'm even more confused. At least i'm able to get something to work.

    Regards,
    Terje


  • edited October 2010
    The first time the WebTier receives a request, its internal Initialize
    method is called. The Initialize method creates the WebTier.CacheDirectory.
    If you don't see the cache directory being created, then the issue is that
    the Windows 7 security is preventing the WebTier from creating the
    directory.

    Windows 7 and Vista have very tight security. By default programs do not
    have Administrator privileges, they have only User privileges. User
    privileges cannot write to the folders on the hard drive, unless you
    configure the folder to allow it.

    For IIS 7 the app pool worker process that hosts ISAPI modules runs under an
    account called NETWORKSERVICE by default. NETWORKSERVICE is a built-in
    Windows identity. It doesn't require a password and has only user privileges

    Therefore you need to configure the security for the root folder to allow
    full control by user account group called Users.

    The other alternative is to configure the app pool to run under a different
    user account. You could create a special account called MyWebServices or
    whatever. Then give that account special security access.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2010
    I have configured the app pool to run under a different account with all
    privileges. I have configured the folder to allow full control for any user.
    Still no result. Shouldn't the Webtier give me a errormessage or something
    to tell me what fails? If a CreateDirectory or something fails it should
    give me a screen-message or write to a logfile. I have spent a lot a time
    trying to figure out what i'm doing wrong, and a message from WebTier would
    be useful? Is there no way i can get the WebTier to tell me what fails?

    Regards,
    Terje Syversen



  • edited October 2010

    Try modifying your WebModule code as shown below, this will return an error
    page for all errors. For the next maintenance release, we can add logic to
    generate an error page for initialization errors.

    try
    Response.Content := rsWebTier1.ProcessWebRequest(Request.QueryFields,
    Request.Content);

    except
    on E: Exception do
    Response.Content := rsWebTier1.ErrorPageClass.CreateErrorPage(E);

    end;


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2010
    This is a multi-part message in MIME format.
  • edited October 2010
    It is against newsgroup rules to post attachments. Attachments may be sent
    to support@. I do not open any attachments posted to the newsgroups.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2010
    Sorry about that. The errorpage is:

    Servererror in application DEFAULT WEB SITE
    HTTP-error 404.0 - Not Found
    URL-adress :
    http://localhost:80/Rapporter/WebTier/Cache/{1C3BFE47-92D4-48A2-955E-3FE184F9845E}/ListView.htm
    Fysical path :
    D:\BoMan\RAD2009\BDWebReport\WebTier\WebTier\Cache\{1C3BFE47-92D4-48A2-955E-3FE184F9845E}\ListView.htm.

    As you can see in fysical path there is "\WebTier\WebTier\". Where is this
    extra "WebTier" added? It is not set in the webmodul or in the IIS. Does
    this give you any clues of what the problem is?

    Thank you for your effort, and your patience.

    Regards,
    Terje
  • edited October 2010
    Please email your webtier project in zip format to support@ so that can see
    exactly how it is configured.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

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