[Mono-list] webservice and error 500

KiOrKY KiOrKY <kiorky@goddess-gate.com>
Fri, 4 Jun 2004 10:45:24 +0200


i have forgotten to say that i have tried to put thuis application on a windows distant client and it runs, so its with mono that something goes wrong :( (at the oment tyhe client was on the same box)


is neccesary to recompile applications on mono, because i copy pasgte windows webservice client (ASP.Net) on my box.
If it is, which tool can make me th eproxy ... like wsdl.exe on windows

KiOrKY <kiorky@goddess-gate.com> wrote :

> well, its not iis which is defficient... any idea from where comes this 401
> error? GRRRRRRr!
> 
> my code is:
> 		private void button1_ServerClick(object sender, System.EventArgs e)
> 		{
> 		
> 			try
> 			{
> 				
> 				Websrvcl.localhost.Service1 srv =  new Websrvcl.localhost.Service1();
> 				srv.Credentials = new
> System.Net.NetworkCredential(&quot;kiorky&quot;,&quot;*********&quot;);
> 				srv.PreAuthenticate = true;				
> 				smachaine = &quot;&quot;+ srv.HelloWorld();			
> 				Label1.Text=smachaine;
> 			}
> 			catch (System.Exception ex)
> 			{
> 				Response.Write(ex.Message);
> 			}
> this code runs on windows but the site is hosted on the same machine...
> 
> regards
> 
> KiOrKY &lt;kiorky@goddess-gate.com&gt;
> wrote :
> 
> &gt; tHANKS, i have just a 401 error but its the distant server !
> &gt; regards
> &gt; 
> &gt; Bopm &amp;lt;bopm@udaff.com&amp;gt;
> &gt; wrote :
> &gt; 
> &gt; &amp;gt; Kill all mod_mono_server.exe after recompilation. It's not
> restart with
> &gt; 
> &gt; &amp;gt; apache now.
> &gt; &amp;gt; 
> &gt; &amp;gt; -- 
> &gt; &amp;gt; wbr, Sergey 'bopm' Moiseev.
> &gt; &amp;gt; 
> &gt; &amp;gt; On Fri, 4 Jun 2004, kiorky wrote:
> &gt; &amp;gt; 
> &gt; &amp;gt; &amp;amp;gt; why have i this error when i use a distant
> webservice???
> &gt; &amp;gt; &amp;amp;gt; i have copy paste my windows files (under visual
> studio) with
> &gt; just a
> &gt; &amp;gt; few
> &gt; &amp;gt; &amp;amp;gt; modifications (urls) on linux, and configure apache
> well
> &gt; (asdp.net
> &gt; &amp;gt; &amp;amp;gt; applications run)
> &gt; &amp;gt; &amp;amp;gt;
> &gt; &amp;gt; &amp;amp;gt; Server error in '/webclient' application
> &gt; &amp;gt; &amp;amp;gt; Description: Error processing request.
> &gt; &amp;gt; &amp;amp;gt;
> &gt; &amp;gt; &amp;amp;gt; Error Message: HTTP 500.
> &gt; &amp;gt; &amp;amp;gt;
> &gt; &amp;gt; &amp;amp;gt; Stack Trace:
> &gt; &amp;gt; &amp;amp;gt;
> &gt; &amp;gt; &amp;amp;gt; System.ArgumentException: Culture name rvice is not
> supported.
> &gt; &amp;gt; &amp;amp;gt; Parameter name: rvice
> &gt; &amp;gt; &amp;amp;gt; in &amp;amp;lt;0x000f2&amp;amp;gt;
> &gt; &amp;gt; System.Globalization.CultureInfo:CreateSpecificCulture
> &gt; &amp;gt; &amp;amp;gt; (string)
> &gt; &amp;gt; &amp;amp;gt; in (unmanaged) (wrapper managed-to-native)
> &gt; &amp;gt; &amp;amp;gt; System.Reflection.Assembly:FillName
> &gt; &amp;gt; &amp;amp;gt;
> (System.Reflection.Assembly,System.Reflection.AssemblyName)
> &gt; &amp;gt; &amp;amp;gt; in &amp;amp;lt;0x00004&amp;amp;gt; (wrapper
> managed-to-native)
> &gt; &amp;gt; &amp;amp;gt; System.Reflection.Assembly:FillName
> &gt; &amp;gt; &amp;amp;gt;
> (System.Reflection.Assembly,System.Reflection.AssemblyName)
> &gt; &amp;gt; &amp;amp;gt; in &amp;amp;lt;0x0002f&amp;amp;gt;
> System.Reflection.Assembly:GetName
> &gt; (bool)
> &gt; &amp;gt; &amp;amp;gt; in &amp;amp;lt;0x00013&amp;amp;gt;
> System.Reflection.Assembly:GetName
> &gt; ()
> &gt; &amp;gt; &amp;amp;gt; in &amp;amp;lt;0x0004f&amp;amp;gt;
> &gt; System.Web.UI.TemplateParser:AddAssembly
> &gt; &amp;gt; &amp;amp;gt; (System.Reflection.Assembly,bool)
> &gt; &amp;gt; &amp;amp;gt; in &amp;amp;lt;0x000b4&amp;amp;gt;
> &gt; System.Web.UI.TemplateParser:AddAssembliesInBin ()
> &gt; &amp;gt; &amp;amp;gt; in &amp;amp;lt;0x001c1&amp;amp;gt;
> System.Web.UI.TemplateParser:.ctor
> &gt; ()
> &gt; &amp;gt; &amp;amp;gt; in &amp;amp;lt;0x00018&amp;amp;gt;
> &gt; System.Web.UI.TemplateControlParser:.ctor ()
> &gt; &amp;gt; &amp;amp;gt; in &amp;amp;lt;0x00034&amp;amp;gt;
> System.Web.UI.PageParser:.ctor
> &gt; &amp;gt; &amp;amp;gt; (string,string,System.Web.HttpContext)
> &gt; &amp;gt; &amp;amp;gt; in &amp;amp;lt;0x00037&amp;amp;gt;
> &gt; System.Web.UI.PageParser:GetCompiledPageInstance
> &gt; &amp;gt; &amp;amp;gt; (string,string,System.Web.HttpContext)
> &gt; &amp;gt; &amp;amp;gt; in &amp;amp;lt;0x00011&amp;amp;gt;
> &gt; System.Web.UI.PageHandlerFactory:GetHandler
> &gt; &amp;gt; &amp;amp;gt; (System.Web.HttpContext,string,string,string)
> &gt; &amp;gt; &amp;amp;gt; in &amp;amp;lt;0x00374&amp;amp;gt;
> &gt; System.Web.HttpApplication:CreateHttpHandler
> &gt; &amp;gt; &amp;amp;gt; (System.Web.HttpContext,string,string,string)
> &gt; &amp;gt; &amp;amp;gt; in &amp;amp;lt;0x00122&amp;amp;gt;
> CreateHandlerState:Execute ()
> &gt; &amp;gt; &amp;amp;gt; in &amp;amp;lt;0x00084&amp;amp;gt;
> StateMachine:ExecuteState
> &gt; &amp;gt; &amp;amp;gt;
> (System.Web.HttpApplication/IStateHandler,bool&amp;amp;amp;)
> &gt; &amp;gt; &amp;amp;gt;
> &gt; &amp;gt; &amp;amp;gt;
> &gt; &amp;gt; &amp;amp;gt;
> &gt; _____________________________________________________________________
> &gt; &amp;gt; &amp;amp;gt; Un mot doux à envoyer? Une sortie ciné à organiser?
> Faites le en
> &gt; temps
> &gt; &amp;gt; &amp;amp;gt; réel avec MSN Messenger! C'est gratuit!   http://ifrance.com/_reloc/m
> &gt; &amp;gt; &amp;amp;gt;
> &gt; &amp;gt; &amp;amp;gt; _______________________________________________
> &gt; &amp;gt; &amp;amp;gt; Mono-list maillist  -  Mono-list@lists.ximian.com
> &gt; &amp;gt; &amp;amp;gt; http://lists.ximian.com/mailman/listinfo/mono-list
> &gt; &amp;gt; &amp;amp;gt;
> &gt; 
> &gt; -- 
> &gt; ----------------------------
> &gt; - Gloire au monde libre    -
> &gt; ----------------------------
> &gt;     I{ i () r |{ Y
> &gt;     Debian User
> &gt; ---------------------------------------------
> &gt; -- Mathieu PASQUET     
> &gt; -- Testeur Debian SID
> &gt; -- irc: #debian-fr / irc.freenode.net port: 6667 
> &gt; -- Site: www.fr.debian.org 
> &gt; ---------------------------------------------
> &gt; 
> &gt; 
> &gt; _______________________________________________
> &gt; Mono-list maillist  -  Mono-list@lists.ximian.com
> &gt; http://lists.ximian.com/mailman/listinfo/mono-list
> 
> -- 
> ----------------------------
> - Gloire au monde libre    -
> ----------------------------
>     I{ i () r |{ Y
>     Debian User
> ---------------------------------------------
> -- Mathieu PASQUET     
> -- Testeur Debian SID
> -- irc: #debian-fr / irc.freenode.net port: 6667 
> -- Site: www.fr.debian.org 
> ---------------------------------------------
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

-- 
----------------------------
- Gloire au monde libre    -
----------------------------
    I{ i () r |{ Y
    Debian User
---------------------------------------------
-- Mathieu PASQUET     
-- Testeur Debian SID
-- irc: #debian-fr / irc.freenode.net port: 6667 
-- Site: www.fr.debian.org 
---------------------------------------------