[Mono-list] MySQL Connection from .NET Website (David P. Donahue)
caner Sahan
canersahan@hotmail.com
Wed, 02 Feb 2005 13:46:05 +0000
<html><div style='background-color:'><DIV class=RTE>
<P>Hi;</P>
<P>I think you are using MonoForge hosting and you gave this error from there.When i was putting my application on this web hosting i gave some error like this.You can find your answer in monoforge forum.</P>
<P>regards.</P>
<P>Caner ÞAHAN</P>
<P><BR><BR> </P></DIV>
<DIV></DIV>>From: mono-list-request@lists.ximian.com
<DIV></DIV>>Reply-To: mono-list@lists.ximian.com
<DIV></DIV>>To: mono-list@lists.ximian.com
<DIV></DIV>>Subject: Mono-list digest, Vol 1 #2303 - 12 msgs
<DIV></DIV>>Date: Wed, 02 Feb 2005 06:35:02 -0500
<DIV></DIV>>
<DIV></DIV>>Send Mono-list mailing list submissions to
<DIV></DIV>> mono-list@lists.ximian.com
<DIV></DIV>>
<DIV></DIV>>To subscribe or unsubscribe via the World Wide Web, visit
<DIV></DIV>> http://lists.ximian.com/mailman/listinfo/mono-list
<DIV></DIV>>or, via email, send a message with subject or body 'help' to
<DIV></DIV>> mono-list-request@lists.ximian.com
<DIV></DIV>>
<DIV></DIV>>You can reach the person managing the list at
<DIV></DIV>> mono-list-admin@lists.ximian.com
<DIV></DIV>>
<DIV></DIV>>When replying, please edit your Subject line so it is more specific
<DIV></DIV>>than "Re: Contents of Mono-list digest..."
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>Today's Topics:
<DIV></DIV>>
<DIV></DIV>> 1. RE: mod_mono & xsp (Chris Aitken)
<DIV></DIV>> 2. Re: mod_mono & xsp (Elfyn McBratney)
<DIV></DIV>> 3. RE: mod_mono & xsp (Chris Aitken)
<DIV></DIV>> 4. SetHandler vs. AddHandler (David P. Donahue)
<DIV></DIV>> 5. xsp.exe as windows service (marius popa)
<DIV></DIV>> 6. Re: SetHandler vs. AddHandler (Gonzalo Paniagua Javier)
<DIV></DIV>> 7. Difference in Obsolete attribute behaviour (Jakub Linhart)
<DIV></DIV>> 8. [OT] post-structuralist object oriented system (PA)
<DIV></DIV>> 9. Re: HTML 4.01 and XHTML DOM Implementation? (Atsushi Eno)
<DIV></DIV>> 10. "special" comments in the code/ Monodoc? (Julien Sobrier)
<DIV></DIV>> 11. MySQL Connection from .NET Website (David P. Donahue)
<DIV></DIV>> 12. consuming 'php nusoap' webservice (Arturo =?ISO-8859-1?Q?Gonz=E1lez?=)
<DIV></DIV>>
<DIV></DIV>>--__--__--
<DIV></DIV>>
<DIV></DIV>>Message: 1
<DIV></DIV>>From: "Chris Aitken" <chris@ion-dreams.com>
<DIV></DIV>>To: <mono-list@lists.ximian.com>
<DIV></DIV>>Subject: RE: [Mono-list] mod_mono & xsp
<DIV></DIV>>Date: Tue, 1 Feb 2005 12:52:39 -0000
<DIV></DIV>>
<DIV></DIV>> > > Are you by any chance running with a threaded (Apache) MPM?
<DIV></DIV>> >
<DIV></DIV>> > Yes, I'm running Apache 2.0.53 with pre-fork MPM.
<DIV></DIV>>
<DIV></DIV>>Does this affect the way that mod_mono/mod-mono-server works?
<DIV></DIV>>
<DIV></DIV>>Debian has 3 options with apache2 (MPM = multi processing module)
<DIV></DIV>>
<DIV></DIV>>Apache2-mpm-worker (threaded implemetation, recommended)
<DIV></DIV>>Apache2-mpm-prefork (non threaded, preforking)
<DIV></DIV>>Apache2-mpm-perchild (per-child threaded module)
<DIV></DIV>>
<DIV></DIV>>Which one of these is the one to go for?
<DIV></DIV>>
<DIV></DIV>>Cheers
<DIV></DIV>>
<DIV></DIV>>Chris
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>--
<DIV></DIV>>This message has been scanned for viruses and
<DIV></DIV>>dangerous content by MailScanner, and is
<DIV></DIV>>believed to be clean.
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>--__--__--
<DIV></DIV>>
<DIV></DIV>>Message: 2
<DIV></DIV>>From: Elfyn McBratney <beu@emcb.demon.co.uk>
<DIV></DIV>>To: mono-list@lists.ximian.com
<DIV></DIV>>Subject: Re: [Mono-list] mod_mono & xsp
<DIV></DIV>>Date: Tue, 1 Feb 2005 13:09:14 +0000
<DIV></DIV>>
<DIV></DIV>>--nextPart1185175.ngL1xkugPx
<DIV></DIV>>Content-Type: text/plain;
<DIV></DIV>> charset="iso-8859-1"
<DIV></DIV>>Content-Transfer-Encoding: quoted-printable
<DIV></DIV>>Content-Disposition: inline
<DIV></DIV>>
<DIV></DIV>>Hello Giuseppe,
<DIV></DIV>>
<DIV></DIV>>On Tuesday 01 Feb 2005 06:45, Giuseppe Greco wrote:
<DIV></DIV>> > Hi Elfyn,
<DIV></DIV>> >
<DIV></DIV>> > >> ...
<DIV></DIV>> > >>
<DIV></DIV>> > >> I've followed step-by-step what described in file INSTALL. By default,
<DIV></DIV>> > >> mod_mono is configured to run mod-mono-server automatically, isn't it?
<DIV></DIV>> > >
<DIV></DIV>> > > It is (or was ;-)
<DIV></DIV>> > >
<DIV></DIV>> > >> So where can I look further?
<DIV></DIV>> > >
<DIV></DIV>> > > Are you by any chance running with a threaded (Apache) MPM?
<DIV></DIV>> >
<DIV></DIV>> > Yes, I'm running Apache 2.0.53 with pre-fork MPM.
<DIV></DIV>>
<DIV></DIV>>prefork is non-threaded, btw. :-) The reason I asked is that we're getting=
<DIV></DIV>> a=20
<DIV></DIV>>few reports in Gentoo land of mod_mono not working, and at the moment a =20
<DIV></DIV>>threaded MPM seems to be the culprit.
<DIV></DIV>>
<DIV></DIV>>Best,
<DIV></DIV>>Elfyn
<DIV></DIV>>
<DIV></DIV>>=2D-=20
<DIV></DIV>>Elfyn McBratney
<DIV></DIV>>beu on irc.freenode.net/savannah.[non]gnu.org
<DIV></DIV>>
<DIV></DIV>>PGP Key ID: 0x456548B4
<DIV></DIV>>PGP Key Fingerprint:
<DIV></DIV>> 29D5 91BB 8748 7CC9 650F 31FE 6888 0C2A 4565 48B4
<DIV></DIV>>
<DIV></DIV>>--nextPart1185175.ngL1xkugPx
<DIV></DIV>>Content-Type: application/pgp-signature
<DIV></DIV>>
<DIV></DIV>>-----BEGIN PGP SIGNATURE-----
<DIV></DIV>>Version: GnuPG v1.2.6 (GNU/Linux)
<DIV></DIV>>
<DIV></DIV>>iD8DBQBB/39/gH4Q50OD3mwRArJwAJ96cl73Ziv9GT7HjgMYIqWdUnANYACeIT3e
<DIV></DIV>>4oJzcUnU10JVtRaogD0UpDE=
<DIV></DIV>>=HQaO
<DIV></DIV>>-----END PGP SIGNATURE-----
<DIV></DIV>>
<DIV></DIV>>--nextPart1185175.ngL1xkugPx--
<DIV></DIV>>
<DIV></DIV>>--__--__--
<DIV></DIV>>
<DIV></DIV>>Message: 3
<DIV></DIV>>From: "Chris Aitken" <chris@ion-dreams.com>
<DIV></DIV>>To: <mono-list@lists.ximian.com>
<DIV></DIV>>Subject: RE: [Mono-list] mod_mono & xsp
<DIV></DIV>>Date: Tue, 1 Feb 2005 13:27:23 -0000
<DIV></DIV>>
<DIV></DIV>> > prefork is non-threaded, btw. :-) The reason I asked is that
<DIV></DIV>> > we're getting a few reports in Gentoo land of mod_mono not
<DIV></DIV>> > working, and at the moment a threaded MPM seems to be the culprit.
<DIV></DIV>>
<DIV></DIV>>I'm running 3 systems, all debian sarge, 2 with the debian unstable mono
<DIV></DIV>>modules (apart from mod-mono-server & mod-mono).
<DIV></DIV>>
<DIV></DIV>>Each has the same packages loaded, and each has the FC2
<DIV></DIV>>mod-mono-server/mod_mono rpms installed (via alien).
<DIV></DIV>>
<DIV></DIV>>A third system has the monobundle installed, and the FC2 rpms (again via
<DIV></DIV>>alien).
<DIV></DIV>>
<DIV></DIV>>The third system starts mod-mono-server automatically, but will not stop it
<DIV></DIV>>(so I wrote a shell script). Out of the other two, one works perfectly, the
<DIV></DIV>>other not at all (unless mod-mono-server started by hand - no
<DIV></DIV>>/tmp/mod_mono_server appears).
<DIV></DIV>>
<DIV></DIV>>Every system has the same webapp/mod-mono-server.exe.config files etc. They
<DIV></DIV>>all use apache2-mpm-prefork.
<DIV></DIV>>
<DIV></DIV>>Chris
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>--
<DIV></DIV>>This message has been scanned for viruses and
<DIV></DIV>>dangerous content by MailScanner, and is
<DIV></DIV>>believed to be clean.
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>--__--__--
<DIV></DIV>>
<DIV></DIV>>Message: 4
<DIV></DIV>>Date: Tue, 01 Feb 2005 11:01:49 -0500
<DIV></DIV>>From: "David P. Donahue" <ddonahue@ccs.neu.edu>
<DIV></DIV>>To: mono-list@lists.ximian.com
<DIV></DIV>>Subject: [Mono-list] SetHandler vs. AddHandler
<DIV></DIV>>
<DIV></DIV>>I just installed the Mono Apache Module and started testing some basic
<DIV></DIV>>C# websites with it. I was noticing that certain files (specifically in
<DIV></DIV>>the case of these small sites, .gif and .css files) were being returned
<DIV></DIV>>but the clients couldn't understand them. In debugging the problem, I
<DIV></DIV>>found the section in the INSTALL file as follows:
<DIV></DIV>>
<DIV></DIV>>-------------------------
<DIV></DIV>>If you don't want mod-mono-server to handle all the files, but only
<DIV></DIV>> ASP.NET ones, you can replace the 'SetHandler mono' by:
<DIV></DIV>>
<DIV></DIV>> AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx
<DIV></DIV>>
<DIV></DIV>> but this will break PathInfo.
<DIV></DIV>>-------------------------
<DIV></DIV>>
<DIV></DIV>>I made this change in my httpd.conf where I specify the folders that
<DIV></DIV>>require Mono's use, and this seems to have fixed the problem. My
<DIV></DIV>>concern, however, is where it says "this will break PathInfo." I'm not
<DIV></DIV>>entirely sure what that means. What are the negative aspects of this
<DIV></DIV>>configuration change? Will it come back to bite me later? Is there a
<DIV></DIV>>better way to fix this problem? I appreciate any advice you can give
<DIV></DIV>>me, thanks.
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>Regards,
<DIV></DIV>>David P. Donahue
<DIV></DIV>>ddonahue@ccs.neu.edu
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>--__--__--
<DIV></DIV>>
<DIV></DIV>>Message: 5
<DIV></DIV>>Date: Tue, 1 Feb 2005 19:36:35 +0200
<DIV></DIV>>From: marius popa <mapopa@gmail.com>
<DIV></DIV>>Reply-To: marius popa <mapopa@gmail.com>
<DIV></DIV>>To: mono-list@lists.ximian.com
<DIV></DIV>>Subject: [Mono-list] xsp.exe as windows service
<DIV></DIV>>
<DIV></DIV>>I have started apache and xsp (unsing mod_proxy module)
<DIV></DIV>>and want to put xsp.exe to run as serivice at startup
<DIV></DIV>>What should i do ? add service code for xsp ?
<DIV></DIV>>
<DIV></DIV>>--__--__--
<DIV></DIV>>
<DIV></DIV>>Message: 6
<DIV></DIV>>Subject: Re: [Mono-list] SetHandler vs. AddHandler
<DIV></DIV>>From: Gonzalo Paniagua Javier <gonzalo@ximian.com>
<DIV></DIV>>Reply-To: reply.to.the.list.iam.suscribed@notexists.ximian.com
<DIV></DIV>>To: mono-list@lists.ximian.com
<DIV></DIV>>Organization: Novell, Inc.
<DIV></DIV>>Date: Tue, 01 Feb 2005 13:35:57 -0500
<DIV></DIV>>
<DIV></DIV>>On Tue, 2005-02-01 at 11:01 -0500, David P. Donahue wrote:
<DIV></DIV>> > I just installed the Mono Apache Module and started testing some basic
<DIV></DIV>> > C# websites with it. I was noticing that certain files (specifically in
<DIV></DIV>> > the case of these small sites, .gif and .css files) were being returned
<DIV></DIV>> > but the clients couldn't understand them. In debugging the problem, I
<DIV></DIV>> > found the section in the INSTALL file as follows:
<DIV></DIV>> >
<DIV></DIV>> > -------------------------
<DIV></DIV>> > If you don't want mod-mono-server to handle all the files, but only
<DIV></DIV>> > ASP.NET ones, you can replace the 'SetHandler mono' by:
<DIV></DIV>> >
<DIV></DIV>> > AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx
<DIV></DIV>> >
<DIV></DIV>> > but this will break PathInfo.
<DIV></DIV>> > -------------------------
<DIV></DIV>> >
<DIV></DIV>> > I made this change in my httpd.conf where I specify the folders that
<DIV></DIV>> > require Mono's use, and this seems to have fixed the problem. My
<DIV></DIV>> > concern, however, is where it says "this will break PathInfo." I'm not
<DIV></DIV>> > entirely sure what that means. What are the negative aspects of this
<DIV></DIV>> > configuration change? Will it come back to bite me later? Is there a
<DIV></DIV>> > better way to fix this problem? I appreciate any advice you can give
<DIV></DIV>> > me, thanks.
<DIV></DIV>>
<DIV></DIV>>For an URL like this:
<DIV></DIV>>http://www.someserver.com/somedir/somefile.ext/andthis/andthat
<DIV></DIV>>
<DIV></DIV>>if /somedir/somefile.ext exists, /andthis/andthat is that pathinfo. As
<DIV></DIV>>long as you don't use that in the virtual directories handled by
<DIV></DIV>>mod-mono, you're fine.
<DIV></DIV>>
<DIV></DIV>>-Gonzalo
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>--__--__--
<DIV></DIV>>
<DIV></DIV>>Message: 7
<DIV></DIV>>Date: Tue, 01 Feb 2005 23:36:56 +0100
<DIV></DIV>>From: Jakub Linhart <jakub.linhart@vslib.cz>
<DIV></DIV>>To: mono-list@lists.ximian.com
<DIV></DIV>>Subject: [Mono-list] Difference in Obsolete attribute behaviour
<DIV></DIV>>
<DIV></DIV>>I have code like this:
<DIV></DIV>> 1 class TestClass1 {
<DIV></DIV>> 2 [Obsolete ("This method ObsoleteMethod1 is obsolete.", false)]
<DIV></DIV>> 3 public static void ObsoleteMethod1() {
<DIV></DIV>> 4 Console.WriteLine ("Executing ObsoleteMethod1()");
<DIV></DIV>> 5 }
<DIV></DIV>> 6 }
<DIV></DIV>>
<DIV></DIV>> 7 class TestClass2 {
<DIV></DIV>> 8 [Obsolete ("This method ObsoleteMethod2 is obsolete.", true)]
<DIV></DIV>> 9 public static void ObsoleteMethod2() {
<DIV></DIV>>10 TestClass1.ObsoleteMethod1();
<DIV></DIV>>11 }
<DIV></DIV>>12 public static void NewMethod2() {
<DIV></DIV>>13 TestClass1.ObsoleteMethod1();
<DIV></DIV>>14 ObsoleteMethod2();
<DIV></DIV>>15 }
<DIV></DIV>>16}
<DIV></DIV>>
<DIV></DIV>>If this code fragment is compiled under .NET framework, CSC reports one
<DIV></DIV>>error (CS0619) on line 13 and one warning (CS0618) at line 14. You get
<DIV></DIV>>2 errors (line 10, line 13) and 1 warning (line 14) under MONO 1.05
<DIV></DIV>>(mcs). It looks like that CSC ignores every call to method marked as
<DIV></DIV>>obsolete from other obsolete method. MCS reports every call to obsolete
<DIV></DIV>>method as error or warning. Is it particular reason for such a behaviour?
<DIV></DIV>>
<DIV></DIV>>--__--__--
<DIV></DIV>>
<DIV></DIV>>Message: 8
<DIV></DIV>>To: mono-list@lists.ximian.com
<DIV></DIV>>From: PA <petite.abeille@gmail.com>
<DIV></DIV>>Date: Tue, 1 Feb 2005 21:46:25 +0100
<DIV></DIV>>Subject: [Mono-list] [OT] post-structuralist object oriented system
<DIV></DIV>>
<DIV></DIV>>Not really a question, but rather for your entertainment:
<DIV></DIV>>
<DIV></DIV>>"Lua=92s Story of O"
<DIV></DIV>>http://alt.textdrive.com/lua/19/lua-story-of-o
<DIV></DIV>>
<DIV></DIV>>Cheers
<DIV></DIV>>
<DIV></DIV>>--
<DIV></DIV>>PA, Onnay Equitursay
<DIV></DIV>>http://alt.textdrive.com/
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>--__--__--
<DIV></DIV>>
<DIV></DIV>>Message: 9
<DIV></DIV>>Date: Wed, 02 Feb 2005 07:01:12 +0900
<DIV></DIV>>From: Atsushi Eno <atsushi@ximian.com>
<DIV></DIV>>To: Edgardo Rossetto <erossetto@speedy.com.ar>
<DIV></DIV>>Cc: mono-list@lists.ximian.com
<DIV></DIV>>Subject: Re: [Mono-list] HTML 4.01 and XHTML DOM Implementation?
<DIV></DIV>>
<DIV></DIV>>Hi,
<DIV></DIV>>
<DIV></DIV>> > - Does anyone know a HTML 4.01 / XHTML implementation of the DOM, or is
<DIV></DIV>> > only System.Xml (XML 1.0 and 2.0 only AFAIK) avaiable?
<DIV></DIV>>
<DIV></DIV>>At least I don't know.
<DIV></DIV>>
<DIV></DIV>> > - Any ideas if .NET 2.0 will have?
<DIV></DIV>>
<DIV></DIV>>I think never.
<DIV></DIV>>
<DIV></DIV>> > - Any plans to make a Mono Class for this?
<DIV></DIV>>
<DIV></DIV>>No, but if anyone would like to contribute, it is nice.
<DIV></DIV>>
<DIV></DIV>> > Is it possible to "load" the DTD specification for HTML 4.01 and XML
<DIV></DIV>> > usiing the System.Xml namespace or am I just dreaming?
<DIV></DIV>>
<DIV></DIV>>There is an obsolete sample named SgmlReader in gotdotnet which is
<DIV></DIV>>left buggy, unsupported, and incompatible with free software.
<DIV></DIV>>
<DIV></DIV>>Atsushi Eno
<DIV></DIV>>
<DIV></DIV>>--__--__--
<DIV></DIV>>
<DIV></DIV>>Message: 10
<DIV></DIV>>Date: Tue, 01 Feb 2005 21:14:40 -0800
<DIV></DIV>>From: Julien Sobrier <julien@sobrier.net>
<DIV></DIV>>To: mono-list@lists.ximian.com
<DIV></DIV>>Subject: [Mono-list] "special" comments in the code/ Monodoc?
<DIV></DIV>>
<DIV></DIV>>Hello,
<DIV></DIV>>once I found a page explaining how to format the comments (like
<DIV></DIV>><c>MyClass</c>) inside the code to then generate automatically a doc for
<DIV></DIV>>our code. I'm not sure this is exactly what Monodoc is using.
<DIV></DIV>>
<DIV></DIV>>I cannot find this link anymore.
<DIV></DIV>>
<DIV></DIV>>Anybody know what I'm talking about?
<DIV></DIV>>
<DIV></DIV>>Thanks
<DIV></DIV>>Julien
<DIV></DIV>>
<DIV></DIV>>--__--__--
<DIV></DIV>>
<DIV></DIV>>Message: 11
<DIV></DIV>>Date: Tue, 01 Feb 2005 21:52:07 -0500
<DIV></DIV>>From: "David P. Donahue" <david.donahue@us.army.mil>
<DIV></DIV>>To: mono-list <mono-list@lists.ximian.com>
<DIV></DIV>>Subject: [Mono-list] MySQL Connection from .NET Website
<DIV></DIV>>
<DIV></DIV>>I'm trying to track down a problem with websites using a connection to a
<DIV></DIV>>MySQL database. Has anyone had any problems using the CoreLab.MySQL.dll
<DIV></DIV>>libraries with Mono? If it's known not to work, is there a
<DIV></DIV>>different/better way to connect to the database? For reference, the
<DIV></DIV>>code used in a simple test page is as follows (sorry for any wrapping):
<DIV></DIV>>
<DIV></DIV>>MySqlConnection mySqlConnectionGrid;
<DIV></DIV>>MySqlDataAdapter mySqlDataAdapter;
<DIV></DIV>>DataSet dataSetGrid;
<DIV></DIV>>string stringSQL;
<DIV></DIV>>stringSQL = "SELECT * FROM Reference_DaysOfTheWeek";
<DIV></DIV>>mySqlConnectionGrid = new MySqlConnection(Global.stringDatabaseConnection);
<DIV></DIV>>mySqlDataAdapter = new MySqlDataAdapter(stringSQL, mySqlConnectionGrid);
<DIV></DIV>>dataSetGrid = new DataSet();
<DIV></DIV>>mySqlDataAdapter.Fill(dataSetGrid);
<DIV></DIV>>dataListDOTW.DataSource = dataSetGrid;
<DIV></DIV>>dataListDOTW.DataBind();
<DIV></DIV>>
<DIV></DIV>>And the problem this has been giving me is that the server simply hangs
<DIV></DIV>>when this page is requested until it eventually times out. Any ideas?
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>Regards,
<DIV></DIV>>David P. Donahue
<DIV></DIV>>ddonahue@ccs.neu.edu
<DIV></DIV>>
<DIV></DIV>>--__--__--
<DIV></DIV>>
<DIV></DIV>>Message: 12
<DIV></DIV>>From: Arturo =?ISO-8859-1?Q?Gonz=E1lez?= <arturogf@ugr.es>
<DIV></DIV>>To: mono-list <mono-list@lists.ximian.com>
<DIV></DIV>>Date: Wed, 02 Feb 2005 11:50:03 +0100
<DIV></DIV>>Subject: [Mono-list] consuming 'php nusoap' webservice
<DIV></DIV>>
<DIV></DIV>>Hi,
<DIV></DIV>>
<DIV></DIV>>I'm trying to develop an example client for ILIAS open source
<DIV></DIV>>webservice, lately supported by novell
<DIV></DIV>>(http://www.ilias.uni-koeln.de/ios/index-e.html) , but i'm having
<DIV></DIV>>problems with a remote function that returns an integer.
<DIV></DIV>>
<DIV></DIV>>The server is located at:
<DIV></DIV>>
<DIV></DIV>>http://tad1.ugr.es/ilias_3_3_x/webservice/soap/server.php
<DIV></DIV>>http://tad1.ugr.es/ilias_3_3_x/webservice/soap/server.php?wsdl
<DIV></DIV>>
<DIV></DIV>>if i try to consume the lookupUser method as follows:
<DIV></DIV>>
<DIV></DIV>>int user_id = ilUA.lookupUser(sess_id, "soap_user");
<DIV></DIV>>
<DIV></DIV>>Then the compiler says that can't convert from string to int:
<DIV></DIV>>
<DIV></DIV>>exampleClient.cs(25) error CS0029: Cannot convert implicitly from
<DIV></DIV>>`string' to `int'
<DIV></DIV>>
<DIV></DIV>>if i try the next:
<DIV></DIV>>
<DIV></DIV>>int user_id = Convert.ToInt32(ilUA.lookupUser(sess_id, "soap_user"));
<DIV></DIV>>
<DIV></DIV>>then it throws:
<DIV></DIV>>
<DIV></DIV>>Unhandled Exception: System.Web.Services.Protocols.SoapException:
<DIV></DIV>>Session not valid
<DIV></DIV>>
<DIV></DIV>>in <0x004c5>
<DIV></DIV>>System.Web.Services.Protocols.SoapHttpClientProtocol:ReceiveResponse
<DIV></DIV>>(System.Net.WebResponse,System.Web.Services.Protocols.SoapClientMessage,System.Web.Services.Protocols.SoapExtension[])
<DIV></DIV>>in <0x0007d> (wrapper remoting-invoke-with-check)
<DIV></DIV>>System.Web.Services.Protocols.SoapHttpClientProtocol:ReceiveResponse
<DIV></DIV>>(System.Net.WebResponse,System.Web.Services.Protocols.SoapClientMessage,System.Web.Services.Protocols.SoapExtension[])
<DIV></DIV>>in <0x002a9> System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke
<DIV></DIV>>(string,object[])
<DIV></DIV>>in <0x0006b> (wrapper remoting-invoke-with-check)
<DIV></DIV>>System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke
<DIV></DIV>>(string,object[])
<DIV></DIV>>in <0x0006b> ilUserAdministration:lookupUser (string,string)
<DIV></DIV>>in <0x000bf> ConsoleIlUserAdmin:Main (string[])
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>Does anyone know what could be happening? I had no problem consuming the
<DIV></DIV>>'login' method that returns a string with the PHP_SESSID.
<DIV></DIV>>
<DIV></DIV>>regards,
<DIV></DIV>>
<DIV></DIV>>Arturo.
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>--
<DIV></DIV>>Arturo González <arturogf@ugr.es>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>--__--__--
<DIV></DIV>>
<DIV></DIV>>_______________________________________________
<DIV></DIV>>Mono-list mailing list
<DIV></DIV>>Mono-list@lists.ximian.com
<DIV></DIV>>http://lists.ximian.com/mailman/listinfo/mono-list
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>End of Mono-list Digest
<DIV></DIV></div><br clear=all><hr> <a href="http://g.msn.com/8HMAENUS/2728??PS=47575" target="_top">Try the new Beta version of MSN Messenger - it's FREE!</a> </html>