[Mono-list] Program using mono with chinese

2004-08-10 Thread
I installed Mono and localization Program,but I find it has some problems and the 
problems are different Linux and WindowsXP.


The Codes of my program:
___
using System;

namespace Kuaff.Test{
public class Hello {
public static void Main() {
Console.WriteLine();
}
}
}
___

On Windows Console or Linux Xtermmcs Hello.cs ,then mono Hello.exe,Problem comes.
There are  (Encode Probelm). and I use mcs -codepage:936 Hello.cs,problem as 
same.

I tried many times.

In Window,I use native2ascii (a tool from JDK),change Hello.cs into Hello1.cs 
(UTF8),then mcs Hello1.cs,
then mono hello1.exe, It works well. but In linux problem as same.

  
How to sovle it?

How to program with chinese?
FoxmailIcon: fox.gif

[Mono-list] Re: [Mono-devel-list] Problem w/ System.Web.UI.WebControls.Xml (Modified by Arne Claassen)

2004-08-10 Thread Rafael Teixeira
Hi Arne,

Please post a bug case at
http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%3A%20Class%20Libraries
if you haven't done so, yet. So we don't get your report lost in the list noise.

Thanks,

On Sun, 8 Aug 2004 19:10:14 -0700, Arne Claassen [EMAIL PROTECTED] wrote:
 First post to this list (originally posted to mono-list until i
 realized a second later that i wanted to post to mono-devel-list). I
 develop in VS.NET on windows for my dayjob, but trying to use Mono on
 Fedora Core 1 for my personal projects.
 
 I seem to have come across a bug in System.Web.UI.WebControls.Xml, but
 wanted to post here first to see if it's not a configuration issue.
 
 I have an XML webcontrol in foo/bar.aspx named Xml1. I initialize as
 
 Xml1.DocumentSource = bar.xml;
 Xml1.TransformSource = bar.xsl;
 
 referencing foo/bar.xml and foo/bar.xsl by relative URLs. This works
 fine under IIS where the control appears to use MapPath to determine
 the proper physical file path.
 
 Using mono 1.0 with xsp and mod_mono under apache 1.3 on fedora core 1,
 i get an error that starts like this:
 ---
 Server error in '/foo' application
 Description: Error processing request.
 
 Error Message: HTTP 500.
 
 Stack Trace:
 
 System.IO.FileNotFoundException: Could not find file /bar.xml.
 [etc.]
 ---
 
 However if i call
 
 HttpContext.Current.Request.MapPath(bar.xml);
 
 I get a proper file path and i can read the file with a Stream Reader.
 
 thanks,
 arne


-- 
Rafael Monoman Teixeira
---
Cognition is not a representation of an objectively existing world
but is a bringing forth of a world in the process of living.
-- Fritjof Capra, citing 
   Humberto Maturana and Francisco Varella's Santiago Theory of Cognition
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] mcs use codepage and program with chinese

2004-08-10 Thread ?fffb8?fffb8 ?fffbf?fffe4
If you are a East-Aisa prople,maybe you will find them.

Now let's test and write a program with East-Aisa language.

using System;
namespace Test
{
   public class Hello
   {
 public static void Main()
 {
 Console.WriteLine("");
 }
   }  
}

__
It is a simple problem Like "Hello world", but use chinese.

In Windows(Language Chinese,codepage:936, GB2312),run
"mcs -codepage:936 Hello.cs",then get Hello.exe.

When We run the Hello.exe,In Console It don't show "",but
some strange characters.

In linux as same.

Now we test the program in another mode.

We use the tool "native2ascii" of JDK and run "native2ascii Hello.cs
hello1.cs",then we get Hello1.cs in ascii coding.

run "mcs -codepage:utf8 Hello1.cs" ,then get Hello1.ex.Run hello1.exe,
In windows we get right output "";

but in Linux it output some strange characters.


Strange?

Do You Yahoo!?
150MP3
1G1000

Re: [Mono-list] Mod_mono syntax for multiple webapps

2004-08-10 Thread Daniel Freund
According to the man page you have to use a comma separated list
Your example would be:
MonoApplications 
/demo:/usr/share/doc/xsp/test,/blog:/data/vhosts/test01/blog

As an alternative you can use a config file. Instead of the 
MonoApplications-directive use:

