Semana Interop: Desenvolvendo Asp.NET para Linux
Semana Interop: Desenvolvendo Asp.NET para Linux
3
4
5
Supported Architectures

Runtime

Operating system

s390, s390x (32 and 64 bits)

JIT

Linux

SPARC (32)

JIT

Solaris, Linux

PowerPC

JIT

Linux, Mac OSX, Wii, PlayStation 3

x86

JIT

Linux, FreeBSD, OpenBSD, NetBSD,
Microsoft Windows, Solaris, OS X

JIT

Linux, Solaris

JIT

Linux

ARM: little and big endian

JIT

Linux (both old and new ABI), iPhone

Alpha
MIPS
HPPA

JIT

Linux

JIT

Linux

JIT

Linux

x86-64: AMD64 and EM64T (64
bit)
IA64 Itanium2 (64 bit)

6
www.mono-project.com
http://mono-project.com/Monkeyguide
http://www.go-mono.com/docs/
http://www.monobrasil.org

7
8
Semana Interop: Desenvolvendo Asp.NET para Linux
Busca manual de Separadores
int index = exePath.LastIndexOf("");
exeDir = exePath.Substring(0, index);
exeFile = exePath.Substring(index+1);
Código mais portável
exeDir = Path.GetDirectoryName (exePath);
exeFile = Path.GetFileName (exePath);
10
“;”

“:”

