On Debian, you need to install:
apt-get install mono-xsp asp.net-examplesThis will give you a file
/etc/xsp/debian.webappIt already contains the configuration for the samples, that live in
/usr/share/asp.net-demosTo start the xsp server, you just run
/etc/init.d/mono-xsp startAnd you will be able to access the samples at
http://YOURSERVER:8081/samplesFor example to add your own aspx file, copy it to
/usr/share/asp.net-demos/DelphiNet2CSharp.aspxThe source code of that file you can see here:
Browse CVS of Delphi2C#
If you have a dll as well, copy that to
/usr/share/asp.net-demos/bin/Delphi2CSharp.dllIn your aspx file, you need to write at the top to use that dll:
<%@ Import Namespace="Delphi2CSharp" %>To debug your application (e.g. I had compiled the DLL for .Net 2.0, but the xsp only supported 1.1 and crashed without any message to the browser):
cd /usr/share/asp.net-demosThen in the webbrowser go to
MONO_OPTIONS=--debug && xsp --verbose
http://YOURSERVER:8080/DelphiNet2CSharp.aspxYou will see all the Console.WriteLine output, and also any exceptions and Mono crash messages.
No comments:
Post a Comment