MonoApplicationsConfigFile /usr/local/apache/conf/webapps/config.xml
The config.xml would look like this:
apps
web-application
  nameyour.server.name/name
  vhostyour.server.name/vhost
  vpath/demo/vpath
  path/usr/share/doc/xsp/test/path
/web-application
web-application
  nameyour.server.name/name
  vhostyour.server.name/vhost
  vpath/blog/vpath
  path/data/vhosts/test01/blog/path
/web-application
/apps
You can find more infos in the man page and in the mod_mono INSTALL-file
have fun,
/daniel
Arne Claassen schrieb:
I've tried it a number of ways, but i seem to only be able to run one 
webapp with mod_mono.

If i do
  MonoApplications /demo:/usr/share/doc/xsp/test
  MonoApplications /blog:/data/vhosts/test01/blog
only blog runs.
If i try to combine it as described in the man page for xsp like this
  MonoApplications 
/demo:/usr/share/doc/xsp/test;/blog:/data/vhosts/test01/blog

neither runs.
Would using the MonoApplicationsConfig* options instead work or is 
single webapp a current limitation?

thanks,
arne
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] asp.net using vb under mono

2004-08-10 Thread Jonathan Pryor
On Mon, 2004-08-09 at 12:20, lamyae Benabdeljalil wrote:
 Please, can you tell me if i can make my asp.net applications (with vb) 
 work with mono?
 my platform is linux debian

IIRC You should be able to do this currently if (1) you only use
CodeBehind, and (2) you pre-compile all your VB.NET code and copy it to
the Linux box.

As Jambunathan already mentioned, Mono's VB.NET compiler isn't
completed, so it must be avoided.

 - Jon


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] mcs use codepage and program with chinese

2004-08-10 Thread Jonathan Pryor
On Tue, 2004-08-10 at 00:09,
=?gb2312?q?=FFb8=FFb8=20=FFbf=FFe4?= wrote:
snip/
 We use the tool native2ascii of JDK and run native2ascii Hello.cs
 hello1.cs,then we get Hello1.cs in ascii coding.
 
 run mcs -codepage:utf8 Hello1.cs ,then get Hello1.ex.Run hello1.exe,
 In windows we get right output ;
 
 but in Linux it output some strange characters.

It's strange because you're doing *really* strange things.  native2ascii
doesn't convert to UTF-8, it converts to a custom ASCII-compatible
encoding.  It *isn't* UTF-8.  But then you go and tell mcs that the
codepage is UTF-8, and since 0x00-0x7F of UTF-8 *is* ASCII, this is akin
to just printing out the native2ascii text.  No wonder it looks
strange.  I do have to wonder why Windows prints the right text, except
in my experience the Windows console *sucks* when it comes to i18n, at
least compared with Linux.  Redirecting to a file and opening with
NOTEPAD.EXE gives me better success on Windows than sticking with the
console

On Linux, make life easy: Skip native2ascii, save the file as UTF-8, and
compile with mcs -codepage:utf8:

[EMAIL PROTECTED]:tmp$ cat hwc.cs
// Hello World, Chinese version
using System;
namespace Test
{
   public class Hello
   {
 public static void Main()
 {
 Console.WriteLine();
 }
   }
}
 
[EMAIL PROTECTED]:tmp$ mcs -codepage:utf8 hwc.cs
Compilation succeeded
[EMAIL PROTECTED]:tmp$ mono hwc.exe


It may be that the reason your original compilation attempt didn't work
is that mcs didn't understand codpage 936.

Alternatively, it may not have worked for you originally because your
LANG environment variable isn't set properly.  Mine is set to
en_US.UTF-8, so your chinese text is rendered properly in the console.

 - Jon


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mod_mono syntax for multiple webapps

2004-08-10 Thread Arne Claassen
Huh, maybe the docs have changed then, because my man page for mod_mono says
'see xsp' and xsp says semicolon not comma:

   --applications APPS
  A  semicolon separated list of virtual directory and real
direc-
  tory for all the  applications  we  want  to  manage  with
this
  server. The virtual and real dirs. are separated by a colon.
The
  default value is â/:.â.

I'll try comma and then try the MonoApplicationsConfigFile instead

thanks,
arne

