Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Run ASP.NET applications on Ubuntu (for developers) Run ASP.NET aplikacij na Ubuntu (za razvijalce)

The ASP.NET development environment on Ubuntu Linux is called XSP. Razvojno okolje ASP.NET na Ubuntu Linux se imenuje xsp. This is a simple webserver written in C# that can be used for either ASP.NET 1.0 or 2.0 applications. To je preprost spletni strežnik napisana v C #, ki se lahko uporablja bodisi za ASP.NET 1.0 ali 2.0. You can install both environments side by side if need be. Lahko namestite tako okoljih ob bok, če je treba.

Requirements: Zahteve:

Mono development environment. Mono razvojno okolje.

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 namestite asp.net-primeri

This will install the development environment along with some sample applications. Nameščen bo razvojno okolje, skupaj z nekaj vzorčnih aplikacij. To run the sample applications, you will launch the XSP process and point it at the samples. Če želite zagnati vzorca aplikacij, boste začela postopek xsp točke in da na vzorcih. You'd simply modify the path to run an application that you've created. Vi bi preprosto spremenite pot za zagon aplikacije, ki ste ga ustvarili.

> xsp –root /usr/share/asp.net-demos/ > Xsp-root / usr / share / asp.net-demos /

Listening on port: 8080 (non-secure) Listening on port: 8080 (negotovih)
Listening on address: 0.0.0.0 Listening na naslov: 0.0.0.0
Root directory: /usr/share/asp.net-demos Root directory: / usr / share / asp.net-demos
Hit Return to stop the server. Hit Vrnitev ustaviti strežnik.

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 namestite asp.net2-primeri

This will install the development environment along with some sample applications. Nameščen bo razvojno okolje, skupaj z nekaj vzorčnih aplikacij. To run the sample applications, you will launch the XSP process and point it at the samples. Če želite zagnati vzorca aplikacij, boste začela postopek xsp točke in da na vzorcih. You'd simply modify the path to run an application that you've created. Vi bi preprosto spremenite pot za zagon aplikacije, ki ste ga ustvarili.

> xsp2 –root /usr/share/asp.net2-demos/ > Xsp2-root / usr/share/asp.net2-demos /

Listening on port: 8080 (non-secure) Listening on port: 8080 (negotovih)
Listening on address: 0.0.0.0 Listening na naslov: 0.0.0.0
Root directory: /usr/share/asp.net-demos Root directory: / usr / share / asp.net-demos
Hit Return to stop the server. Hit Vrnitev ustaviti strežnik.

At this point, you'd want to navigate in your browser to Na tej točki bi, da želite v vašem brskalniku http://localhost:8080/ http://localhost:8080/ and you should see a page similar to this: in boste videli stran podobna tej:

This article was originally written on 09/17/06 Tagged with: Ta članek je bil prvotno napisan na 09/17/06 Tagged with: Adding Software Dodajanje Software , , Programming Programming , , Ubuntu Ubuntu

Daily Email Updates Dnevni Email Updates

You can get our how-to articles in your inbox each day for free. Lahko dobite našo kako do člankov v vašo mapo »Prejeto vsak dan brezplačno. Just enter your name and email below: Preprosto vpišite vaše ime in e-pošto spodaj:


Name: Ime:
Email: E-pošta:

