Running under Cassini. No images

Last post 03-18-2004 1:52 PM by n1ckP. 5 replies.

Sort Posts:

  • Running under Cassini. No images

    09-19-2003, 1:46 PM
    • Member
      50 point Member
    • seanx
    • Member since 03-24-2003, 3:19 PM
    • Posts 10
    has any one tried running dnn using cassini instead of IIS? When I do, it works fine but I have no images, and the fonts look wrong. I am guessing that it can't find hte stylesheet.

    Any ideas or suggestions?

    Sean
    Sean Cross

    mailto:sean@picsprint.com



    Pics Print - The photo printing solution for Windows. http://www.picsprint.com



    http://www.Intuitex.com - Multimedia software for Windows
  • Re: Running under Cassini. No images

    03-17-2004, 10:58 PM
    • Member
      650 point Member
    • n1ckP
    • Member since 06-18-2002, 10:09 AM
    • Washington DC
    • Posts 130
    I'm having the same problem. When looking at the HTML source, the paths seem to be correct. I'm running Cassini with the virtual path as http://localhost/dnn. The paths for the images and the stylesheets appear in the HTML as http://localhost/dnn/images/whatever.jpg which SHOULD be correct but the images don't appear and it can't find the stylesheets. Anybody find a solution?
    "Can't sleep, clowns will eat me... can't sleep clowns will eat me, can't sleep clowns will eat me"





    Nick Patterson


    Systems Architect
  • Re: Running under Cassini. No images

    03-18-2004, 3:10 AM
    • Contributor
      5,421 point Contributor
    • xpdit
    • Member since 08-25-2002, 5:20 PM
    • Victoria, BC, CANADA
    • Posts 1,086
    try asking this question on the cassini forums here at asp.net, you may have results faster...
    Intuition without concept is blind; Concept without intuition is empty -- I. Kant : Critique of Pure Reason

    In the olden days, books were burned. Now the website is shut down.

    KodHedZ Software Development
  • Re: Running under Cassini. No images

    03-18-2004, 10:17 AM
    • Participant
      1,005 point Participant
    • dagilleland
    • Member since 07-03-2003, 2:07 PM
    • Edmonton, Alberta, Canada
    • Posts 201
    I did a quick search under the Cassini forums for "images" and found the following, which might be of interest (I'm not using Cassini myself, but I am considering exploring it sometime in the next year).

    One of the more relevant posts might be this one:
    http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=396550
    In it, they identify Forms Authentication combined with denying access to anonymous users as the culprit.


    You may also want to read this posting on the Cassini forum:
    http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=507080

    In it, [Killman] writes:
    ---
    I believe the issue is that Infragistics uses virtual folders to access images and scripts.
    For example the virtual folder /ig_common maps to C:\Inetpub\wwwroot\aspnet_client\infragistics\
    Cassini doesn't support virtual folders, so that's why it won't find the files. There are 2 solutions:
    1) Create a folder named ig_common in your root web. Then copy the files from the folder above.
    2) Use CassiniEx (shameless plug) as it supports virtual folders.
    ---

    =============
    Alternatively, look at the posting http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=451334, where Killman also writes:
    ---
    In Cassini, unlike IIS, all files except for the /aspnet_client scripts are passed to the HttpRuntime. In IIS, only those extensions that are mapped to the ASP.NET Isapi Extension will be processed by the runtime.

    The problem with this is that if you enable forms authentication and static resources like images, stylesheets, and XML files are stored in a protected folder, ASP.NET will deny access to them until the user is authenticated.

    I noticed the first time I enabled forms authentication and set <deny users="?" />. When I was sent to the Login page, none of the images or stylesheets were loaded!

    To work around this:

    1) Create a new folder called 'public' and move all your static files there
    2) Add a new Web.config file in the 'public' folder with the contents:

    <configuration>
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </configuration>
    ...
    ---

    I hope some of this is useful :)
    - Dan


  • Re: Running under Cassini. No images

    03-18-2004, 12:41 PM
    • Star
      9,820 point Star
    • jbrinkman
    • Member since 06-18-2002, 6:28 PM
    • Posts 1,962
    • TrustedFriends-MVPs
    You know... This is why this is such a great community. Most newsgroups would have been satisfied with, go look somewhere else for the answer. The DNN community says, we'll help, even if we have to go lookup the answer for you. Great job. This is something that Rainbow and the other groups only wish they could duplicate.
    Joe Brinkman
  • Re: Running under Cassini. No images

    03-18-2004, 1:52 PM
    • Member
      650 point Member
    • n1ckP
    • Member since 06-18-2002, 10:09 AM
    • Washington DC
    • Posts 130
    I agree 100%. This goes above and beyond the normal call of duty and is VERY MUCH appreciated by everyone. Not only does this kind of participation help the original poster, but it helps everyone who happens to have the same problem in future. I'll try the suggestions made tonight and let everyone know what happens. Thanks again dagilleland!!
    "Can't sleep, clowns will eat me... can't sleep clowns will eat me, can't sleep clowns will eat me"





    Nick Patterson


    Systems Architect
Page 1 of 1 (6 items)