[Mono-aspnet-list] ASP.NET MVC 3 on Mono + FastCGI + Lighttpd + Raspberry Pi
n4s
e-david at need4speed.com
Sun Mar 3 14:27:17 UTC 2013
I'm trying to get ASP.NET MVC 3 running on Mono + FastCGI + Lighttpd +
Raspberry Pi.
But I keep getting:
System.Threading.ThreadAbortException: Thread was being aborted
Here are the steps I used:
A. Start from the Raspberry Server: Web Edition distro
B. Install Mono:
sudo apt-get install lighttpd mono-fastcgi-server
C. Configure Mono
index-file.names += ( "index.aspx", "default.aspx" )
var.mono_dir = "/usr/"
var.mono_shared_dir = "/tmp/"
var.mono_fastcgi_server = mono_dir + "bin/" + "fastcgi-mono-server4"
var.mono_fcgi_root = server.document-root
var.mono_fcgi_applications = "/net:/home/pi/www/net"
# Webapp path: http://server/net/HelloWorld
$HTTP["url"] =~ "^/net/" {
fastcgi.server = (
"" => ((
"socket" => mono_shared_dir + "fastcgi-mono-server",
"bin-path" => mono_fastcgi_server,
"bin-environment" => (
"PATH" => "/bin:/usr/bin:" + mono_dir +
"bin",
"LD_LIBRARY_PATH" => mono_dir + "lib:",
"MONO_SHARED_DIR" => mono_shared_dir,
"MONO_FCGI_LOGLEVELS" => "Standard",
"MONO_FCGI_LOGFILE" => mono_shared_dir +
"fastcgi.log",
"MONO_FCGI_ROOT" => mono_fcgi_root,
"MONO_FCGI_APPLICATIONS" =>
mono_fcgi_applications
),
"max-procs" => 1,
"check-local" => "disable"
))
)
}
D. Create a test project:
- Create a new ASP.NET MVC 3 Web Application with the Empty template
- Remove the EntityFramework reference
- Add a simple Model, View and Controller
- Add the following references:
System.Web.WebPages.Deployment
System.Web.WebPages.Razor
- Set Copy Local to true for the following references
System.Web.Helpers
System.Web.Mvc
System.Web.Razor
System.Web.WebPages
System.Web.WebPages.Deployment
System.Web.WebPages.Razor
- Set MvcBuildViews to true in the project file
- Build
- Publish
- Copy the files to the server
What's going wrong here?
ASP.NET webforms run fine.
--
View this message in context: http://mono.1490590.n4.nabble.com/ASP-NET-MVC-3-on-Mono-FastCGI-Lighttpd-Raspberry-Pi-tp4658804.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
More information about the Mono-aspnet-list
mailing list