Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
0
answers
67
views
How do I create a windows server vm on existing linux server running cPanel?
I have a web server running Almalinux and cPanel (LAMP Stack). We need to run a new web app created with ASP.net and SQL Server on the same server and according to our research, there is no way to do that from inside cPanel or WHM. So, we have been considering creating a Windows Server VM for that p...
I have a web server running Almalinux and cPanel (LAMP Stack).
We need to run a new web app created with ASP.net and SQL Server on the same server and according to our research, there is no way to do that from inside cPanel or WHM.
So, we have been considering creating a Windows Server VM for that purpose.
Based on the above, I have 2 questions:
1. Is it possible to achieve this setup using standard vmware software, or does it require any special tools or considerations?
2. Will this be optimal for the situation described, or am I missing something or better options?
Ameer Elsherif
(1 rep)
Sep 17, 2023, 11:11 AM
• Last activity: Sep 17, 2023, 04:35 PM
0
votes
1
answers
524
views
How to install previous dotnet versions alongside latest versions?
I'm using PopOs 21.10 and use the latest dotnet versions [![enter image description here][1]][1] Now I have to install the previous version [dotnet core 3.1][2] I tried wget https://packages.microsoft.com/config/ubuntu/21.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo apt-get upd...
I'm using PopOs 21.10 and use the latest dotnet versions
Now I have to install the previous version dotnet core 3.1
I tried
wget https://packages.microsoft.com/config/ubuntu/21.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-3.1
but get the error
> E: Unable to locate package dotnet-sdk-3.1
> E: Couldn't find any package by glob 'dotnet-sdk-3.1'
I also tried to change the package name
sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y aspnetcore-sdk-3.1
but get similiar errors. When downloading the tar archive I run these commands from inside the downloads directory
mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-3.1.419-linux-arm64.tar.gz -C $HOME/dotnet
export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet
but even after restarting I can't find any 3.1 version on my machine. Would someone mind helping on how to install previous versions without removing other ones?