- Original Message - 
From: Daniel Freund [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 10, 2004 12:40 AM
Subject: Re: [Mono-list] Mod_mono syntax for multiple webapps


 According to the man page you have to use a comma separated list
 Your example would be:

 MonoApplications
 /demo:/usr/share/doc/xsp/test,/blog:/data/vhosts/test01/blog

 As an alternative you can use a config file. Instead of the
 MonoApplications-directive use:

 MonoApplicationsConfigFile /usr/local/apache/conf/webapps/config.xml

 The config.xml would look like this:

 apps

 web-application
nameyour.server.name/name
vhostyour.server.name/vhost
vpath/demo/vpath
path/usr/share/doc/xsp/test/path
 /web-application

 web-application
nameyour.server.name/name
vhostyour.server.name/vhost
vpath/blog/vpath
path/data/vhosts/test01/blog/path
 /web-application

 /apps

 You can find more infos in the man page and in the mod_mono INSTALL-file

 have fun,

 /daniel

 Arne Claassen schrieb:
  I've tried it a number of ways, but i seem to only be able to run one
  webapp with mod_mono.
 
  If i do
 
MonoApplications /demo:/usr/share/doc/xsp/test
MonoApplications /blog:/data/vhosts/test01/blog
 
  only blog runs.
 
  If i try to combine it as described in the man page for xsp like this
 
MonoApplications
  /demo:/usr/share/doc/xsp/test;/blog:/data/vhosts/test01/blog
 
  neither runs.
 
  Would using the MonoApplicationsConfig* options instead work or is
  single webapp a current limitation?
 
  thanks,
  arne
 
  ___
  Mono-list maillist  -  [EMAIL PROTECTED]
  http://lists.ximian.com/mailman/listinfo/mono-list
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list



___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Mod_mono just spins

2004-08-10 Thread Arne Claassen
I've got mod_mono working fine one one Fedora Core 1 machine, but on another
hitting the test app just spins. The first time i hit any aspx page i get

Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object

in the error log, but nothing after that and the request just never returns

Any suggestions on how i could troubleshoot this?

thanks,
arne

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mod_mono syntax for multiple webapps

2004-08-10 Thread Gonzalo Paniagua Javier
On Tue, 2004-08-10 at 11:48, Arne Claassen wrote:
 Huh, maybe the docs have changed then, because my man page for mod_mono says
 'see xsp' and xsp says semicolon not comma:
 
--applications APPS
   A  semicolon separated list of virtual directory and real
 direc-
   tory for all the  applications  we  want  to  manage  with
 this
   server. The virtual and real dirs. are separated by a colon.
 The
   default value is â/:.â.
 
 I'll try comma and then try the MonoApplicationsConfigFile instead

That wrong help info was updated a while ago.

-Gonzalo


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mod_mono just spins

2004-08-10 Thread Gonzalo Paniagua Javier
On Tue, 2004-08-10 at 12:35, Arne Claassen wrote:
 I've got mod_mono working fine one one Fedora Core 1 machine, but on another
 hitting the test app just spins. The first time i hit any aspx page i get
 
 Unhandled Exception: System.NullReferenceException: Object reference not set
 to an instance of an object
 
 in the error log, but nothing after that and the request just never returns
 
 Any suggestions on how i could troubleshoot this?

It would be great if you can file a bug report with the files needed to
reproduce this wrong behaviour.

-Gonzalo


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] mod_mono virtual hosts with virtual directories

2004-08-10 Thread Andrew Arnott








I have a .webapp file that describes a web site that I need
to add a virtual directory to. I am using the latest version of Apache. I dont
know how to use the XML format to get it to work. 



Here is my fhss.webapp file:

apps

 web-application

 nameHistory/name

 vhostsomehost.history.gov/vhost

 vport80/vport

 vpath//vpath

 path/mnt/Novell/FHSS_Share/History/Web/Main/path

 /web-application

/apps



This works well enough, but now I need to add a virtual
directory, called faculty to the web app. The faculty folder
will be at a totally different physical location on the hard disk on the
server. I need Mono to run the ASPX pages from there as if they belonged to the
root web app. 



I tried configuring Apache with the virtual directory, with
varying results, but I always got some combination of the directory not being
handed to mod_mono (Apache uploaded the files to the browser instead), or
mod_mono treating the faculty directory as a separate web app. 



Any ideas?



Thanks,



Andrew 








smime.p7s
Description: S/MIME cryptographic signature


