Re: [Mono-aspnet-list] FastCgi Mono Server and Apache
Hi, loopedcode wrote: > /home/user1/bin/mono-fcgi & There is no need to try to spawn an fcgi process every time. cgi-fcgi takes care of that if you use it according to http://www.mono-project.com/CGI > # stdin is the socket handle > exec env \ > /usr/local/bin/fastcgi-mono-server2 \ > /socket=unix:$SOCKET \ > /root=/home/user1/www/aspnet \ > /applications=/:/home/user1/www/aspnet \ > /logfile=/home/user1/bin/mono-fcgi.log \ > /loglevels=All \ > 2>> /home/user1/bin/mono-fcgi.err You have to use env -i and pass all your relevant environment variables explicitly because mono-fastcgi-server will otherwise fall back to CGI environment variables that most likely will cause you trouble. Also note that "stdin is the socket handle" is not the case in your case. If you let cgi-fcgi spawn your fcgi server when it's not available then cgi-fcgi will take care of socket creation as well. If you still have problems, please also send your Apache configuration. Kornél ___ Mono-aspnet-list mailing list Mono-aspnet-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
[Mono-aspnet-list] System.Design.dll
Hi *, after updating my mono version on Fedora 11. One of my ASP.NET sites won't work anymore. The error messages are: ** (/usr/lib64/mono/2.0/mod-mono-server2.exe:11164): WARNING **: The class System.Web.UI.Design.WebControls.HierarchicalDataSourceIDConverter could not be loaded, used in System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ** (/usr/lib64/mono/2.0/mod-mono-server2.exe:11164): WARNING **: The class System.Web.UI.Design.WebControls.SiteMapDataSourceDesigner could not be loaded, used in System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ** (/usr/lib64/mono/2.0/mod-mono-server2.exe:11164): WARNING **: The class System.Web.UI.Design.WebControls.SiteMapDataSourceDesigner could not be loaded, used in System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ** (/usr/lib64/mono/2.0/mod-mono-server2.exe:11164): WARNING **: The class System.Web.UI.Design.WebControls.SiteMapDesignerHierarchicalDataSourceView could not be loaded, used in System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a I found the Assembly in the mono install folder and in MonoDevelop. I can make a reference to the assembly, but unsuccsessfully.. What happend to System.Design.dll? Any hints? greetings from bavaria Tobi -- View this message in context: http://www.nabble.com/System.Design.dll-tp25488337p25488337.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. ___ Mono-aspnet-list mailing list Mono-aspnet-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
[Mono-aspnet-list] [PATCH] support WCF proxy in ASP.NET AJAX
Hi, I have created a patch that adds WCF support to ASP.NET AJAX ProxyGenerator. The change is not small and it involves some structural changes to existing asmx support, but what I basically did was to make LogicalTypeInfo and LogicalMethodInfo abstract and create sets of derived types for asmx and WCF. All dependent changes other than this patch is already made in mcs trunk. Please review - I feel sorry to have such a large change though... ;/ Atsushi Eno Index: System.Web.Script.Services/RestHandler.cs === --- System.Web.Script.Services/RestHandler.cs (revision 142129) +++ System.Web.Script.Services/RestHandler.cs (working copy) @@ -120,7 +120,7 @@ new ReadOnlySessionWrapperHandler (handler) : new SessionWrapperHandler (handler); } else - if (mi.WebMethod.EnableSession) + if (mi.EnableSession) return new SessionWrapperHandler (handler); return handler; @@ -136,19 +136,13 @@ HttpRequest request = context.Request; HttpResponse response = context.Response; response.ContentType = - _logicalMethodInfo.ScriptMethod.ResponseFormat == ResponseFormat.Json ? + _logicalMethodInfo.ResponseFormat == ResponseFormat.Json ? "application/json" : "text/xml"; response.Cache.SetCacheability (HttpCacheability.Private); response.Cache.SetMaxAge (TimeSpan.Zero); - IDictionary @params = - "GET".Equals (request.RequestType, StringComparison.OrdinalIgnoreCase) - ? GetNameValueCollectionDictionary (request.QueryString) : - (IDictionary) JavaScriptSerializer.DefaultSerializer.DeserializeObjectInternal - (new StreamReader (request.InputStream, request.ContentEncoding)); - try { - _logicalMethodInfo.Invoke (@params, response.Output); + _logicalMethodInfo.Invoke (request, response); } catch (TargetInvocationException e) { response.AddHeader ("jsonerror", "true"); @@ -158,16 +152,6 @@ response.End (); } } - - IDictionary GetNameValueCollectionDictionary (NameValueCollection nvc) - { - var ret = new Dictionary (); - - for (int i = nvc.Count - 1; i >= 0; i--) - ret.Add (nvc.GetKey (i), JavaScriptSerializer.DefaultSerializer.DeserializeObjectInternal (nvc.Get (i))); - - return ret; - } #endregion } Index: System.Web.Script.Services/ChangeLog === --- System.Web.Script.Services/ChangeLog(revision 142129) +++ System.Web.Script.Services/ChangeLog(working copy) @@ -1,3 +1,11 @@ +2009-09-17 Atsushi Enomoto + + * LogicalTypeInfo.cs, RestHandler.cs : add support for WCF proxy + generator. Make LogicalTypeInfo and LogicalMethodInfo abstract + and create sets of derivation for asmx and WCF. Large part of the + code still lives in abstract class, being reduced dependency on + ScriptServiceAttribute. + 2009-08-15 Marek Habersack * LogicalTypeInfo.cs: make sure JavaScriptSerializer instance used Index: System.Web.Script.Services/LogicalTypeInfo.cs === --- System.Web.Script.Services/LogicalTypeInfo.cs (revision 142129) +++ System.Web.Script.Services/LogicalTypeInfo.cs (working copy) @@ -1,10 +1,12 @@ // -// ScriptHandlerFactory.cs +// LogicalTypeInfo.cs // // Author: // Konstantin Triger +// Atsushi Enomoto // // (C) 2007 Mainsoft, Inc. http://www.mainsoft.com +// Copyright (C) 2009 Novell, Inc. http://novell.com // // // Permission is hereby granted, free of charge, to any person obtaining @@ -29,6 +31,7 @@ using System; using System.Collections.Generic; +using System.Collections.Specialized; using System.Text; using System.Web.Services; using System.Reflection; @@ -37,36 +40,38 @@ using System.IO; using System.Xml.Serialization; using System.Xml; +using System.ServiceModel; +using System.ServiceModel.Description; namespace System.Web.Script.Services { - internal sealed class LogicalTypeInfo + internal sealed class J
Re: [Mono-aspnet-list] [PATCH] support WCF proxy in ASP.NET AJAX
Atsushi Eno wrote: > Hi, Hey Atsushi, > I have created a patch that adds WCF support to ASP.NET AJAX > ProxyGenerator. > The change is not small and it involves some structural changes to > existing asmx support, > but what I basically did was to make LogicalTypeInfo and > LogicalMethodInfo abstract > and create sets of derived types for asmx and WCF. Everything looks good from a quick review, but could you please add some tests which check the functionality? > All dependent changes other than this patch is already made in mcs trunk. > > Please review - I feel sorry to have such a large change though... ;/ It looks fine to commit, but please don't do it till after 2.6 is branched - we should consider this code experimental and untested, so it wouldn't be a good idea to commit it at this point, imho. best, marek > > Atsushi Eno > ___ Mono-aspnet-list mailing list Mono-aspnet-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list