Question3r
(11 rep)
May 15, 2022, 09:57 AM
• Last activity: May 16, 2022, 05:10 PM
1
votes
2
answers
466
views
Developing asp.net mvc on linux
I am trying to get rid of Windows, and switch to Fedora. In college I'm learning a lot of asp.net MVC 5. Now. I know I can do asp.net Core on Linux, with vs code and so on, but is it possible for me to use something like Rider, to develop web apps using MVC 5? I tried using Rider, but it yelled at m...
I am trying to get rid of Windows, and switch to Fedora. In college I'm learning a lot of asp.net MVC 5.
Now. I know I can do asp.net Core on Linux, with vs code and so on, but is it possible for me to use something like Rider, to develop web apps using MVC 5? I tried using Rider, but it yelled at me for not having msbuild.
I looked into mono, but after some research I don't know if it's good. The problem is my projects need to be compatible with my professor's Visual Studio on Windows. Is there a semi normal way to make it work?
I'm using Fedora.
Alex Ironside
(351 rep)
Sep 21, 2017, 10:34 PM
• Last activity: May 23, 2021, 12:11 PM
0
votes
2
answers
1634
views
How to access a website hosted on an Ubuntu virtual machine on Azure?
I'm using an Ubuntu 14.10 virtual machine located on Azure and I'm accessing it via a PuTTY client. I've installed required software like Nginx and Mono, and I'm trying to host ASP.NET 5 webapp on Ubuntu. Which IP address can be used instead of domain name (because I don't have one :) ) to...
I'm using an Ubuntu 14.10 virtual machine located on Azure and I'm accessing it via a PuTTY client. I've installed required software like Nginx and Mono, and I'm trying to host ASP.NET 5 webapp on Ubuntu.
Which IP address can be used instead of domain name (because I don't have one :) ) to test webapp hosted on Ubuntu? I want to access website from anywhere, Windows, my phone, etc.
In one tutorial, these are the Nginx configurations in .conf file
server {
listen 80;
server_name www.;
client_max_body_size 10M;
location / {
proxy_pass http://localhost:5004/;
proxy_redirect off;
proxy_set_header HOST $host;
proxy_buffering off;
}
}
I can't see the website inside Ubuntu because I don't have any kind of GUI installed.
DetectiveShmee
(101 rep)
Mar 19, 2015, 11:34 AM
• Last activity: Mar 31, 2021, 07:27 AM
3
votes
1
answers
5691
views
mod-mono-server 4 is not working, while 2 does
I need to deploy an ASP.NET MVC4 (MVC3 at least) application on Centos 6 server. I've installed Mono 3.2.1, XSP4, mod_mono (for use with apache web server) and succesfully ran the test application that goes with mono. I used a config tool to create a config for app directory and deployed an empty AS...
I need to deploy an ASP.NET MVC4 (MVC3 at least) application on Centos 6 server.
I've installed Mono 3.2.1, XSP4, mod_mono (for use with apache web server) and succesfully ran the test application that goes with mono. I used a config tool to create a config for app directory and deployed an empty ASP.NET WebPages project created in VS2012 on .Net 2.0 - it ran ok. But I need to run an .net 4.5 or at least 4.0 application, so I've set the MonoServerPath to mod-mono-server4 instead of mod-mono-server2 in the config, but now i'm getting a "Service Temporarily Unavailable" error while trying to access the asp.net project directory (even empty).
What should I check for?
**Update:** I checked the apache log and here what it shows:
mod-mono-server4
Exception caught during reading the configuration file:
System.MissingMethodException: Method not found: 'System.Configuration.IConfigurationSectionHandler.Create'.
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in :0
at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in :0
at System.Configuration.ConfigurationManager.get_AppSettings () [0x00000] in :0
at Mono.WebServer.Apache.Server.get_AppSettings () [0x00001] in /usr/src/xsp-2.10.2/src/Mono.WebServer.Apache/main.cs:208
at Mono.WebServer.Apache.Server+ApplicationSettings..ctor () [0x0002a] in /usr/src/xsp-2.10.2/src/Mono.WebServer.Apache/main.cs:63
mod-mono-server4
Listening on: /tmp/mod_mono_server_Unreal
Root directory: /var/www/html/Unreal
Error: An exception was thrown by the type initializer for System.Net.Sockets.Socket
mod-mono-server4
Exception caught during reading the configuration file:
System.MissingMethodException: Method not found: 'System.Configuration.IConfigurationSectionHandler.Create'.
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in :0
at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in :0
at System.Configuration.ConfigurationManager.get_AppSettings () [0x00000] in :0
at Mono.WebServer.Apache.Server.get_AppSettings () [0x00001] in /usr/src/xsp-2.10.2/src/Mono.WebServer.Apache/main.cs:208
at Mono.WebServer.Apache.Server+ApplicationSettings..ctor () [0x0002a] in /usr/src/xsp-2.10.2/src/Mono.WebServer.Apache/main.cs:63
mod-mono-server4
Listening on: /tmp/mod_mono_server_Unreal
Root directory: /var/www/html/Unreal
Error: An exception was thrown by the type initializer for System.Net.Sockets.Socket
mod-mono-server4
Exception caught during reading the configuration file:
System.MissingMethodException: Method not found: 'System.Configuration.IConfigurationSectionHandler.Create'.
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in :0
at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in :0
at System.Configuration.ConfigurationManager.get_AppSettings () [0x00000] in :0
at Mono.WebServer.Apache.Server.get_AppSettings () [0x00001] in /usr/src/xsp-2.10.2/src/Mono.WebServer.Apache/main.cs:208
at Mono.WebServer.Apache.Server+ApplicationSettings..ctor () [0x0002a] in /usr/src/xsp-2.10.2/src/Mono.WebServer.Apache/main.cs:63
mod-mono-server4
Listening on: /tmp/mod_mono_server_Unreal
Root directory: /var/www/html/Unreal
Error: An exception was thrown by the type initializer for System.Net.Sockets.Socket
[Wed Sep 25 08:45:13 2013] [error] Failed to connect to mod-mono-server after several attempts to spawn the process.
Vladimir Glushkov
(181 rep)
Sep 25, 2013, 12:40 PM
• Last activity: Nov 19, 2020, 07:46 PM
0
votes
1
answers
520
views
launch a dotnet core executable through daemon systemd in relative path
I have developed and published a web application on `dotnet core` for linux arm machine. To do this, the command has been launched: ``` dotnet publish --runtime linux-arm -p:PublishSingleFile=true ``` And as a result gives the directory: ``` Mode LastWriteTime Length Name ---- ------------- ------ -...
I have developed and published a web application on
dotnet core
for linux arm machine. To do this, the command has been launched:
dotnet publish --runtime linux-arm -p:PublishSingleFile=true
And as a result gives the directory:
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 10/03/2020 8:56 wwwroot
-a---- 09/03/2020 10:54 162 appsettings.Development.json
-a---- 09/03/2020 10:54 192 appsettings.json
-a---- 10/03/2020 8:56 108097487 coremonitor
-a---- 09/03/2020 12:59 7248 coremonitor.pdb
-a---- 10/03/2020 8:56 474 web.config
Where coremonitor
is the executable. This data is sent to the server and stored in the path /root/datalogger/linux-arm/
. Then we created the systemd daemon to launch it:
[Unit]
Description=Data Logger Monitor Daemon
[Service]
ExecStart=./coremonitor
WorkingDirectory=/root/dataloggermonitor/linux-arm
User=dotnetuser
Group=dotnetuser
Restart=on-failure
SyslogIdentifier=DataLoggerMonitor-Service
PrivateTmp=true
[Install]
WantedBy=multi-user.target
After restarting, I get the following systemd log (systemctl status dataloggermonitor
):
● dataloggermonitor.service - Data Logger Monitor Daemon
Loaded: error (Reason: Invalid argument)
Active: inactive (dead)
Francisco de Javier
(1311 rep)
Mar 10, 2020, 09:42 AM
8
votes
2
answers
1361
views
Has anyone got any performance numbers comparing IIS and .NET to Cherokee and Mono?
I am setting up a development server and want to set it up to serve ASP.NET pages using Mono. I am planning on using Cherokee and Mono ([http://www.cherokee-project.com/doc/cookbook_mono.html][1]) and wondered if anyone had done any performance testing comparing the Unix based stack to the Windows b...
I am setting up a development server and want to set it up to serve ASP.NET pages using Mono. I am planning on using Cherokee and Mono (http://www.cherokee-project.com/doc/cookbook_mono.html ) and wondered if anyone had done any performance testing comparing the Unix based stack to the Windows based.
Larry Smithmier
(465 rep)
Aug 10, 2010, 11:22 PM
• Last activity: Feb 18, 2019, 10:31 AM
2
votes
0
answers
104
views
Mono/ASPvNext Distro?
Is there a preconfigured linux distro for running mono applications on linux? I would like to have a "clean working" environment to start from, so I can test my stuff works, before I order a linux box and start to migrate my application. I am interested in running ASP.net vNext on linux too, though...
Is there a preconfigured linux distro for running mono applications on linux? I would like to have a "clean working" environment to start from, so I can test my stuff works, before I order a linux box and start to migrate my application. I am interested in running ASP.net vNext on linux too, though this is not a 100% requirement of any pre configured is.
Jarmez De La Rocha
(121 rep)
Mar 25, 2015, 08:40 AM
• Last activity: Nov 25, 2018, 11:04 PM
2
votes
0
answers
306
views
mod_mono on SLES 12.1 fails to encrypt ASP.Net web.config
I am trying to migrate an ASP.Net (2.0) VB web app from a SLES 11 server to a new SLES 12 server. Unfortunately, mono is no longer supported by Novell / SUSE / NetIQ folk. This is my first time developing for a mono / mod_mono Apache combination. It has been quite a learning experience. I am not sur...
I am trying to migrate an ASP.Net (2.0) VB web app from a SLES 11 server to a new SLES 12 server. Unfortunately, mono is no longer supported by Novell / SUSE / NetIQ folk.
This is my first time developing for a mono / mod_mono Apache combination. It has been quite a learning experience. I am not sure if I have everything (mono versions / repos / configs) lined-up properly. A lot has changed since Visual Studio 2008. I am hoping an ex-Novell or other mono expert can help me get things straitened out.
So, after much effort, I have managed to get a somewhat working solution, but I cannot seem to encrypt the web.config. Instead of producing an encrypted web.config connectionStrings section, the protect call eats most of the file, and gives the error page with the following message
> System.Xml.XmlException
>
> Root element is missing.
no wonder as the web config is reduced to ...
from
?xml version="1.0" encoding="utf-8"?>
Here is the method that is called to do the encryption (file eating)
Public Sub webencrypt(ByVal lEncrypt As Boolean)
Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~")
Dim configSection As ConfigurationSection = config.GetSection("connectionStrings")
If lEncrypt Then
If Not configSection.SectionInformation.IsProtected Then
configSection.SectionInformation.ProtectSection("RsaProtectedConfigurationProvider")
config.Save()
End If
End If
End Sub
**I have tried** code from: http://www.developersalley.com/blog/post/2011/11/22/How-To-Protect-Webconfig-File.aspx
and from:
http://devproconnections.com/aspnet/encrypting-configuration-file-sections
**Version Info**
- Apache2 (2.4.16)
- Apache2-mod-mono (3.12-1)
- Mono (4.2.2.30)
- ASP.Net (2.0)
**mod-mono-serverX.exe**
Another mystery is that mod-mono-server2.exe errors are appearing in the apache log. *Why is mod-mono-server2.exe (its wrapper in /usr/bin) being called ?*
> Cannot open assembly '/usr/lib/mono/2.0/mod-mono-server2.exe': No such
> file or directory.
I specifically use the apache mod_mono directive MonoServerPath to call mod-mono-server4.exe.
> ... MonoServerPath webtest "/usr/bin/mod-mono-server4" ...
Which calls
/usr/lib/mono/4.5/mod-mono-server4.exe
that points to
mod-mono-server4.exe -> ../gac/mod-mono-server4/4.2.0.0__0738eb9f132ed756/mod-mono-server4.exe
mod-mono-server2.exe is not installed with the latest mono AFAIK. Many combinations / tests are required to figure this out as the docs still refer to mod-mono-server for ASP 1 and mod-mono-server2 for ASP 2 .... and not a word about mod-mono-server4.
I can ignore the errors and / or re-point the mono wrappers to all point to mod-mono-server4 ... but that feels wrong too.
Colin
(21 rep)
Mar 10, 2016, 09:05 PM
• Last activity: Dec 22, 2016, 01:46 PM
0
votes
0
answers
478
views
How to render ASP.NET's Script Manager followed by the UpdatePanel in webpage on Ubuntu 16.04?
I wish to find out how to render ASP.NET's Script Manager followed by the UpdatePanel in an webpage on Ubuntu 16.04. The following aspx script code runs fine on Windows 7 Microsoft Visual Studio 2013 combined with Xamarin Studio. However, when I request the URL 127.0.0.1:9000/Tutorial.aspx in a Fire...
I wish to find out how to render ASP.NET's Script Manager followed by the UpdatePanel in an webpage on Ubuntu 16.04.
The following aspx script code runs fine on Windows 7 Microsoft Visual Studio 2013 combined with Xamarin Studio.
However, when I request the URL 127.0.0.1:9000/Tutorial.aspx in a Firefox web browser with apache2 and xsp4 running , I encounter the following exception.
System.InvalidOperationException
The control with ID 'UpdatePanel1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
Description: HTTP 500.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): System.Web.Extensions.
Exception stack trace:
at System.Web.UI.UpdatePanel.get_ScriptManager () in :0
at System.Web.UI.UpdatePanel.RegisterPanel () in :0
at System.Web.UI.UpdatePanel.OnInit (System.EventArgs e) in :0
at System.Web.UI.Control.InitRecursive (System.Web.UI.Control namingContainer) in :0
at System.Web.UI.Control.InitRecursive (System.Web.UI.Control namingContainer) in :0
at System.Web.UI.Control.InitRecursive (System.Web.UI.Control namingContainer) in :0
at System.Web.UI.Page.InternalProcessRequest () in :0
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) in :0
">
Please suggest a solution which enables me to avoid the above exception.
I used this URL: https://stackoverflow.com/questions/7525525/how-to-add-an-updatepanel-controls-to-a-page-programmatically and I failed to add an update panel control to my test web page programmatically.
System.NullReferenceException
Object reference not set to an instance of an object
Description: HTTP 500.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): System.Web.Extensions.
Exception stack trace:
at System.Web.Handlers.ScriptResourceHandler.EncryptString (System.String s) in :0
at System.Web.Handlers.ScriptResourceHandler+RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl (System.Reflection.Assembly assembly, System.String resourceName, System.Globalization.CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) in :0
at System.Web.Handlers.ScriptResourceHandler.GetScriptResourceUrl (System.Reflection.Assembly assembly, System.String resourceName, System.Globalization.CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) in :0
at System.Web.UI.ScriptReference.GetUrlFromName (System.Web.UI.ScriptManager scriptManager, IControl scriptManagerControl, Boolean zip) in :0
at System.Web.UI.ScriptReference.GetUrl (System.Web.UI.ScriptManager scriptManager, IControl scriptManagerControl, Boolean zip) in :0
at System.Web.UI.ScriptManager.RegisterScripts () in :0
at System.Web.UI.ScriptManager.OnPagePreRenderComplete (System.Object sender, System.EventArgs e) in :0
at System.Web.UI.Page.OnPreRenderComplete (System.EventArgs e) in :0
at System.Web.UI.Page.ProcessLoadComplete () in :0
at System.Web.UI.Page.InternalProcessRequest () in :0
[EDIT June 29 2016 7:06P.M] I discovered this evening that a major cause of my problem is that I was mixing apples and oranges. The "apples" being Microsoft's asp:ScriptManager and the "oranges" being Mono's asp:ScriptManager. Does any expert know why I get this error and how to fix it?
Any help is greatly appreciated.
Frank
(711 rep)
Jun 29, 2016, 10:19 AM
• Last activity: Jun 29, 2016, 11:07 PM
0
votes
1
answers
167
views
Puzzle with compilation of default.aspx.cs under Ubuntu 16.04 failing upon http://127.0.0.1/default.aspx
I would like to know why compilation of default.aspx.cs under Ubuntu Linux 16.04 with a code behind pointing to default.aspx.cs fails when I enter [http://127.0.0.1/default.aspx]() at the web browser. Also, there is a default.aspx.designer.cs file in MyLinuxTest.csproj which is auto generated by Vis...
I would like to know why compilation of default.aspx.cs under Ubuntu Linux 16.04 with a code behind pointing to default.aspx.cs fails when I enter [http://127.0.0.1/default.aspx]() at the web browser. Also, there is a default.aspx.designer.cs file in MyLinuxTest.csproj which is auto generated by Visual Studio and acts like scaffolding for the code one write within the asps and asp.cs files. Because these are auto generated one never should touch or change this file.
I read today on www.monoproject.com FAQ that default.aspx.cs is always compiled . A few days ago I read that default.aspx.cs is compiled only once when it has changed. I read also there is an aspx CompilationMode server side script option, Always, Auto and Never. What is the correct compilation behavior for the mod_mono_server4 process? Please correct my use of terminology.
Here is what I did yesterday. Because of the C# rule which says that classes beginning with @ can only be followed by a C# keyword. As a result, compilation failed even with MonoDevelop Xamarin Studio 5.5 when I used a C# class named
@default
. To rectify that error I was directed to change the class name @default
to abcdef
in two places, default.aspx and default.aspx.designer.cs.
When I finished those changes, I built MyLinuxTest.csproj using MonoDevelop Tamarin Studio 5.5 and generated a MyLinuxTest.dll which I tested with Run With Firefox browser so as to launch xsp4 and it functioned correctly at this point in time.
Next I copied MyLinuxTest.dll and MyLinuxTest.dll.mdb to our production environment's bin folder. [EDIT I read in the mono-project.com FAQ document today that these files need to be installed using rm MyLinuxTest.dll
followed by cp /home/frankc/Downloads/MyLinuxTest/MyLinuxTest/bin/MyLinuxTest*.* ..
At this time, When I used my Chrome web browser and apache2's mod_mono_server4 like this [http://127.0.0.1/default.aspx]() , so I got the C# compiler error temporary aspx.cs could not compile because there was an ASP class method default_aspx already defined.
How could I fix this baffling C# compiler error so that [http://127.0.0.1/default.aspx]() delivers the correct Web content? I can supply the ASP.NET code if requested. Should default.aspx and default.aspx.cs be renamed to Default.aspx and Defalt.aspx.cs which I used successfully in HelloWorld.csproj? Also, what should I do to recover or remove default.aspx.designer.cs from the compilation process?
Frank
(711 rep)
Jun 18, 2016, 08:23 PM
• Last activity: Jun 21, 2016, 09:37 AM
0
votes
0
answers
190
views
Relationship is between Apache2 and xsp2 (or mono-xsp2) for an Ubuntu Linux 16.04 system which serves mono ASP-NET content to an web browser user
I am interested in knowing what is the relationship is between Apache2 and xsp2 (or mono-xsp2) for an Ubuntu Linux 16.04 system which serves mono ASP-NET content to an web browser user requesting an WebForm, hello.aspx. What does it mean to serve mono ASP-NET content versus serving ASP-NET content?...
I am interested in knowing what is the relationship is between Apache2 and xsp2 (or mono-xsp2) for an Ubuntu Linux 16.04 system which serves mono ASP-NET content to an web browser user requesting an WebForm, hello.aspx.
What does it mean to serve mono ASP-NET content versus serving ASP-NET content?
Is it possible to do this with only Apache2 and dependent configuration files?
[EDIT June 12 2016 10:42 PM]
Quoting from ,mod_mono,which is the title of this article, http://www.mono-project.com/docs/web/mod_mono/
"mod_mono.conf loads the mod_mono module, associates ASP.NET file extensions with the ASP.NET MIME type and adds index.aspx, Default.aspx, and default.aspx as automatic directory index pages (with the DirectoryIndex directive). If you don’t include mod_mono.conf in your main Apache configuration, you will at least need to have the mod_mono.so module loaded with:
LoadModule mono_module /usr/lib/httpd/modules/mod_mono.so
For more detailed configuration and manual tuning keep reading.
mod_mono will automatically launch mod-mono-server and start the web application on the first request for a page handled by mod_mono. In the early days of mod_mono, you had to start mod-mono-server by yourself, ensuring that it had all the parameters needed to understand the requests forwarded by the module. This is still an option for those who want mod-mono-server to have a separate life cycle from apache, but you will probably prefer to use mod_mono built-in ability to start and stop mod-mono-server for you"
Frank
(711 rep)
Jun 12, 2016, 10:26 PM
• Last activity: Jun 13, 2016, 02:46 AM
1
votes
1
answers
840
views
Encountering issues when trying to host an ASP.NET Web Api on Debian using Mono and Nginx
I have a Web API that is using .NET 4.0 which I'm now trying to deploy on Debian. I've followed a few tutorials on how to do this, e.g. [Running ASP.net Web API Services under Linux and OSx][1]. $ /etc/nginx/sites-available/default: server { listen 80; root /var/www/API/; index index.html index.htm...
I have a Web API that is using .NET 4.0 which I'm now trying to deploy on Debian.
I've followed a few tutorials on how to do this, e.g. Running ASP.net Web API Services under Linux and OSx .
$ /etc/nginx/sites-available/default:
server {
listen 80;
root /var/www/API/;
index index.html index.htm default.aspx Default.aspx index.cshtml Index.cshtml;
server_name localhost;
location / {
fastcgi_index Index.cshtml;
fastcgi_pass 127.0.0.1:9000;
include /etc/nginx/fastcgi_params;
}
}
I added the following to
/etc/nginx/fastcgi_params
:
fastcgi_param PATH_INFO "";
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
Then I started nginx
and the mono server
:
# /etc/init.d/nginx start
# fastcgi-mono-server4 /applications=/localhost:/var/www/API/ /socket=tcp:127.0.0.1:9000 /verbose=True
Then when I try to access the site the log gives warnings and errors that I've failed to find a solution for:
Warning: Duplicate name, SCRIPT_FILENAME, encountered. Overwriting existing value.
Error: No application defined for: localhost:80/Index.cshtml
Erik Karlstrand
(113 rep)
Nov 25, 2015, 10:01 AM
• Last activity: Nov 25, 2015, 12:39 PM
3
votes
2
answers
2398
views
Nano syntax highlighting for C# and/or ASP. Net
Has anyone got (or can point in the direction of) a nanorc file that contains syntax highlighting for C# and/or ASP.Net?
Has anyone got (or can point in the direction of) a nanorc file that contains syntax highlighting for C# and/or ASP.Net?
Rob Cowell
(322 rep)
Aug 13, 2010, 12:43 PM
• Last activity: May 20, 2011, 02:07 PM
Showing page 1 of 14 total questions