Console.WriteLine ( "Subdiretorios encontrados no PATH :“ );
string path_env = Environment.GetEnvironmentVariable ( "PATH“ );
string[] path_dirs = path_env.Split (Path.PathSeparator);
foreach (string pathdir in path_dirs)
Console.WriteLine(pathdir);

11
12
13
14
15
16
17
Semana Interop: Desenvolvendo Asp.NET para Linux
Semana Interop: Desenvolvendo Asp.NET para Linux
20
Inclua no apache

Include /etc/apache2/mod_mono.conf ou

Carregar via módulo no apache

LoadModule mono_module /usr/lib/httpd/modules/mod_mono.so

21
Apache
MonoServerPath "/usr/bin/mod-mono-server2“
MonoAutoApplication enabled
<httpHandlers>
<add verb="*" path="*.m" type="Maverick.Dispatcher, Maverick" />
</httpHandlers>

mod_mono.conf
AddType application/x-asp-net .m

22
Copie seu site para o servidor e descompacte
$ cd /var/www/
$ unzip CommunityServer.zip
Você vai acessá-lo em
http://localhost/CommunityServer/

http://www.mono-project.com/ASP.NET
http://www.mono-project.com/Mod_mono
http://www.mono-project.com/AutoHosting
Instruções para o Ubuntu
https://help.ubuntu.com/community/ModMono
23
$ cd /usr/lib/xsp/test
$ xsp
Listening on port: 8080
Listening on address: 0.0.0.0
Root directory: /home/cvs/mcs/class/corlib/Microsoft.Win32
Hit Return to stop the server.
24
25
http://www.monoproject.com/ASP.NET_Mono_Specific_Configuration

26
http://www.grokthis.net/
http://www.ubiquityhosting.com/

27
28
Semana Interop: Desenvolvendo Asp.NET para Linux
Crie os diretórios
$ mkdir asp-net
$ cd asp-net/
$ mkdir bin
Crie o Arquivo teste1.aspx
<html>
<head>
<title>Teste às ASP .NET no
Mono</title>
</head>
<body>
Olá Mundo!
</body>
</html>
Para teste execute o xsp no diretório da
aplicação
$ xsp
Adding applications '/:.'...
Registering application:
Host:
any
Port:
any
Virtual path: /
Physical path: /home/pre/tmp/asp-net
Listening on port: 8080
Listening on address: 0.0.0.0
Root directory: /home/pre/tmp/asp-net
Hit Return to stop the server.

31
Teste2.aspx
<%@ Page Language="c#"
Inherits="Mono.Teste2" %>
<html>
<head>
<title>Teste II às ASP .NET no
Mono</title>
</head>
<body>
<asp:Label id="msg" runat="server" />
</body>
</html>
32
Mono C#
Compiler

Mono C#
Compiler

Arquivo de
Saída

$ mcs teste2.cs -r:System.Web -t:library -out:bin/teste1.dll
Compilation succeeded

Arquivo
CSharp

Tipo
33
34
35
36
37
38
39
4
0
MojoPortal
http://www.mojoportal.com
http://demo.mojoportal.com/

41
www.mindtouch

42
43
Semana Interop: Desenvolvendo Asp.NET para Linux

More Related Content

PPTX
One plus 5t architecture
TXT
Determine 64 or 32 bit unix kernel and hw
PDF
25 Years of Linux in 5 minutes
PPT
Operating Systems 3
DOCX
Linux versiones
PPTX
Mac os evolution
PDF
Xamarin Interop - hands on android -
PPTX
Semana Interop: Desenvolvimento de Games Multi-Plataforma com .NET
One plus 5t architecture
Determine 64 or 32 bit unix kernel and hw
25 Years of Linux in 5 minutes
Operating Systems 3
Linux versiones
Mac os evolution
Xamarin Interop - hands on android -
Semana Interop: Desenvolvimento de Games Multi-Plataforma com .NET

Viewers also liked (7)

PPTX
Semana Interop: Trabalhando com IronPython e com Ironruby
PPTX
The Pretty Reckless Presentation
PDF
App CrossMobile com C# para Android, Iphone e WindowsPhone
PPTX
Interop itcare: Interoperabilidade Java e .NET
PPTX
Interopability with Suse Linux: MoonLight Project
PDF
Usando c# para desenvolver app iphone e ipad!!! sim é possível!!!
PPTX
Tik kelompok BAB 1 Kelas 9 SMP 18 SMG
Semana Interop: Trabalhando com IronPython e com Ironruby
The Pretty Reckless Presentation
App CrossMobile com C# para Android, Iphone e WindowsPhone
Interop itcare: Interoperabilidade Java e .NET
Interopability with Suse Linux: MoonLight Project
Usando c# para desenvolver app iphone e ipad!!! sim é possível!!!
Tik kelompok BAB 1 Kelas 9 SMP 18 SMG

Similar to Semana Interop: Desenvolvendo Asp.NET para Linux (20)

PDF
Inside the Mac OS X Kernel
PDF
64 bits
PDF
Operating Systems 1 (5/12) - Architectures (Unix)
PDF
MYS-6ULX Single Board Computer for Industry 4.0 and IoT Applications
PDF
Is That A Penguin In My Windows?
PPT
Developing Applications for Beagle Bone Black, Raspberry Pi and SoC Single Bo...
PDF
Bloombase StoreSafe Compatibility Matrix
PPTX
Semana de Interop: Projeto Mono
PDF
64 bits for developers
PDF
Genode Compositions
PPTX
Enabling Java: Windows on Arm64 - A Success Story!
PDF
A2O Core implementation on FPGA
PDF
C# on a CHIPs
PPTX
Mac osx 64_rop_chains
PPTX
MIPS Assembly Language I
PDF
Hardware-assisted Isolated Execution Environment to run trusted OS and applic...
PDF
ds188-XA-Zynq-7000-Overview
PPTX
Embedded Linux/ Debian with ARM64 Platform
PDF
Python Brasil 2010 - Potter vs Voldemort - Lições ofidiglotas da prática Pyth...
PDF
Nikita Abdullin - Reverse-engineering of embedded MIPS devices. Case Study - ...
Inside the Mac OS X Kernel
64 bits
Operating Systems 1 (5/12) - Architectures (Unix)
MYS-6ULX Single Board Computer for Industry 4.0 and IoT Applications
Is That A Penguin In My Windows?
Developing Applications for Beagle Bone Black, Raspberry Pi and SoC Single Bo...
Bloombase StoreSafe Compatibility Matrix
Semana de Interop: Projeto Mono
64 bits for developers
Genode Compositions
Enabling Java: Windows on Arm64 - A Success Story!
A2O Core implementation on FPGA
C# on a CHIPs
Mac osx 64_rop_chains
MIPS Assembly Language I
Hardware-assisted Isolated Execution Environment to run trusted OS and applic...
ds188-XA-Zynq-7000-Overview
Embedded Linux/ Debian with ARM64 Platform
Python Brasil 2010 - Potter vs Voldemort - Lições ofidiglotas da prática Pyth...
Nikita Abdullin - Reverse-engineering of embedded MIPS devices. Case Study - ...

More from Alessandro Binhara (20)

PDF
ApresentacaoEngehariaBrinquedojulho-2024-v1.pdf
PPTX
Uma breve introdução ao Big Data e Inteligência Artificial.pptx
PDF
BigData e internte das coisas aplicada a engenharia
PDF
Case RDStation: Construindo DataLakes com Apache Hadoop em cloud agnóstica
PDF
Latinoware 2019 - DEsenvolvimento mobile em Nivel jedi
PPT
2019 latinoware - O mundo novo da realidade virtual
PDF
Realidade Virtual e a Ciência de Dados -latinoware
PPT
Realidade Virtual e a Ciência de Dados
PPT
A IMPORTÂNCIA DA PARTICIPAÇÃO NA GESTÃO DE PROJETOS TECNOLÓGICOS INOVADORES:...
PPTX
Curso de Férias - Robótica
PDF
BIG DATA & IoT: Tecnologias e  Aplicações
PDF
Introduçãoo aws, escalando uma aplicação Web
PDF
Bigadata casese opotunidades
PDF
Xamarin plataform
PDF
Desenvolvimento de Games para Mobile.
PDF
Games imersivos
PPTX
Abertura - interopmix2014
PDF
Curso C# em Mono - Orientação a Objeto Basico
PDF
Treinamento csharp mono
PPTX
Int305 projeto mono-final
ApresentacaoEngehariaBrinquedojulho-2024-v1.pdf
Uma breve introdução ao Big Data e Inteligência Artificial.pptx
BigData e internte das coisas aplicada a engenharia
Case RDStation: Construindo DataLakes com Apache Hadoop em cloud agnóstica
Latinoware 2019 - DEsenvolvimento mobile em Nivel jedi
2019 latinoware - O mundo novo da realidade virtual
Realidade Virtual e a Ciência de Dados -latinoware
Realidade Virtual e a Ciência de Dados
A IMPORTÂNCIA DA PARTICIPAÇÃO NA GESTÃO DE PROJETOS TECNOLÓGICOS INOVADORES:...
Curso de Férias - Robótica
BIG DATA & IoT: Tecnologias e  Aplicações
Introduçãoo aws, escalando uma aplicação Web
Bigadata casese opotunidades
Xamarin plataform
Desenvolvimento de Games para Mobile.
Games imersivos
Abertura - interopmix2014
Curso C# em Mono - Orientação a Objeto Basico
Treinamento csharp mono
Int305 projeto mono-final

Recently uploaded (20)

PPTX
CRM(Customer Relationship Managmnet) Presentation
PDF
Ericsson 5G Feature,KPIs Analysis_ Overview, Dependencies & Recommendations (...
PPTX
Information-Technology-in-Human-Society.pptx
PDF
Introduction to MCP and A2A Protocols: Enabling Agent Communication
PDF
State of AI in Business 2025 - MIT NANDA
PPTX
Blending method and technology for hydrogen.pptx
PDF
Intravenous drug administration application for pediatric patients via augmen...
PDF
Internet of Things (IoT) – Definition, Types, and Uses
PPTX
From XAI to XEE through Influence and Provenance.Controlling model fairness o...
PDF
substrate PowerPoint Presentation basic one
PDF
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
PDF
Examining Bias in AI Generated News Content.pdf
PPTX
How to use fields_get method in Odoo 18
PPTX
Rise of the Digital Control Grid Zeee Media and Hope and Tivon FTWProject.com
PDF
Data Virtualization in Action: Scaling APIs and Apps with FME
PDF
EGCB_Solar_Project_Presentation_and Finalcial Analysis.pdf
PPTX
AQUEEL MUSHTAQUE FAKIH COMPUTER CENTER .
PPTX
Digital Convergence: How GIS, BIM, and CAD Revolutionize Asset Management
PDF
Decision Optimization - From Theory to Practice
PDF
Streamline Vulnerability Management From Minimal Images to SBOMs
CRM(Customer Relationship Managmnet) Presentation
Ericsson 5G Feature,KPIs Analysis_ Overview, Dependencies & Recommendations (...
Information-Technology-in-Human-Society.pptx
Introduction to MCP and A2A Protocols: Enabling Agent Communication
State of AI in Business 2025 - MIT NANDA
Blending method and technology for hydrogen.pptx
Intravenous drug administration application for pediatric patients via augmen...
Internet of Things (IoT) – Definition, Types, and Uses
From XAI to XEE through Influence and Provenance.Controlling model fairness o...
substrate PowerPoint Presentation basic one
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
Examining Bias in AI Generated News Content.pdf
How to use fields_get method in Odoo 18
Rise of the Digital Control Grid Zeee Media and Hope and Tivon FTWProject.com
Data Virtualization in Action: Scaling APIs and Apps with FME
EGCB_Solar_Project_Presentation_and Finalcial Analysis.pdf
AQUEEL MUSHTAQUE FAKIH COMPUTER CENTER .
Digital Convergence: How GIS, BIM, and CAD Revolutionize Asset Management
Decision Optimization - From Theory to Practice
Streamline Vulnerability Management From Minimal Images to SBOMs

Semana Interop: Desenvolvendo Asp.NET para Linux