[Mono-list] - Deploying ASP.net MVC in Centos - `help'

Jorge Rodriguez Flores jorgeedison1 at gmail.com
Mon Dec 5 19:29:30 UTC 2016


Hello I'm completely new in mono.
I want to deploy a solution built in ASP.net MVC 4.0 framework application,
the development was done in WindowsSO / IIS.
Now I need deploy on a Operating System Centos using as NginX Web server.
I'm using Centos-6.8, Nginx-1.10 and mono-4.6.1.5.
My nginx configuration file is:

server {
    listen       80 default_server;
    listen       [::]:80 default_server;
    server_name  _;
    root /usr/share/nginx/html;
    #root /usr/share/nginx/html/Site;

    location / {
        fastcgi_index /;
        fastcgi_pass 127.0.0.1:9000;
        include fastcgi_params;
    }
   ...}

File fastcgi_params I include:

fastcgi_param  PATH_INFO          "";
fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;

Start service mono

fastcgi-mono-server4 /applications=/:/usr/share/nginx/html
/socket=tcp:127.0.0.1:9000 &


I access to http://localhost/Default.aspx or http://localhost/ for testing,
if it shows result.

The problem is when access to the Site folder http://localhost/Site/,
displays the following message:


*System.Web.HttpExceptionThe resource cannot be found.Description: HTTP
404.The resource you are looking for (or one of its dependencies) could
have been removed, had its name changed, or is temporarily unavailable.
Please review the following URL and make sure that it is spelled
correctly.Details: Requested URL: /Site/Exception stack trace:  at
System.Web.StaticFileHandler.ProcessRequest (System.Web.HttpContext
context) [0x000c6] in <d3ba84a338d241e2ab5397407351c9cd>:0   at
System.Web.HttpApplication+<Pipeline>c__Iterator1.MoveNext () [0x00dd7] in
<d3ba84a338d241e2ab5397407351c9cd>:0   at System.Web.HttpApplication.Tick
() [0x00000] in <d3ba84a338d241e2ab5397407351c9cd>:0 *


​In the Application Web.Config:​

...​<authentication mode="Forms">
  <forms loginUrl="~/Account/Login" timeout="2880" />
</authentication>


​The nginx user has privileges on the Site folder, may be missing some
dependency in the Web.Config of the application, any ideas? Thank you.​


-- 
Jorge Rodriguez



 Enviado con Mailtrack
<https://mailtrack.io/install?source=signature&lang=es&referral=jorgeedison1@gmail.com&idSignature=23>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-list/attachments/20161205/2e8cbeb3/attachment.html>


More information about the Mono-list mailing list