Run ASP.NET applications on Ubuntu (for developers) Rula aplicaţii ASP.NET pe Ubuntu (pentru programatori)
The ASP.NET development environment on Ubuntu Linux is called XSP. Mediu de dezvoltare ASP.NET pe Ubuntu Linux se numeşte XSP. This is a simple webserver written in C# that can be used for either ASP.NET 1.0 or 2.0 applications. Acesta este un server de web simplu scrise în C # care pot fi folosite pentru nici unul dintre ASP.NET 1.0 sau 2.0 aplicaţii. You can install both environments side by side if need be. Puteţi instala ambele medii de alta parte, dacă este necesar.
Requirements: Cerinţe:
Mono development environment. Mono mediu de dezvoltare.
ASP.NET 1.0 ASP.NET 1.0
sudo apt-get install mono-xsp mono-xsp-base sudo apt-get install mono-XSP mono-XSP-base
sudo apt-get install asp.net-examples sudo apt-get install asp.net exemple
This will install the development environment along with some sample applications. Acesta va instala mediul de dezvoltare, împreună cu unele aplicaţii eşantion. To run the sample applications, you will launch the XSP process and point it at the samples. Pentru a rula aplicaţii eşantion, vi se va lansa procesul de XSP şi punctul acesta de la probe. You'd simply modify the path to run an application that you've created. Ai modifica, pur şi simplu calea pentru a rula o aplicaţie pe care le-aţi creat.
> xsp –root /usr/share/asp.net-demos/ > XSP-root / usr / share / asp.net-demo-uri /
Listening on port: 8080 (non-secure) Listening on port: 8080 (non-sigur)
Listening on address: 0.0.0.0 Listening pe adresa: 0.0.0.0
Root directory: /usr/share/asp.net-demos Directorul rădăcină: / usr / share / asp.net-demo-uri
Hit Return to stop the server. Întoarceţi-Hit pentru a opri pe server.
ASP.NET 2.0 ASP.NET 2.0
sudo apt-get install mono-xsp2 mono-xsp2-base sudo apt-get install mono-xsp2 mono-xsp2-base
sudo apt-get install asp.net2-examples sudo apt-get install asp.net2 exemple
This will install the development environment along with some sample applications. Acesta va instala mediul de dezvoltare, împreună cu unele aplicaţii eşantion. To run the sample applications, you will launch the XSP process and point it at the samples. Pentru a rula aplicaţii eşantion, vi se va lansa procesul de XSP şi punctul acesta de la probe. You'd simply modify the path to run an application that you've created. Ai modifica, pur şi simplu calea pentru a rula o aplicaţie pe care le-aţi creat.
> xsp2 –root /usr/share/asp.net2-demos/ > Xsp2-root / usr/share/asp.net2-demos /
Listening on port: 8080 (non-secure) Listening on port: 8080 (non-sigur)
Listening on address: 0.0.0.0 Listening pe adresa: 0.0.0.0
Root directory: /usr/share/asp.net-demos Directorul rădăcină: / usr / share / asp.net-demo-uri
Hit Return to stop the server. Întoarceţi-Hit pentru a opri pe server.
At this point, you'd want to navigate in your browser to În acest moment, aţi dori pentru a naviga în browser pentru a http://localhost:8080/ http://localhost:8080/ and you should see a page similar to this: şi ar trebui să vedeţi o pagină similară cu aceasta:


Daily Email Updates Daily Actualizări de email
You can get our how-to articles in your inbox each day for free. Aveţi posibilitatea să obţineţi modul nostru de-a articole în Inbox în fiecare zi pentru drum liber. Just enter your name and email below: Doar introduceţi numele dvs. şi e-mail de mai jos:



