[Mono-aspnet-list] How to run mvc4 internet application template in mono
Andrus Moor
eetasoft at online.ee
Sat Aug 24 20:04:24 UTC 2013
MVC4 application is created using Microsoft Visual Studio Express 2012 for
Web Internet application project template.
Application is published to windows file system and copied to Debian server.
mod_mono and Mono 3.2 are used to run it.
Running application shows application default page without formatting.
After home page request which returns page content below, browser makes 3
requests which return 404 errors:
/mvc4/Content/css?v= GET 404
/mvc4/bundles/modernizr?v=qVODBytEBVVePTNtSFXgRX0NCEjh9U_Oj8ePaSiRcGg1
GET 404
/mvc4/bundles/jquery?v=JzhfglzUfmVF2qo-weTo-kvXJ9AJvIRBLmu11PgpbVY1 GET
404
How to fix this ?
Running same application from Visual Studio by pressing F5 works OK.
Page source generated from Mono is below.
Andrus.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Home Page - My ASP.NET MVC Application</title>
<link href="/mvc4/favicon.ico" rel="shortcut icon"
type="image/x-icon" />
<meta name="viewport" content="width=device-width" />
<link href="/mvc4/Content/css?v=" rel="stylesheet"/>
<script
src="/mvc4/bundles/modernizr?v=qVODBytEBVVePTNtSFXgRX0NCEjh9U_Oj8ePaSiRcGg1"></script>
</head>
<body>
<header>
<div class="content-wrapper">
<div class="float-left">
<p class="site-title"><a href="/mvc4/">your logo
here</a></p>
</div>
<div class="float-right">
<section id="login">
<ul>
<li><a href="/mvc4/Account/Register"
id="registerLink">Register</a></li>
<li><a href="/mvc4/Account/Login" id="loginLink">Log in</a></li>
</ul>
</section>
<nav>
<ul id="menu">
<li><a href="/mvc4/">Home</a></li>
<li><a href="/mvc4/Home/About">About</a></li>
<li><a
href="/mvc4/Home/Contact">Contact</a></li>
</ul>
</nav>
</div>
</div>
</header>
<div id="body">
<section class="featured">
<div class="content-wrapper">
<hgroup class="title">
<h1>Home Page.</h1>
<h2>Modify this template to jump-start your ASP.NET MVC
application.</h2>
</hgroup>
<p>
To learn more about ASP.NET MVC visit
<a href="http://asp.net/mvc" title="ASP.NET MVC
Website">http://asp.net/mvc</a>.
The page features <mark>videos, tutorials, and
samples</mark> to help you get the most from ASP.NET MVC.
If you have any questions about ASP.NET MVC visit
<a href="http://forums.asp.net/1146.aspx/1?MVC"
title="ASP.NET MVC Forum">our forums</a>.
</p>
</div>
</section>
<section class="content-wrapper main-content clear-fix">
<h3>We suggest the following:</h3>
<ol class="round">
<li class="one">
<h5>Getting Started</h5>
ASP.NET MVC gives you a powerful, patterns-based way to build
dynamic websites that
enables a clean separation of concerns and that gives you full
control over markup
for enjoyable, agile development. ASP.NET MVC includes many features
that enable
fast, TDD-friendly development for creating sophisticated
applications that use
the latest web standards.
<a href="http://go.microsoft.com/fwlink/?LinkId=245151">Learn
moreb&</a>
</li>
<li class="two">
<h5>Add NuGet packages and jump-start your coding</h5>
NuGet makes it easy to install and update free libraries and tools.
<a href="http://go.microsoft.com/fwlink/?LinkId=245153">Learn
moreb&</a>
</li>
<li class="three">
<h5>Find Web Hosting</h5>
You can easily find a web hosting company that offers the right mix
of features
and price for your applications.
<a href="http://go.microsoft.com/fwlink/?LinkId=245157">Learn
moreb&</a>
</li>
</ol>
</section>
</div>
<footer>
<div class="content-wrapper">
<div class="float-left">
<p>© 2013 - My ASP.NET MVC Application</p>
</div>
</div>
</footer>
<script
src="/mvc4/bundles/jquery?v=JzhfglzUfmVF2qo-weTo-kvXJ9AJvIRBLmu11PgpbVY1"></script>
</body>
</html>
More information about the Mono-aspnet-list
mailing list