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

xcoder cmre99 at cox.net
Sat Dec 20 14:02:55 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. 

 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 as a comment here so it appears as source and
not a failed image load

The basic aspx page: 
<%@ Page Language="C#" Inherits="WebMajik.Login" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<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" />
</head>
<body>
	
        <div class="clearboth" />
        
        <form id="form1" runat="server">
                <div>
    <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" />
                </div>
        </form>
</body>
</html>



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 
/home/pi/server/myserver/images/ServerLogo.png 
ASP reports it's "current" folder as /home/pi/server/myserver 
but the image is never displayed/loaded. 

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




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


More information about the Mono-aspnet-list mailing list