Comments (11) Komentarji (11)

  1. Ben Ben

    I think it's –root instead of -root and I came across a problem when I point my browser to localhost:8080: Mislim, da je koren-namesto-korenin in sem naletel na težavo, ko sem točko svoj brskalnik localhost: 8080:
    Error Message: HTTP 404. Sporočilo o napaki: HTTP 404. File not found /usr/share/asp.net2-demos/index2.aspx File not found / usr/share/asp.net2-demos/index2.aspx

  2. steve steve

    didn't have time to do much investigating but: ni imel časa, da storiti veliko preiskavo, vendar:

    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. Nato poskusite znova je bilo dovolj, da bi dobili pogled na to.

  3. JC DENTON JC Denton

    Thanks for the post. Hvala za post.

    Your post distinguishes between xsp and xsp2. Vaša objava razlikuje med xsp in xsp2. This is not described in the man pages… To ni opisana v man strani ...

    Now I would like to use the ajax framework with mono/asp Sedaj želim uporabiti ajax okvir z mono / asp

  4. Adam Adam

    I get an error : Jaz zaslužiti zmota:
    invoke-rc.d: unknown initscript, /etc/init.d/mono-xsp2 not found. sklicevati-rc.d: neznana initscript, / etc/init.d/mono-xsp2 ni bilo mogoče najti.
    dpkg: error processing /var/cache/apt/archives/mono-xsp2_1.1.17.1-2_all.deb (–unpack): dpkg: error predelava / var/cache/apt/archives/mono-xsp2_1.1.17.1-2_all.deb (-razpakirati):
    subprocess pre-installation script returned error exit status 100 subprocess pre-namestitev skript je vrnil napako izhod status 100
    Errors were encountered while processing: Napake so se pojavljale pri obdelavi:
    /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 vrnil kodo napake (1)

    When running: sudo apt-get install mono-xsp2 mono-xsp2-base Ko teče: sudo apt-get install mono-xsp2 mono-xsp2-base

    Anybody have any clues. Kdo so vse sledi.

    Thanks. Hvala.

  5. Adam Adam

    Hello all, Hello all,
    I was just going to post an update. Pravkar sem bom post posodobitve.

    Here is a link that will explain the problem I previously posted. Tukaj je povezava, ki vam bo razložil problem sem prej napoten.

    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. Pravkar sem preselil mono-xsp datoteke, navedene v mesto, na drugo mapo, nameščen 2,0. Then moved mono-xsp back to it original location. Potem premakne mono-xsp nazaj je izvirno mesto.

    Hope this helps. Hope this helps.

    Adam Adam

  6. Deepak Deepak

    Is it possible to run .net (Windows) applications like Extreme Movie Manager like this? Ali je mogoče teči. Neto (Windows) aplikacije, kot so Extreme Movie Manager, kot je ta?

  7. Josh Josh

    Can you run mono as a daemon? Ali lahko zaženete mono kot 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. Želel bi imeti sposobnost uporabe ubuntu kot svoj spletni strežnik in še vedno uporabljajo nekatere ASP.NET, če pa imam za prijavo in zagon tega vsakič, da so moje strani dela, je nekoristen.

  8. cherry cherry

    i had to run: sem moral teči:

    xsp2 –root /usr/share/asp.net2-demos/ xsp2-root / usr/share/asp.net2-demos /

    insted of : insted of:

    xsp2 –root /usr/share/asp.net2-demos/ xsp2-root / usr/share/asp.net2-demos /

  9. Loic Duros Loic Duros

    cherry: cherry:

    I had to run xsp2 –root /usr/share/asp.net2-demos/ too (two hyphens before root) Moral sem teči xsp2-root / usr/share/asp.net2-demos / preveč (dva vezajev pred root)

  10. maitreyi maitreyi

    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 namestite asp.net-primeri

    after running these 2 commands i dont know what has to done exactly po zagonu teh 2 ukazov jaz dont znanje kakšen je storiti točno

  11. Ben Ben

    One important point… change to /usr/share/asp.net-demos/ directory before starting the server. Pomembna točka ... sprememba v / usr / share / asp.net-demos / imenik pred začetkom strežnik.


Leave a Comment Pustite komentar




Leave your Pustite friendly prijazen comment here. comment here.

If you have a computer help question, Če imate računalnik pomagati vprašanje, click here to leave it on the forums kliknite tukaj, da ga pustijo na forumih instead. namesto.

Note: Your comment may not show up immediately on the site. Opomba: Tvoj komentar morda ne pokažejo takoj na mestu.

Our Friends Naši prijatelji
Getting Started Getting Started


About How-To Geek O Kako naj Geek
What Is That Process? Kaj je to proces?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe Ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.