Re: [Mono-list] vb.net with mono

2004-08-10 Thread Erik Dasque
Well, the VB.NET compiler for Mono is included in 1.0 (and 1.01) as a 
preview. It's called mbas. It'll be complete for the 1.2 release in Feb 
2005

Erik
On Aug 9, 2004, at 11:22 AM, lamyae Benabdeljalil wrote:
I am testing the portability of wab application developped with vs.net 
(using vb), with mono on linux, please can uve me a hint?
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mod_mono just spins

2004-08-10 Thread Arne Claassen
Quoting Gonzalo Paniagua Javier [EMAIL PROTECTED]:
 It would be great if you can file a bug report with the files needed to
 reproduce this wrong behaviour.

That's the problem, i guess. I don't know how to reproduce it. I have two
machines, both are Fedora Core 1, both run the mono 1.0 rpms and mod_mono built
from the tar.gz linked off the 1.0 download page. One machine works, the other
doesn't. Here are the differences between them that i know of

Working machine:
Celeron 450Mhz
Fedora Core 1 full install from CD
apache 1.3.29 DSO hand built

Non-working machine
P4 2.4Ghz (but Fedora runs on a UML slice)
Fedora Core 1 built from a barebones bootstrap and filled out w/ apt-get
apache 1.3.31 DSO hand built

So, the mono stuff is identical, but the infrastructure underneath not so much.
If you have any ideas how i can isolate the issues, or if there is a way to
have XSP generate some kind of debug log, i'd gladly provide all the
information I can.

cheers,
arne



This message was sent using IMP, the Internet Messaging Program.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mod_mono just spins

2004-08-10 Thread Gonzalo Paniagua Javier
On Tue, 2004-08-10 at 15:33, Arne Claassen wrote:

 Non-working machine
 P4 2.4Ghz (but Fedora runs on a UML slice)
 Fedora Core 1 built from a barebones bootstrap and filled out w/ apt-get
 apache 1.3.31 DSO hand built
 
 So, the mono stuff is identical, but the infrastructure underneath not so much.
 If you have any ideas how i can isolate the issues, or if there is a way to
 have XSP generate some kind of debug log, i'd gladly provide all the
 information I can.

Can you try building and installing mono from the source tarball? My
only guess is that the system in the UML does not support some feature
that is supposed to be there...

-Gonzalo


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] mod_mono virtual hosts with virtual directories

2004-08-10 Thread Andrew Arnott
  I have a .webapp file that describes a web site that I need to add a
  virtual directory to.  I am using the latest version of Apache.  I
  don't know how to use the XML format to get it to work.
 
 
 
  Here is my fhss.webapp file:
 
  apps
 
  web-application
 
  nameHistory/name
 
  vhostsomehost.history.gov/vhost
 
  vport80/vport
 
  vpath//vpath
 
 
  path/mnt/Novell/FHSS_Share/History/Web/Main/path
 
  /web-application
 
  /apps
 
 
 
  This works well enough, but now I need to add a virtual directory,
  called faculty to the web app.  The faculty folder will be at a
  totally different physical location on the hard disk on the server.  I
  need Mono to run the ASPX pages from there as if they belonged to the
  root web app.
 
 I would add an Alias for /faculty that points to the physical directory
 and then a symbolic link in .Web/Main called 'faculty' that points
 at the physical directory where all the faculty stuff is in. This way
 apache will find the files and mod-mono-server too and you don't need to
 enable following symbolic links in apache.

That might work, except that the web app is hosted on a Novell share that is
mounted in Linux.  I can't create symbolic links on mounted Novell shares,
unless there is something I'm missing.


smime.p7s
Description: S/MIME cryptographic signature


[Mono-list] Profiling applications

2004-08-10 Thread Nik Derewianka
Hi,
We are currently profiling performance on an ASP.net app 
(www.netaccounts.com.au) on .NET 1.1 and will also be setting up suse 
enterprise server 9.1 on the same box with mono 1.0.1.  Currently we are 
using WAPT to simulate the clientside interaction and perfmon to look at 
the stats serverside.  What tools would i be looking at serverside to 
analyse the performance with mono ??  (or even any other suggestions for 
testing client side performance).

And curiosity question - will hyperthreading affect performance (either 
positively or negatively) on mono ??

Regards,
Nik
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list