[Mono-aspnet-list] Debian RPi lighttpd ASP.Net works but fails to load images

xcoder cmre99 at cox.net
Sat Dec 20 14:13:11 UTC 2014

I use the raspberry pi running Debian, lighttpd and Mono to serve ASP.Net
pages.  The pages all work fine but any reference to an img tag in tha aspx
files leaves a blank image. 
img id="ServerLogo" src="./images/ServerLogo.png" 
 fails to load an image even though the full path obtained from the dot
notation is the correct path to the file. 
Note that the img tag is shown without the leading and trailing brackets
here so it appears as source and not a failed image load

The basic aspx page: 
<%@ Page Language="C#" Inherits="WebServer.Login" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<head runat="server">
        <title>Server - Login</title>
        <link type="text/css" rel="stylesheet" href="./css/ServerCss.css" />
        <link rel="shortcut icon" href="./images/favicon.ico" />
	img id="ServerLogo" src="./images/ServerLogo.png" 
        <div class="clearboth" />
        <form id="form1" runat="server">
    <asp:Literal ID="Literal1" runat="server" /><br />
    Password:  <asp:TextBox ID="Password" runat="server" TextMode="Password"
/><br />
    <asp:Button ID="LoginButton" runat="server" Text="Log In"
OnClick="LoginClick" />

The following is the lighttpd.conf file fastcgi server setup: 
  fastcgi.server    = ( 
        ".aspx" => 
        "socket" => "/tmp/fastcgi-mono-server2", 
        "bin-path" => "/usr/bin/fastcgi-mono-server2", 
        "bin-environment" => ( 
          "PATH" => "/bin:/usr/bin", 
          "LD_LIBRARY_PATH" => "/usr/lib:", 
          "MONO_SHARED_DIR" => "/tmp/", 
          "MONO_FCGI_LOGLEVELS" => "Standard", 
          "MONO_FCGI_LOGFILE" => "/tmp/fastcgi.log", 
          "MONO_FCGI_ROOT" => "/home/pi/server/myserver", 
          #"MONO_FCGI_ROOT" => "/", 
          "MONO_FCGI_APPLICATIONS" => "/server:/home/pi/server/myserver" 
     "max-procs" => 1, 
     "check-local" => "disable", 
     "docroot" => "/home/pi/server/myserver" # "/" # remote server may use
its own docroot 

The full path to the image is 
ASP reports it's "current" folder as /home/pi/server/myserver 
but the image is never displayed/loaded. 

I can double-click an html file that references the image in the same way
and it will be displayed correctly.

I have chased this problem into a blind alley.   
Any ideas?? 

View this message in context: http://mono.1490590.n4.nabble.com/Debian-RPi-lighttpd-ASP-Net-works-but-fails-to-load-images-tp4665059.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.

More information about the Mono-aspnet-list mailing list