I think it's –root instead of -root and I came across a problem when I point my browser to localhost:8080: Cred că este-root în loc de-root şi am dat peste o problemă atunci când punctul I browser-ul meu la localhost: 8080:
Error Message: HTTP 404. Mesaj de eroare: HTTP 404. File not found /usr/share/asp.net2-demos/index2.aspx File not found / usr/share/asp.net2-demos/index2.aspx
didn't have time to do much investigating but: nu a avut timp să fac de mult, dar de instrumentare:
sudo cp /usr/share/asp.net2-demos/index.aspx /usr/share/asp.net2-demos/index2.aspx sudo cp / usr/share/asp.net2-demos/index.aspx / usr/share/asp.net2-demos/index2.aspx
then try again was enough to get a look at it. apoi încercaţi din nou a fost de ajuns pentru a obţine o privire la ea.
Thanks for the post. Multumesc pentru acest post.
Your post distinguishes between xsp and xsp2. Postarea dvs. a distinge între XSP şi xsp2. This is not described in the man pages… Acest lucru nu este descrisă în paginile de om ...
Now I would like to use the ajax framework with mono/asp Acum, aş dori să utilizeze cadrul Ajax cu mono / ASP
I get an error : I a lua o eroare:
invoke-rc.d: unknown initscript, /etc/init.d/mono-xsp2 not found. invoke-rc.d: script de iniţializare necunoscut, / etc/init.d/mono-xsp2 nu a fost găsit.
dpkg: error processing /var/cache/apt/archives/mono-xsp2_1.1.17.1-2_all.deb (–unpack): dpkg: eroare la procesarea / var/cache/apt/archives/mono-xsp2_1.1.17.1-2_all.deb (-unpack):
subprocess pre-installation script returned error exit status 100 subproces de pre-script-ul de instalare a returnat eroarea starea de ieşire 100
Errors were encountered while processing: Erori întâlnite în timpul prelucrării:
/var/cache/apt/archives/mono-xsp2_1.1.17.1-2_all.deb / var/cache/apt/archives/mono-xsp2_1.1.17.1-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1) E: Sub-process / usr / bin / dpkg returnat un cod de eroare (1)
When running: sudo apt-get install mono-xsp2 mono-xsp2-base În modul de operare: sudo apt-get install mono-xsp2 mono-xsp2-base
Anybody have any clues. Oricine are nici indicii.
Thanks. Mulţumesc.
Hello all, Bună ziua tuturor,
I was just going to post an update. Voiam doar pentru a posta o actualizare.
Here is a link that will explain the problem I previously posted. Aici este un link care va explica problema am postat anterior.
https://bugs.launchpad.net/ubuntu/+source/xsp/+bug/99798 https: / / bugs.launchpad.net / ubuntu / + source / XSP / + bug/99798
I just moved the the mono-xsp file mentioned in the post, to a different folder; installed 2.0. Tocmai am mutat mono-XSP dosarul menţionat în acest post, într-un folder diferit; instalat 2.0. Then moved mono-xsp back to it original location. Apoi sa mutat mono-XSP înapoi la ea locaţia originală.
Hope this helps. Hope this ajutor.
Adam Adam
Is it possible to run .net (Windows) applications like Extreme Movie Manager like this? Este posibil să fie difuzat. Nete (Windows) aplicaţii cum ar fi Extreme Movie Manager ca asta?
Can you run mono as a daemon? Poate tu a alerga mono ca o aplicaţie daemon? I'd like to have the ability to use ubuntu as my webserver and still use some ASP.NET, but if I have to log in and run this everytime to have my pages work, it's useless. Aş dori să aibă capacitatea de a folosi Ubuntu ca serverul meu şi încă utiliza unele ASP.NET, dar dacă am să vă conectaţi în acest şi a alerga tot pentru a avea pagini de munca mea, e inutil.
i had to run: A trebuit să curgă:
xsp2 –root /usr/share/asp.net2-demos/ xsp2-root / usr/share/asp.net2-demos /
insted of : insted de:
xsp2 –root /usr/share/asp.net2-demos/ xsp2-root / usr/share/asp.net2-demos /
cherry: Cherry:
I had to run xsp2 –root /usr/share/asp.net2-demos/ too (two hyphens before root) I had la spre a alerga xsp2-root / usr/share/asp.net2-demos / prea (de două cratime înainte de root)
sudo apt-get install mono-xsp mono-xsp-base sudo apt-get install mono-XSP mono-XSP-base
sudo apt-get install asp.net-examples sudo apt-get install asp.net exemple
after running these 2 commands i dont know what has to done exactly După rularea acestor comenzi 2 i dont know ce trebuie sa făcut exact
One important point… change to /usr/share/asp.net-demos/ directory before starting the server. Un punct important ... schimbare la / usr / share / asp.net-demo-uri / director înainte de a începe pe server.