Hosting asp.net on mono xsp - raspberry pi

I am trying to run the sample application that comes with the xsp package on my Raspberry Pi (running linux), but unfortunately the connection seems to be closed before any HTTP response is sent to the browser. I get the chrome message "NO DATA RECEIVED".

xsp, however, simply outputs "Application_Start" and nothing else happens (except chrome, not reporting any data)

That's what I'm doing:

$ xsp2 xsp2 Listening on address: 0.0.0.0 Root directory: /srv/http/test Listening on port: 8080 (non-secure) Hit Return to stop the server. Application_Start 

And Chrome output:

 No data received Unable to load the webpage because the server sent no data. Here are some suggestions: Reload this webpage later. Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data. 

Of course, it works fine on my Linux computer.

If anyone has any ideas besides trying to get too much of my $ 35 fee, let me know?

+4
source share
3 answers

Information about who will visit this page:

  • Raspberry pi does not have an official monopoly on hard float operations. Therefore, many monofiles will NOT work, including xsp =]

  • The gentleman posted on the raspberry forums pi an experimental version of mono with the implementation of hard swimming, because of which I worked perfectly. Post here .

  • For Arch Linux users, I came up with a package build so you can create a linux package for the architecture and send it to the same stream. It is here . There are also instructions on how to build it.

  • Running xsp will work after that, at least for me. I also used .NET to handle GPIO, and everything worked just fine.

Hope this helps! =]

+6
source

With a bit of reflection and a socket server, it’s not so difficult to create your own asp.net host (well, I got it to support the <%%> syntax with the code behind and user controls (don't use / don't want inline controls as they less portable and not as transparent as we would like)). Works great on my arched berry.

Or you could try your own hosting from MS http://www.asp.net/web-api/overview/hosting-aspnet-web-api/self-host-a-web-api , not sure if it works with mono (although let us know if he does;)).

+3
source

If you are using a Raspbian distribution, there are compilation problems in Mono packages, and those that are have problems launching .Net applications due to the processor features that Raspbian uses. You must use an old Debian that does not use Hard Float rebar.

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&t=11634&start=75

0
source

Source: https://habr.com/ru/post/1446493/


All Articles