From flaker.kapper at gmail.com Tue Mar 1 00:07:16 2011 From: flaker.kapper at gmail.com (Federico Delgado) Date: Tue, 1 Mar 2011 02:07:16 -0300 Subject: [Mono-aspnet-list] JQuery validation Message-ID: Hi, Is it possible that this jquery plugin is broken and does not work on Mono's asp .net (working on 2.10.1 now)? I really don't know if it is supposed to be working. Simple master-child page renders. with MS Net:

The Master

InsideMyForm

and this with Mono:

The Master

InsideMyForm

All the validation structure fails from there (I found this while porting a site). Thanks for any tip. From daniel.summers.2415 at gmail.com Tue Mar 1 07:56:36 2011 From: daniel.summers.2415 at gmail.com (Daniel J. Summers) Date: Tue, 1 Mar 2011 12:56:36 +0000 Subject: [Mono-aspnet-list] Why the LogOn action does not work correct? In-Reply-To: <1298941133318-3329073.post@n4.nabble.com> References: <1298902666686-3327978.post@n4.nabble.com> <1298941133318-3329073.post@n4.nabble.com> Message-ID: On Tue, Mar 1, 2011 at 12:58 AM, hjf1223 wrote: > Download the sample site from : > http://files.cnblogs.com/hjf1223/Mono_MVC3.zip Mono_MVC3.zip > > I have try it both on Windows(Nginx+FastCGI_Server) and > openSUSE(Apache+mod_mono), both of them have same result. > Using that ZIP, I got the same thing using Mono 2.10 (version 4.0.30319.1) and xsp4. There does seem to be something amiss there. I tried URLs like ?returnUrl=/Home and /LogOn/Home, but they don't seem to fix it either. Since I don't have the source, can you edit Controllers/LogOnController.cs* and remove the second parameter (return URL) under the [HttpPost] annotation? That may or may not break the "you asked for this page, but you have to be logged in; we'll redirect you to login, but send you back here when you log in" functionality, but I'd be curious as to whether that makes it work. Also, check Models/LogOnModel.cs* and see if it has a ReturnURL property; if it does, maybe you don't even need that second parameter at all. FWIW, I'm working on similar functionality now; what I'm doing is sticking the return URL in the session before redirecting to the login page. Then, once the user logs in, if the session has a URL, they get redirected there; otherwise, they get redirected to ~/Home. Now that I've built Mono 2.10 (thanks for the prompting), I'll be able to see if that works or not. * These file names are guesses, but they should be right since MVC uses names for auto-routing. -- *Daniel J. Summers* *Owner, DJS Consulting* E-mail ? Website ? Support ? Tech Blog GEEKCODE 3.12 GCS/IT d s-:+ a C++ P--- L++ E--- W++ N++ o? K- w !O M-- V PS+ PE++ Y? PGP- t+ 5? X+ R* tv b+ DI++ D+ G- e<++ h---- r+++ y++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110301/8e786706/attachment.html From hjf1223 at gmail.com Tue Mar 1 09:04:41 2011 From: hjf1223 at gmail.com (hjf1223) Date: Tue, 1 Mar 2011 06:04:41 -0800 (PST) Subject: [Mono-aspnet-list] Why the LogOn action does not work correct? In-Reply-To: References: <1298902666686-3327978.post@n4.nabble.com> <1298941133318-3329073.post@n4.nabble.com> Message-ID: <1298988281449-3329898.post@n4.nabble.com> HI The source is here: http://files.cnblogs.com/hjf1223/Mvc3_Mono_source.zip Please let the LogOn page works, because I have seem another errors on this page. Another issue is here: http://go-mono.com/forums/#nabble-tc3312507 My English is not good, can not express very clear, but I hope you can reproduce my problem. -- View this message in context: http://mono.1490590.n4.nabble.com/Why-the-LogOn-action-does-not-work-correct-tp3327978p3329898.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From gentx2 at courira.ca Tue Mar 1 13:44:04 2011 From: gentx2 at courira.ca (Sylvain Chamberland) Date: Tue, 01 Mar 2011 13:44:04 -0500 Subject: [Mono-aspnet-list] Could not find type:MySql.Web.Security.MySQLRoleProvider In-Reply-To: <1298939437767-3329040.post@n4.nabble.com> References: <1298936437048-3328976.post@n4.nabble.com> <581191180-1298938428-cardhu_decombobulator_blackberry.rim.net-293298322-@bda2244.bisx.prod.on.blackberry> <1298939437767-3329040.post@n4.nabble.com> Message-ID: On Mon, 28 Feb 2011 16:30:37 -0800 (PST), ajwtech wrote: > MySql does include a Role provider. I needed to add my assemblies to > the bin > directory. once I dropped them into the bin folder from the site the > issue > was resolved. For my part, I fixed the problem by changing the case of the DLL filename so it matches the assembly name (e.g. Camel Case), I also changed the namespace ("mysql.web" -> "MySql.Web") in the providers sections, then re-registered the DLL in the GAC. It's as stupid as that. :) From lars at larsknox.com Tue Mar 1 15:24:18 2011 From: lars at larsknox.com (lars) Date: Tue, 1 Mar 2011 12:24:18 -0800 (PST) Subject: [Mono-aspnet-list] Error getting response stream (Trust failure) for HTTP (NOT https) Request? Message-ID: <1299011058873-3330536.post@n4.nabble.com> Hi, I am using Ubuntu 10.04, Mono 2.4.4, mod_mono (the latest), Apache2 web server I'm using the Google Docs API to get a list of spreadsheets. This exact same code works perfectly on a Windows 2008 box but not on the Ubuntu box. I'm enforcing .NET version 2.0 restrictions on the projects. So I'm only using .NET 2.0 libraries, etc. The actual point of failure appears to be at "System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult)" which is when I receive the "Error getting response stream (Trust failure): TrustFailure" error message. The URL is NOT an HTTPS URL! It is merely --> http://spreadsheets.google.com/feeds/spreadsheets/private/full ... I've read many posts/blogs regarding this error but it's only in the context of making an HTTPS request. I am not making an HTTPS request. I suspect, but do not know (because I am still learning how to develop for Linux), that this might be permissions related? I understand the Apache runs under "www-data" user by default. At this point, I'm wondering how to have Apache run my site with higher permissions/priviledges to see if my WebRequest call will work correctly. But I am at a loss on how to proceed. If it make any difference (and I suspect it does not) I have already imported root certificates and run the tlstest.exe to confirm that I can connect and issue web requests to HTTPS successfully from the command line. I just cannot figure out how to get ASP.NET / mod_mono / Apache2 to successfully make a WebRequest. Any ideas? Thank you for your time :) Lars -- View this message in context: http://mono.1490590.n4.nabble.com/Error-getting-response-stream-Trust-failure-for-HTTP-NOT-https-Request-tp3330536p3330536.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From lars at larsknox.com Tue Mar 1 15:26:13 2011 From: lars at larsknox.com (lars) Date: Tue, 1 Mar 2011 12:26:13 -0800 (PST) Subject: [Mono-aspnet-list] Error getting response stream (Trust failure) for HTTP (NOT https) Request? In-Reply-To: <1299011058873-3330536.post@n4.nabble.com> References: <1299011058873-3330536.post@n4.nabble.com> Message-ID: <1299011173421-3330542.post@n4.nabble.com> This is as much of the Exception object values as I can manage to capture: MESSAGE: Execution of request failed: http://spreadsheets.google.com/feeds/spreadsheets/private/full SOURCE: Google.GData.Client STACK: at Google.GData.Client.GDataRequest.Execute () [0x00000] at Google.GData.Client.GDataGAuthRequest.Execute (Int32 retryCounter) [0x00000] TARGET: Void Execute() INNER MESSAGE: Error getting response stream (Trust failure): TrustFailure INNER SOURCE: System INNER STACK: at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) [0x00000] at System.Net.HttpWebRequest.GetRequestStream () [0x00000] at Google.GData.Client.Utilities.QueryClientLoginToken (Google.GData.Client.GDataCredentials gc, System.String serviceName, System.String applicationName, Boolean fUseKeepAlive, System.Uri clientLoginHandler) [0x00000] INNER TARGET: System.IO.Stream EndGetRequestStream(IAsyncResult) You can see the URL being used is a normal old HTTP (non-secure) request. Thanks again. -- View this message in context: http://mono.1490590.n4.nabble.com/Error-getting-response-stream-Trust-failure-for-HTTP-NOT-https-Request-tp3330536p3330542.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From chadwackerman at gmail.com Tue Mar 1 17:40:08 2011 From: chadwackerman at gmail.com (chadwackerman) Date: Tue, 1 Mar 2011 14:40:08 -0800 (PST) Subject: [Mono-aspnet-list] Error getting response stream (Trust failure) for HTTP (NOT https) Request? In-Reply-To: <1299011173421-3330542.post@n4.nabble.com> References: <1299011058873-3330536.post@n4.nabble.com> <1299011173421-3330542.post@n4.nabble.com> Message-ID: <1299019208539-3330738.post@n4.nabble.com> Maybe it's 3xx redirecting to an https request? Try setting HttpWebRequest.AllowAutoRedirect to false and see what you get. -- View this message in context: http://mono.1490590.n4.nabble.com/Error-getting-response-stream-Trust-failure-for-HTTP-NOT-https-Request-tp3330536p3330738.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From daniel.summers.2415 at gmail.com Tue Mar 1 19:27:26 2011 From: daniel.summers.2415 at gmail.com (Daniel J. Summers) Date: Wed, 2 Mar 2011 00:27:26 +0000 Subject: [Mono-aspnet-list] Error getting response stream (Trustfailure) for HTTP (NOT https) Request? In-Reply-To: <1299011173421-3330542.post@n4.nabble.com> References: <1299011058873-3330536.post@n4.nabble.com><1299011173421-3330542.post@n4.nabble.com> Message-ID: <1046732575-1299025646-cardhu_decombobulator_blackberry.rim.net-1646645601-@bda2244.bisx.prod.on.blackberry> I'm pretty sure that Google is redirecting mail and docs to https, partly in response to Firesheep. Try that URL in a browser and see if you get redirected. (I'd try it, but I'm using my phone to type this.) Daniel -----Original Message----- From: lars Sender: mono-aspnet-list-bounces at lists.ximian.com Date: Tue, 1 Mar 2011 12:26:13 To: Subject: Re: [Mono-aspnet-list] Error getting response stream (Trust failure) for HTTP (NOT https) Request? This is as much of the Exception object values as I can manage to capture: MESSAGE: Execution of request failed: http://spreadsheets.google.com/feeds/spreadsheets/private/full SOURCE: Google.GData.Client STACK: at Google.GData.Client.GDataRequest.Execute () [0x00000] at Google.GData.Client.GDataGAuthRequest.Execute (Int32 retryCounter) [0x00000] TARGET: Void Execute() INNER MESSAGE: Error getting response stream (Trust failure): TrustFailure INNER SOURCE: System INNER STACK: at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) [0x00000] at System.Net.HttpWebRequest.GetRequestStream () [0x00000] at Google.GData.Client.Utilities.QueryClientLoginToken (Google.GData.Client.GDataCredentials gc, System.String serviceName, System.String applicationName, Boolean fUseKeepAlive, System.Uri clientLoginHandler) [0x00000] INNER TARGET: System.IO.Stream EndGetRequestStream(IAsyncResult) You can see the URL being used is a normal old HTTP (non-secure) request. Thanks again. -- View this message in context: http://mono.1490590.n4.nabble.com/Error-getting-response-stream-Trust-failure-for-HTTP-NOT-https-Request-tp3330536p3330542.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. _______________________________________________ Mono-aspnet-list mailing list Mono-aspnet-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list From hjf1223 at gmail.com Wed Mar 2 01:14:44 2011 From: hjf1223 at gmail.com (hjf1223) Date: Tue, 1 Mar 2011 22:14:44 -0800 (PST) Subject: [Mono-aspnet-list] XSP4 from Mono 2.10 not working under Windows Message-ID: <1299046484654-3331066.post@n4.nabble.com> I'm trying to run any application on XSP4 web server using new Mono 2.10 (downloaded from windows installer bundle). I have already tried to run simple ASP.NET MVC2 project and ASP.NET. Both were simple applications stubs. In all cases in browser under localhost:8080 it seems that page is loading but nothing happens. With Mono 2.8 it works without any problems. Any suggestions how I can debug or solve this problem? -- View this message in context: http://mono.1490590.n4.nabble.com/XSP4-from-Mono-2-10-not-working-under-Windows-tp3331066p3331066.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From hjf1223 at gmail.com Wed Mar 2 01:16:29 2011 From: hjf1223 at gmail.com (hjf1223) Date: Tue, 1 Mar 2011 22:16:29 -0800 (PST) Subject: [Mono-aspnet-list] XSP4 from Mono 2.10 not working under Windows In-Reply-To: <1299046484654-3331066.post@n4.nabble.com> References: <1299046484654-3331066.post@n4.nabble.com> Message-ID: <1299046589508-3331068.post@n4.nabble.com> The original post is here: http://stackoverflow.com/questions/5133196/xsp4-from-mono-2-10-not-working-under-windows I am not the author, but I have met the same issue. -- View this message in context: http://mono.1490590.n4.nabble.com/XSP4-from-Mono-2-10-not-working-under-Windows-tp3331066p3331068.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From nelson.timothy at gmail.com Thu Mar 3 13:13:52 2011 From: nelson.timothy at gmail.com (Tim Nelson) Date: Thu, 3 Mar 2011 13:13:52 -0500 Subject: [Mono-aspnet-list] Options for Authentication Message-ID: I've got a set of web services that must have some form of authentication passed from the mobile devices to these services to validate/identify them. My original thought was to always pass the authentication key as the first argument to every method. This will work but to me seems like a major hack/ poor design. Next thought was to bury the authentication key in the Soap Header and decorate the methods with attributes that handle this. Problem here is it seems the "Required" flag in SoapHeaderAttribute is deprecated and ignored. Next thought was to try and move the services from ASP.Net to WCF, but I can't seemed to even get mod_mono to process a simple Service1.svc application. Maybe I am just missing something in the configuration, but I am worried WCF is not fully implemented yet. So I need some advice, if you were me today how would you accomplish this in mono? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110303/e9ec4e80/attachment.html From uli at xdt.com.au Thu Mar 3 23:53:32 2011 From: uli at xdt.com.au (Uli Hertlein) Date: Fri, 04 Mar 2011 15:53:32 +1100 Subject: [Mono-aspnet-list] [System.InvalidOperationException]: Contract '...' was not found in the implemented contracts in this service host. In-Reply-To: <4D6C749C.9070503@xdt.com.au> References: <4D6C749C.9070503@xdt.com.au> Message-ID: <4D70704C.4020403@xdt.com.au> Hi, nothing? :-( Does anyone have a similar environment, namely ASP.Net with WCF callbacks, webHttpBinding and the following directory layout? bin/Web.Control.dll <-- implements Web.Control.IControlService (and Web.Control.ControlService) Services/ControlService.svc <-- references Web.Control.IControlService Can I register contracts with the service host manually? Cheers, /uli On 03/01/2011 03:22 PM, Uli Hertlein wrote: > I have a ASP.Net application with WCF callbacks that works fine on Windows/Visual Studio. > When publishing to Apache with mod_mono (2.10) the JavaScript calls to > 'Services/ControlService.svc/...' generate the following exception: > > [System.InvalidOperationException]: Contract 'Web.Control.IControlService' was not found in the > implemented contracts in this service host. -- Ulrich Hertlein Research and Development mailto:uli at xdt.com.au XDT Pty Ltd http://www.xdt.com.au From lars at larsknox.com Fri Mar 4 13:57:17 2011 From: lars at larsknox.com (lars) Date: Fri, 4 Mar 2011 10:57:17 -0800 (PST) Subject: [Mono-aspnet-list] Error getting response stream (Trust failure) for HTTP (NOT https) Request? In-Reply-To: <1299011058873-3330536.post@n4.nabble.com> References: <1299011058873-3330536.post@n4.nabble.com> Message-ID: <1299265037531-3335786.post@n4.nabble.com> You guys were correct. Under the covers there was an HTTPS call occurring. I want to post this solution in case anyone else using the Google Docs Api with dot Net wants to use mono on Ubuntu. The solution was to issue these commands in a terminal window: sudo mozroots --import --ask-remove --machine sudo /etc/init.d/apache2 restart -- View this message in context: http://mono.1490590.n4.nabble.com/Error-getting-response-stream-Trust-failure-for-HTTP-NOT-https-Request-tp3330536p3335786.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From nelson.timothy at gmail.com Tue Mar 8 17:56:41 2011 From: nelson.timothy at gmail.com (Tim Nelson) Date: Tue, 8 Mar 2011 17:56:41 -0500 Subject: [Mono-aspnet-list] ASP.Net starts crashing after a number of days... Message-ID: I've got a (lightly used) ASP.Net service that is?deployed under Mono that runs fine. All of a sudden though beta testers report errors and when I hit the service from a browser, I get the error (below). Can someone get me some debugging steps to try and identify the problem? ----------------- ERROR ------------------- The section can't be defined in this configuration file (the allowed definition context is 'MachineToApplication'). (/var/www/html/Services/Web.config line 38) Description:?HTTP 400. Error processing request. Stack Trace: System.Configuration.ConfigurationErrorsException: The section can't be defined in this configuration file (the allowed definition context is 'MachineToApplication'). (/var/www/html/Services/Web.config line 38) at System.Configuration.SectionInfo.ReadData (System.Configuration.Configuration config, System.Xml.XmlReader reader, Boolean overrideAllowed) [0x0007d] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionInfo.cs:182 at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x0014b] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:324 at System.Configuration.SectionGroupInfo.ReadData (System.Configuration.Configuration config, System.Xml.XmlReader reader, Boolean overrideAllowed) [0x00018] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:277 at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x0014b] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:324 at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) [0x00007] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:269 at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x000ec] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:511 at System.Configuration.Configuration.Load () [0x0004a] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:472 at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00065] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:121 at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x0005c] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:83 at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x0003b] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:78 at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x0000e] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/InternalConfigurationFactory.cs:42 at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration (System.String path, System.String site, System.String locationSubPath, System.String server, System.String userName, System.String password, Boolean fweb) [0x0006b] in /root/mono-142439/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:322 ________________________________ Version information:?Mono Runtime Version:?tarball Thu Dec 9 06:33:31 CST 2010; ASP.NET Version:?2.0.50727.1433 From ajwtech at gmail.com Tue Mar 8 18:04:52 2011 From: ajwtech at gmail.com (Adam Wheeler) Date: Tue, 8 Mar 2011 18:04:52 -0500 Subject: [Mono-aspnet-list] ASP.Net starts crashing after a number of days... In-Reply-To: References: Message-ID: Can you post the web.config file? Looks like the section has an issue. Sent from android On Mar 8, 2011 5:56 PM, "Tim Nelson" wrote: > > I've got a (lightly used) ASP.Net service that is deployed under Mono > that runs fine. All of a sudden though beta testers report errors and > when I hit the service from a browser, I get the error (below). > > Can someone get me some debugging steps to try and identify the problem? > > ----------------- ERROR ------------------- > > The section can't be defined in this configuration > file (the allowed definition context is 'MachineToApplication'). > (/var/www/html/Services/Web.config line 38) > > Description: HTTP 400. Error processing request. > > Stack Trace: > > System.Configuration.ConfigurationErrorsException: The section > can't be defined in this configuration file (the > allowed definition context is 'MachineToApplication'). > (/var/www/html/Services/Web.config line 38) > at System.Configuration.SectionInfo.ReadData > (System.Configuration.Configuration config, System.Xml.XmlReader > reader, Boolean overrideAllowed) [0x0007d] in > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionInfo.cs:182 > at System.Configuration.SectionGroupInfo.ReadContent > (System.Xml.XmlReader reader, System.Configuration.Configuration > config, Boolean overrideAllowed, Boolean root) [0x0014b] in > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:324 > at System.Configuration.SectionGroupInfo.ReadData > (System.Configuration.Configuration config, System.Xml.XmlReader > reader, Boolean overrideAllowed) [0x00018] in > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:277 > at System.Configuration.SectionGroupInfo.ReadContent > (System.Xml.XmlReader reader, System.Configuration.Configuration > config, Boolean overrideAllowed, Boolean root) [0x0014b] in > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:324 > at System.Configuration.SectionGroupInfo.ReadRootData > (System.Xml.XmlReader reader, System.Configuration.Configuration > config, Boolean overrideAllowed) [0x00007] in > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:269 > at System.Configuration.Configuration.ReadConfigFile > (System.Xml.XmlReader reader, System.String fileName) [0x000ec] in > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:511 > at System.Configuration.Configuration.Load () [0x0004a] in > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:472 > at System.Configuration.Configuration.Init (IConfigSystem system, > System.String configPath, System.Configuration.Configuration parent) > [0x00065] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:121 > at System.Configuration.Configuration..ctor > (System.Configuration.InternalConfigurationSystem system, > System.String locationSubPath) [0x0005c] in > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:83 > at System.Configuration.Configuration..ctor > (System.Configuration.InternalConfigurationSystem system, > System.String locationSubPath) [0x0003b] in > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:78 > at System.Configuration.InternalConfigurationFactory.Create > (System.Type typeConfigHost, System.Object[] > hostInitConfigurationParams) [0x0000e] in > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/InternalConfigurationFactory.cs:42 > at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration > (System.String path, System.String site, System.String > locationSubPath, System.String server, System.String userName, > System.String password, Boolean fweb) [0x0006b] in > /root/mono-142439/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:322 > > ________________________________ > Version information: Mono Runtime Version: tarball Thu Dec 9 06:33:31 > CST 2010; ASP.NET Version: 2.0.50727.1433 > _______________________________________________ > Mono-aspnet-list mailing list > Mono-aspnet-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-aspnet-list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110308/e75b42da/attachment.html From gonzalo.mono at gmail.com Tue Mar 8 18:08:18 2011 From: gonzalo.mono at gmail.com (Gonzalo Paniagua Javier) Date: Tue, 08 Mar 2011 18:08:18 -0500 Subject: [Mono-aspnet-list] ASP.Net starts crashing after a number of days... In-Reply-To: References: Message-ID: <1299625698.2286.23.camel@lalo-laptop> On Tue, 2011-03-08 at 17:56 -0500, Tim Nelson wrote: > I've got a (lightly used) ASP.Net service that is deployed under Mono > that runs fine. All of a sudden though beta testers report errors and > when I hit the service from a browser, I get the error (below). > > Can someone get me some debugging steps to try and identify the problem? Try a newer version of mono. At least 2.8.2, better 2.10. -Gonzalo From jesse at pasichnyk.net Tue Mar 8 18:18:46 2011 From: jesse at pasichnyk.net (Jesse Pasichnyk) Date: Tue, 8 Mar 2011 15:18:46 -0800 Subject: [Mono-aspnet-list] ASP.Net starts crashing after a number of days... Message-ID: <20110308231938.05F0A7000A@herald.ximian.com> I believe I've had this happen when mono was upgrades. Make sure machine .config updates are applies and restart apache. Not 100% sure that will resolve your issue, but worked for me. - Jesse -----Original Message----- From: Tim Nelson Sent: Tuesday, March 08, 2011 2:56 PM To: Mono-aspnet-list at lists.ximian.com Subject: [Mono-aspnet-list] ASP.Net starts crashing after a number of days... I've got a (lightly used) ASP.Net service that is?deployed under Mono that runs fine. All of a sudden though beta testers report errors and when I hit the service from a browser, I get the error (below). Can someone get me some debugging steps to try and identify the problem? ----------------- ERROR ------------------- The section can't be defined in this configuration file (the allowed definition context is 'MachineToApplication'). (/var/www/html/Services/Web.config line 38) Description:?HTTP 400. Error processing request. Stack Trace: System.Configuration.ConfigurationErrorsException: The section can't be defined in this configuration file (the allowed definition context is 'MachineToApplication'). (/var/www/html/Services/Web.config line 38) at System.Configuration.SectionInfo.ReadData (System.Configuration.Configuration config, System.Xml.XmlReader reader, Boolean overrideAllowed) [0x0007d] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionInfo.cs:182 at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x0014b] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:324 at System.Configuration.SectionGroupInfo.ReadData (System.Configuration.Configuration config, System.Xml.XmlReader reader, Boolean overrideAllowed) [0x00018] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:277 at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x0014b] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:324 at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) [0x00007] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:269 at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x000ec] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:511 at System.Configuration.Configuration.Load () [0x0004a] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:472 at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00065] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:121 at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x0005c] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:83 at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x0003b] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:78 at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x0000e] in /root/mono-142439/mcs/class/System.Configuration/System.Configuration/InternalConfigurationFactory.cs:42 at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration (System.String path, System.String site, System.String locationSubPath, System.String server, System.String userName, System.String password, Boolean fweb) [0x0006b] in /root/mono-142439/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:322 ________________________________ Version information:?Mono Runtime Version:?tarball Thu Dec 9 06:33:31 CST 2010; ASP.NET Version:?2.0.50727.1433 _______________________________________________ Mono-aspnet-list mailing list Mono-aspnet-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list From nelson.timothy at gmail.com Tue Mar 8 19:02:40 2011 From: nelson.timothy at gmail.com (Tim Nelson) Date: Tue, 8 Mar 2011 19:02:40 -0500 Subject: [Mono-aspnet-list] ASP.Net starts crashing after a number of days... In-Reply-To: References: Message-ID: I haven't upgraded Mono or the services since I installed it a couple of months ago. Like I said the service runs fine for a while and then for some reason starts getting this error. -------------------------------------- Web.config ----------------------------------- On Tue, Mar 8, 2011 at 6:04 PM, Adam Wheeler wrote: > Can you post the web.config file? Looks like the section > has an issue. > > Sent from android > > On Mar 8, 2011 5:56 PM, "Tim Nelson" wrote: > > > > I've got a (lightly used) ASP.Net service that is deployed under Mono > > that runs fine. All of a sudden though beta testers report errors and > > when I hit the service from a browser, I get the error (below). > > > > Can someone get me some debugging steps to try and identify the problem? > > > > ----------------- ERROR ------------------- > > > > The section can't be defined in this configuration > > file (the allowed definition context is 'MachineToApplication'). > > (/var/www/html/Services/Web.config line 38) > > > > Description: HTTP 400. Error processing request. > > > > Stack Trace: > > > > System.Configuration.ConfigurationErrorsException: The section > > can't be defined in this configuration file (the > > allowed definition context is 'MachineToApplication'). > > (/var/www/html/Services/Web.config line 38) > > at System.Configuration.SectionInfo.ReadData > > (System.Configuration.Configuration config, System.Xml.XmlReader > > reader, Boolean overrideAllowed) [0x0007d] in > > > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionInfo.cs:182 > > at System.Configuration.SectionGroupInfo.ReadContent > > (System.Xml.XmlReader reader, System.Configuration.Configuration > > config, Boolean overrideAllowed, Boolean root) [0x0014b] in > > > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:324 > > at System.Configuration.SectionGroupInfo.ReadData > > (System.Configuration.Configuration config, System.Xml.XmlReader > > reader, Boolean overrideAllowed) [0x00018] in > > > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:277 > > at System.Configuration.SectionGroupInfo.ReadContent > > (System.Xml.XmlReader reader, System.Configuration.Configuration > > config, Boolean overrideAllowed, Boolean root) [0x0014b] in > > > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:324 > > at System.Configuration.SectionGroupInfo.ReadRootData > > (System.Xml.XmlReader reader, System.Configuration.Configuration > > config, Boolean overrideAllowed) [0x00007] in > > > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:269 > > at System.Configuration.Configuration.ReadConfigFile > > (System.Xml.XmlReader reader, System.String fileName) [0x000ec] in > > > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:511 > > at System.Configuration.Configuration.Load () [0x0004a] in > > > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:472 > > at System.Configuration.Configuration.Init (IConfigSystem system, > > System.String configPath, System.Configuration.Configuration parent) > > [0x00065] in > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:121 > > at System.Configuration.Configuration..ctor > > (System.Configuration.InternalConfigurationSystem system, > > System.String locationSubPath) [0x0005c] in > > > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:83 > > at System.Configuration.Configuration..ctor > > (System.Configuration.InternalConfigurationSystem system, > > System.String locationSubPath) [0x0003b] in > > > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:78 > > at System.Configuration.InternalConfigurationFactory.Create > > (System.Type typeConfigHost, System.Object[] > > hostInitConfigurationParams) [0x0000e] in > > > /root/mono-142439/mcs/class/System.Configuration/System.Configuration/InternalConfigurationFactory.cs:42 > > at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration > > (System.String path, System.String site, System.String > > locationSubPath, System.String server, System.String userName, > > System.String password, Boolean fweb) [0x0006b] in > > > /root/mono-142439/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:322 > > > > ________________________________ > > Version information: Mono Runtime Version: tarball Thu Dec 9 06:33:31 > > CST 2010; ASP.NET Version: 2.0.50727.1433 > > _______________________________________________ > > Mono-aspnet-list mailing list > > Mono-aspnet-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-aspnet-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110308/0c99e447/attachment-0001.html From fink.christoph at gmail.com Thu Mar 10 08:09:42 2011 From: fink.christoph at gmail.com (cfi) Date: Thu, 10 Mar 2011 05:09:42 -0800 (PST) Subject: [Mono-aspnet-list] Mono 2.10 under RHEL 5.2: Could not load file or assembly System.IdentityModel Message-ID: <1299762582901-3345805.post@n4.nabble.com> Hi, I installed Mono 2.10 on my RHEL 5.2 machine and when I try to access a ASP.NET site (mod_mon or xsp) I get the following error - how can I fix that?: Server Error in '/' Application Could not load file or assembly 'System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL' or one of its dependencies. The system cannot find the file specified. Description: HTTP 500. Error processing request. Stack Trace: System.IO.FileNotFoundException: Could not load file or assembly 'System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL' or one of its dependencies. The system cannot find the file specified. File name: 'System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL' at System.AppDomain.Load (System.String assemblyString, System.Security.Policy.Evidence assemblySecurity, Boolean refonly) [0x00000] in :0 at System.AppDomain.Load (System.String assemblyString) [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.AppDomain:Load (string) at System.Reflection.Assembly.Load (System.String assemblyString) [0x00000] in :0 at System.Web.Compilation.AssemblyPathResolver.GetAssemblyPath (System.String assemblyName) [0x00000] in :0 Version information: Mono Runtime Version: 2.10.1 (tarball Wed Feb 23 20:24:20 UTC 2011); ASP.NET Version: 2.0.50727.1433 regards CFI -- View this message in context: http://mono.1490590.n4.nabble.com/Mono-2-10-under-RHEL-5-2-Could-not-load-file-or-assembly-System-IdentityModel-tp3345805p3345805.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From ajwtech at gmail.com Thu Mar 10 09:45:59 2011 From: ajwtech at gmail.com (Adam Wheeler) Date: Thu, 10 Mar 2011 09:45:59 -0500 Subject: [Mono-aspnet-list] Mono 2.10 under RHEL 5.2: Could not load file or assembly System.IdentityModel In-Reply-To: <1299762582901-3345805.post@n4.nabble.com> References: <1299762582901-3345805.post@n4.nabble.com> Message-ID: Sounds like the library needs to be added to your bin folder or registered or added to your web.config file. Do you know how to do these things? On Mar 10, 2011 8:09 AM, "cfi" wrote: > Hi, > > I installed Mono 2.10 on my RHEL 5.2 machine and when I try to access a > ASP.NET site (mod_mon or xsp) I get the following error - how can I fix > that?: > > Server Error in '/' Application > > Could not load file or assembly 'System.IdentityModel, Version=3.0.0.0, > Culture=neutral, PublicKeyToken=b77a5c561934e089, > processorArchitecture=MSIL' or one of its dependencies. The system cannot > find the file specified. > > Description: HTTP 500. Error processing request. > > Stack Trace: > > System.IO.FileNotFoundException: Could not load file or assembly > 'System.IdentityModel, Version=3.0.0.0, Culture=neutral, > PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL' or one of its > dependencies. The system cannot find the file specified. > File name: 'System.IdentityModel, Version=3.0.0.0, Culture=neutral, > PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL' > at System.AppDomain.Load (System.String assemblyString, > System.Security.Policy.Evidence assemblySecurity, Boolean refonly) [0x00000] > in :0 > at System.AppDomain.Load (System.String assemblyString) [0x00000] in :0 > at (wrapper remoting-invoke-with-check) System.AppDomain:Load (string) > at System.Reflection.Assembly.Load (System.String assemblyString) > [0x00000] in :0 > at System.Web.Compilation.AssemblyPathResolver.GetAssemblyPath > (System.String assemblyName) [0x00000] in :0 > Version information: Mono Runtime Version: 2.10.1 (tarball Wed Feb 23 > 20:24:20 UTC 2011); ASP.NET Version: 2.0.50727.1433 > > regards > CFI > > -- > View this message in context: http://mono.1490590.n4.nabble.com/Mono-2-10-under-RHEL-5-2-Could-not-load-file-or-assembly-System-IdentityModel-tp3345805p3345805.html > Sent from the Mono - ASP.NET mailing list archive at Nabble.com. > _______________________________________________ > Mono-aspnet-list mailing list > Mono-aspnet-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-aspnet-list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110310/a6070bd2/attachment.html From fink.christoph at gmail.com Thu Mar 10 09:54:31 2011 From: fink.christoph at gmail.com (cfi) Date: Thu, 10 Mar 2011 06:54:31 -0800 (PST) Subject: [Mono-aspnet-list] Mono 2.10 under RHEL 5.2: Could not load file or assembly System.IdentityModel In-Reply-To: References: <1299762582901-3345805.post@n4.nabble.com> Message-ID: <1299768871545-3346027.post@n4.nabble.com> No, sorry - never done that. A short explanation would be great. thx CFI -- View this message in context: http://mono.1490590.n4.nabble.com/Mono-2-10-under-RHEL-5-2-Could-not-load-file-or-assembly-System-IdentityModel-tp3345805p3346027.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From fink.christoph at gmail.com Sat Mar 12 05:45:19 2011 From: fink.christoph at gmail.com (cfi) Date: Sat, 12 Mar 2011 02:45:19 -0800 (PST) Subject: [Mono-aspnet-list] Mono 2.10 under RHEL 5.2: Could not load file or assembly System.IdentityModel In-Reply-To: References: <1299762582901-3345805.post@n4.nabble.com> Message-ID: <1299926719094-3350030.post@n4.nabble.com> I did a little research on my box and found out, that there really is no System.IdentityModel file in my lib folder (as it is on my mon 2.10 under windows) - is that file missing in the 2.10 package for RHEL? -- View this message in context: http://mono.1490590.n4.nabble.com/Mono-2-10-under-RHEL-5-2-Could-not-load-file-or-assembly-System-IdentityModel-tp3345805p3350030.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From ajwtech at gmail.com Mon Mar 14 00:27:15 2011 From: ajwtech at gmail.com (ajwtech) Date: Sun, 13 Mar 2011 21:27:15 -0700 (PDT) Subject: [Mono-aspnet-list] Error in MySQL role provider Message-ID: <1300076835877-3353139.post@n4.nabble.com> Whenever I try to load my site I get the following error. Any guidance on what to check with this would be very helpful. Thanks. Server Error in '/time' Application -------------------------------------------------------------------------------- Provider 'MySqlRoleProvider' must subclass from 'System.Web.Security.RoleProvider' Description: HTTP 500. Error processing request. Stack Trace: System.Configuration.ConfigurationErrorsException: Provider 'MySqlRoleProvider' must subclass from 'System.Web.Security.RoleProvider' at System.Web.Configuration.ProvidersHelper.InstantiateProvider (System.Configuration.ProviderSettings providerSettings, System.Type providerType) [0x00072] in /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.Configuration_2.0/ProvidersHelper.cs:64 at System.Web.Configuration.ProvidersHelper.InstantiateProviders (System.Configuration.ProviderSettingsCollection configProviders, System.Configuration.Provider.ProviderCollection providers, System.Type providerType) [0x0003e] in /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.Configuration_2.0/ProvidersHelper.cs:72 at System.Web.Security.Roles.get_Providers () [0x00015] in /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.Security/Roles.cs:260 at System.Web.Security.Roles.get_Provider () [0x00000] in /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.Security/Roles.cs:248 at System.Web.Security.Roles.RoleExists (System.String rolename) [0x00000] in /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.Security/Roles.cs:188 at ASP.global_asax.Application_Start (System.Object sender, System.EventArgs e) [0x0000a] in /usr/local/TimeTracker/Global.asax:13 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d0] in /usr/src/redhat/BUILD/mono-2.10/mcs/class/corlib/System.Reflection/MonoMethod.cs:226 -------------------------------------------------------------------------------- Version information: Mono Runtime Version: 2.10 (tarball Tue Feb 15 04:36:31 UTC 2011); ASP.NET Version: 2.0.50727.1433 -- View this message in context: http://mono.1490590.n4.nabble.com/Error-in-MySQL-role-provider-tp3353139p3353139.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From daniel.summers.2415 at gmail.com Mon Mar 14 01:33:17 2011 From: daniel.summers.2415 at gmail.com (Daniel J. Summers) Date: Mon, 14 Mar 2011 05:33:17 +0000 Subject: [Mono-aspnet-list] MVC 3 App Cannot Find Template Message-ID: I'm developing an ASP MVC 3 app in VS2010, then using the "publish" command to put the finished website onto my Linux machine for testing. The site runs fine in the ASP.NET Development Server, but after adding some libraries that weren't there (System.Web.Helpers, System.Web.Mvc (v3), and System.Web.WebPages, the DLL with Razor in it), I got to this point, but I'm unsure what to do next. The site loads, connects to the database, and goes through all the necessary motions to render the page. But, when it tries to render the home page, the following error occurs: System.InvalidOperationException: The view 'Index' or its master was not found or no view engine supports the searched locations. The following locations were searched: ~/Views/Home/Index.aspx ~/Views/Home/Index.ascx ~/Views/Shared/Index.aspx ~/Views/Shared/Index.ascx ~/Views/Home/Index.cshtml ~/Views/Home/Index.vbhtml ~/Views/Shared/Index.cshtml ~/Views/Shared/Index.vbhtml at System.Web.Mvc.ViewResult.FindView [snip] ~/Views/Home/Index.cshtml is the file that's there. Below is the Apache configuration (note MONO_IOMAP is set to "all", so it's not a case issue; not shown is the location directive, which pretty much just sends everything to Mono): MonoServerPath vpr.yyy "/opt/mono-2.10/bin/mod-mono-server4" MonoDebug vpr.yyy true MonoSetEnv vpr.yyy MONO_IOMAP=all;PATH=/opt/mono-2.10/bin:$PATH;LD_LIBRARY_PATH=/opt/mono-2.10/lib:$LD_LIBRARY_PATH MonoApplications vpr.yyy "/:/var/www/dev/vpr" And, a directory listing of /var/www/dev/vpr (xxx is my user ID): xxx at yyy:/var/www/dev/vpr$ ls -alh Views/Home/Index.cshtml -rw-r--r-- 1 xxx xxx 1.2K 2011-03-13 21:56 Views/Home/Index.cshtml Apache is running as www-data, though the file is world-readable, so it should be able to find it. What am I missing? -- *Daniel J. Summers* *Owner, DJS Consulting* E-mail ? Website ? Support ? Tech Blog GEEKCODE 3.12 GCS/IT d s-:+ a C++ P--- L++ E--- W++ N++ o? K- w !O M-- V PS+ PE++ Y? PGP- t+ 5? X+ R* tv b+ DI++ D+ G- e<++ h---- r+++ y++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110314/66a67b2c/attachment-0001.html From abatishchev at godfather.net.ru Mon Mar 14 02:54:27 2011 From: abatishchev at godfather.net.ru (Alexander M. Batishchev) Date: Mon, 14 Mar 2011 09:54:27 +0300 Subject: [Mono-aspnet-list] Error in MySQL role provider In-Reply-To: <1300076835877-3353139.post@n4.nabble.com> References: <1300076835877-3353139.post@n4.nabble.com> Message-ID: <002a01cbe214$aa0ec8b0$fe2c5a10$@net.ru> Try latest MySQL .NET Connector, ver. 6.3.6 http://dev.mysql.com/downloads/connector/net/ -----Original Message----- From: mono-aspnet-list-bounces at lists.ximian.com [mailto:mono-aspnet-list-bounces at lists.ximian.com] On Behalf Of ajwtech Sent: Monday, March 14, 2011 7:27 AM To: mono-aspnet-list at lists.ximian.com Subject: [Mono-aspnet-list] Error in MySQL role provider Whenever I try to load my site I get the following error. Any guidance on what to check with this would be very helpful. Thanks. Server Error in '/time' Application ---------------------------------------------------------------------------- ---- Provider 'MySqlRoleProvider' must subclass from 'System.Web.Security.RoleProvider' Description: HTTP 500. Error processing request. Stack Trace: System.Configuration.ConfigurationErrorsException: Provider 'MySqlRoleProvider' must subclass from 'System.Web.Security.RoleProvider' at System.Web.Configuration.ProvidersHelper.InstantiateProvider (System.Configuration.ProviderSettings providerSettings, System.Type providerType) [0x00072] in /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.Configuratio n_2.0/ProvidersHelper.cs:64 at System.Web.Configuration.ProvidersHelper.InstantiateProviders (System.Configuration.ProviderSettingsCollection configProviders, System.Configuration.Provider.ProviderCollection providers, System.Type providerType) [0x0003e] in /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.Configuratio n_2.0/ProvidersHelper.cs:72 at System.Web.Security.Roles.get_Providers () [0x00015] in /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.Security/Rol es.cs:260 at System.Web.Security.Roles.get_Provider () [0x00000] in /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.Security/Rol es.cs:248 at System.Web.Security.Roles.RoleExists (System.String rolename) [0x00000] in /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.Security/Rol es.cs:188 at ASP.global_asax.Application_Start (System.Object sender, System.EventArgs e) [0x0000a] in /usr/local/TimeTracker/Global.asax:13 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d0] in /usr/src/redhat/BUILD/mono-2.10/mcs/class/corlib/System.Reflection/MonoMetho d.cs:226 ---------------------------------------------------------------------------- ---- Version information: Mono Runtime Version: 2.10 (tarball Tue Feb 15 04:36:31 UTC 2011); ASP.NET Version: 2.0.50727.1433 -- View this message in context: http://mono.1490590.n4.nabble.com/Error-in-MySQL-role-provider-tp3353139p335 3139.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. _______________________________________________ Mono-aspnet-list mailing list Mono-aspnet-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list From joshua at jbrungar.com Mon Mar 14 16:37:46 2011 From: joshua at jbrungar.com (jbrungar) Date: Mon, 14 Mar 2011 13:37:46 -0700 (PDT) Subject: [Mono-aspnet-list] ASP.Net VB Compile Error Message-ID: <1300135066458-3354938.post@n4.nabble.com> The following code gives a compile error "Compiler Error Message: VBNC90019: Expected 'End'. " for the line str = "Hello World" Why is this? <% @Page Language="VB" %> -- View this message in context: http://mono.1490590.n4.nabble.com/ASP-Net-VB-Compile-Error-tp3354938p3354938.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From abatishchev at godfather.net.ru Mon Mar 14 16:51:25 2011 From: abatishchev at godfather.net.ru (Alexander M. Batishchev) Date: Mon, 14 Mar 2011 23:51:25 +0300 Subject: [Mono-aspnet-list] ASP.Net VB Compile Error In-Reply-To: <1300135066458-3354938.post@n4.nabble.com> References: <1300135066458-3354938.post@n4.nabble.com> Message-ID: <003e01cbe289$960bbe20$c2233a60$@net.ru> Rather better to discuss this topic in mono-devel-list http://lists.ximian.com/mailman/listinfo/mono-devel-list or file a bug directly to Novell Bugzilla https://bugzilla.novell.com/ -----Original Message----- From: mono-aspnet-list-bounces at lists.ximian.com [mailto:mono-aspnet-list-bounces at lists.ximian.com] On Behalf Of jbrungar Sent: Monday, March 14, 2011 11:38 PM To: mono-aspnet-list at lists.ximian.com Subject: [Mono-aspnet-list] ASP.Net VB Compile Error The following code gives a compile error "Compiler Error Message: VBNC90019: Expected 'End'. " for the line str = "Hello World" Why is this? <% @Page Language="VB" %> From ajwtech at gmail.com Mon Mar 14 22:34:26 2011 From: ajwtech at gmail.com (Adam Wheeler) Date: Mon, 14 Mar 2011 22:34:26 -0400 Subject: [Mono-aspnet-list] Error in MySQL role provider In-Reply-To: <002a01cbe214$aa0ec8b0$fe2c5a10$@net.ru> References: <1300076835877-3353139.post@n4.nabble.com> <002a01cbe214$aa0ec8b0$fe2c5a10$@net.ru> Message-ID: Found the issue I compiled from a modified version of the source trying to get rid of the my_ table prefix. On to the next error :) On Mar 14, 2011 2:54 AM, "Alexander M. Batishchev" < abatishchev at godfather.net.ru> wrote: > Try latest MySQL .NET Connector, ver. 6.3.6 > http://dev.mysql.com/downloads/connector/net/ > > -----Original Message----- > From: mono-aspnet-list-bounces at lists.ximian.com > [mailto:mono-aspnet-list-bounces at lists.ximian.com] On Behalf Of ajwtech > Sent: Monday, March 14, 2011 7:27 AM > To: mono-aspnet-list at lists.ximian.com > Subject: [Mono-aspnet-list] Error in MySQL role provider > > Whenever I try to load my site I get the following error. Any guidance on > what to check with this would be very helpful. > > Thanks. > > > Server Error in '/time' Application > > ---------------------------------------------------------------------------- > ---- > > Provider 'MySqlRoleProvider' must subclass from > 'System.Web.Security.RoleProvider' > Description: HTTP 500. Error processing request. > > Stack Trace: > > System.Configuration.ConfigurationErrorsException: Provider > 'MySqlRoleProvider' must subclass from 'System.Web.Security.RoleProvider' > at System.Web.Configuration.ProvidersHelper.InstantiateProvider > (System.Configuration.ProviderSettings providerSettings, System.Type > providerType) [0x00072] in > /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.Configuratio > n_2.0/ProvidersHelper.cs:64 > at System.Web.Configuration.ProvidersHelper.InstantiateProviders > (System.Configuration.ProviderSettingsCollection configProviders, > System.Configuration.Provider.ProviderCollection providers, System.Type > providerType) [0x0003e] in > /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.Configuratio > n_2.0/ProvidersHelper.cs:72 > at System.Web.Security.Roles.get_Providers () [0x00015] in > /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.Security/Rol > es.cs:260 > at System.Web.Security.Roles.get_Provider () [0x00000] in > /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.Security/Rol > es.cs:248 > at System.Web.Security.Roles.RoleExists (System.String rolename) [0x00000] > in > /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.Security/Rol > es.cs:188 > at ASP.global_asax.Application_Start (System.Object sender, > System.EventArgs e) [0x0000a] in /usr/local/TimeTracker/Global.asax:13 > at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke > (System.Reflection.MonoMethod,object,object[],System.Exception&) > at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags > invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, > System.Globalization.CultureInfo culture) [0x000d0] in > /usr/src/redhat/BUILD/mono-2.10/mcs/class/corlib/System.Reflection/MonoMetho > d.cs:226 > > ---------------------------------------------------------------------------- > ---- > Version information: Mono Runtime Version: 2.10 (tarball Tue Feb 15 04:36:31 > UTC 2011); ASP.NET Version: 2.0.50727.1433 > > -- > View this message in context: > http://mono.1490590.n4.nabble.com/Error-in-MySQL-role-provider-tp3353139p335 > 3139.html > Sent from the Mono - ASP.NET mailing list archive at Nabble.com. > _______________________________________________ > Mono-aspnet-list mailing list > Mono-aspnet-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-aspnet-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110314/4ca7e404/attachment.html From fink.christoph at gmail.com Tue Mar 15 06:09:22 2011 From: fink.christoph at gmail.com (cfi) Date: Tue, 15 Mar 2011 03:09:22 -0700 (PDT) Subject: [Mono-aspnet-list] Mono 2.10 under RHEL 5.2: Could not load file or assembly System.IdentityModel In-Reply-To: <1299926719094-3350030.post@n4.nabble.com> References: <1299762582901-3345805.post@n4.nabble.com> <1299926719094-3350030.post@n4.nabble.com> Message-ID: <1300183762291-3356133.post@n4.nabble.com> I Solved the problem for me by adding the missing files "manually": 1) Install openSuse 11.4 in a VM 2) Install mono2.10 in the VM 3) copy the /usr/lib/mono folder to a TMP-Folder some where (on my local Workstation in my case) 4) copy TMP/gac/System.IdentityModel and TMP/gac/System.IdentityModel.Selectors to RHEL:/opt/novell/mono/lib/mono/gac/* After that i got the same error for System.ServiceModel so I repeated Step 4 for all System.ServiceModel.* folders and now it is working. I still think the mono2.10-rpm for RHEL istn't correct as it seems a few libraries are missing... -- View this message in context: http://mono.1490590.n4.nabble.com/Mono-2-10-under-RHEL-5-2-Could-not-load-file-or-assembly-System-IdentityModel-tp3345805p3356133.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From carl.hoerberg at gmail.com Tue Mar 15 10:04:43 2011 From: carl.hoerberg at gmail.com (carlhoerberg) Date: Tue, 15 Mar 2011 07:04:43 -0700 (PDT) Subject: [Mono-aspnet-list] MVC 3 App Cannot Find Template In-Reply-To: References: Message-ID: <1300197883729-3356663.post@n4.nabble.com> mono can't find the precompiled views because of a "~" in the beginning of the view path, but it's easily fixed: https://gist.github.com/870574 -- View this message in context: http://mono.1490590.n4.nabble.com/MVC-3-App-Cannot-Find-Template-tp3353175p3356663.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From daniel.summers.2415 at gmail.com Tue Mar 15 10:52:36 2011 From: daniel.summers.2415 at gmail.com (Daniel J. Summers) Date: Tue, 15 Mar 2011 08:52:36 -0600 Subject: [Mono-aspnet-list] MVC 3 App Cannot Find Template In-Reply-To: <1300197883729-3356663.post@n4.nabble.com> References: <1300197883729-3356663.post@n4.nabble.com> Message-ID: On Tue, Mar 15, 2011 at 8:04 AM, carlhoerberg wrote: > mono can't find the precompiled views because of a "~" in the beginning of > the view path, but it's easily fixed: > https://gist.github.com/870574 Outstanding! I'll give this a shot. I develop this on Windows, but deploy on Linux; is there a quick way to make this smart so that it only replaces the view engine if it's running under Mono? Or should that work in both environments? -- *Daniel J. Summers* *Owner, DJS Consulting* E-mail ? Website ? Support ? Tech Blog GEEKCODE 3.12 GCS/IT d s-:+ a C++ P--- L++ E--- W++ N++ o? K- w !O M-- V PS+ PE++ Y? PGP- t+ 5? X+ R* tv b+ DI++ D+ G- e<++ h---- r+++ y++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110315/f777d30e/attachment-0001.html From carl.hoerberg at gmail.com Tue Mar 15 10:54:43 2011 From: carl.hoerberg at gmail.com (=?ISO-8859-1?Q?Carl_H=F6rberg?=) Date: Tue, 15 Mar 2011 21:54:43 +0700 Subject: [Mono-aspnet-list] MVC 3 App Cannot Find Template In-Reply-To: References: <1300197883729-3356663.post@n4.nabble.com> Message-ID: it works in both environments :) On Tue, Mar 15, 2011 at 21:52, Daniel J. Summers wrote: > On Tue, Mar 15, 2011 at 8:04 AM, carlhoerberg > wrote: >> >> mono can't find the precompiled views because of a "~" in the beginning of >> the view path, but it's easily fixed: >> https://gist.github.com/870574 > > Outstanding! ?I'll give this a shot. ?I develop this on Windows, but deploy > on Linux; is there a quick way to make this smart so that it only replaces > the view engine if it's running under Mono? ?Or should that work in both > environments? > -- > Daniel J. Summers > Owner, DJS Consulting > E-mail???Website???Support???Tech Blog > GEEKCODE 3.12 GCS/IT d s-:+ a C++ P--- L++ E--- W++ N++ o? K- w !O M-- > V PS+ PE++ Y? PGP- t+ 5? X+ R* tv b+ DI++ D+ G- e<++ h---- r+++ y++++ > > _______________________________________________ > Mono-aspnet-list mailing list > Mono-aspnet-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-aspnet-list > > From daniel.summers.2415 at gmail.com Tue Mar 15 22:46:59 2011 From: daniel.summers.2415 at gmail.com (Daniel J. Summers) Date: Wed, 16 Mar 2011 02:46:59 +0000 Subject: [Mono-aspnet-list] MVC 3 App Cannot Find Template In-Reply-To: References: <1300197883729-3356663.post@n4.nabble.com> Message-ID: On Tue, Mar 15, 2011 at 2:54 PM, Carl H?rberg wrote: > it works in both environments :) > This didn't seem to fix it. Still works fine on Windows, but still throws the error in Mono. (Even did clean/build and restarted Apache to flush the compiled cache.) Here's my Global.asax.cs - did I mess something up on the copy? namespace VPR { using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; /// /// Override to support Mono /// public class MonoWebFormViewEngine : WebFormViewEngine { protected override bool FileExists(ControllerContext controllerContext, string virtualPath) { return base.FileExists(controllerContext, virtualPath.Replace("~", "")); } } /// /// Override to support Mono /// public class MonoRazorViewEngine : RazorViewEngine { protected override bool FileExists(ControllerContext controllerContext, string virtualPath) { return base.FileExists(controllerContext, virtualPath.Replace("~", "")); } } // Note: For instructions on enabling IIS6 or IIS7 classic mode, // visit http://go.microsoft.com/?LinkId=9394801 public class MvcApplication : System.Web.HttpApplication { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults ); } protected void Application_Start() { // Put Mono-supporting view engines in the context ViewEngines.Engines.Clear(); ViewEngines.Engines.Add(new MonoWebFormViewEngine()); ViewEngines.Engines.Add(new MonoRazorViewEngine()); AreaRegistration.RegisterAllAreas(); RegisterGlobalFilters(GlobalFilters.Filters); RegisterRoutes(RouteTable.Routes); } } } -- *Daniel J. Summers* *Owner, DJS Consulting* E-mail ? Website ? Support ? Tech Blog GEEKCODE 3.12 GCS/IT d s-:+ a C++ P--- L++ E--- W++ N++ o? K- w !O M-- V PS+ PE++ Y? PGP- t+ 5? X+ R* tv b+ DI++ D+ G- e<++ h---- r+++ y++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110316/2d82ae25/attachment.html From carl.hoerberg at gmail.com Tue Mar 15 22:57:18 2011 From: carl.hoerberg at gmail.com (carlhoerberg) Date: Tue, 15 Mar 2011 19:57:18 -0700 (PDT) Subject: [Mono-aspnet-list] MVC 3 App Cannot Find Template In-Reply-To: References: <1300197883729-3356663.post@n4.nabble.com> Message-ID: it looks alright. you're using mono 2.10.1? did you precompile without "updatable"? mono doesn't cope with that.. On Wed, Mar 16, 2011 at 09:47, Daniel J. Summers [via Mono] wrote: > On Tue, Mar 15, 2011 at 2:54 PM, Carl H?rberg <[hidden email]> wrote: >> >> it works in both environments :) > > This didn't seem to fix it. ?Still works fine on Windows, but still throws > the error in Mono. ?(Even did clean/build and restarted Apache to flush the > compiled cache.) ?Here's my Global.asax.cs - did I mess something up on the > copy? > namespace VPR { > ?? ?using System; > ?? ?using System.Collections.Generic; > ?? ?using System.Configuration; > ?? ?using System.Linq; > ?? ?using System.Web; > ?? ?using System.Web.Mvc; > ?? ?using System.Web.Routing; > ?? ?/// > ?? ?/// Override to support Mono > ?? ?/// > ?? ?public class MonoWebFormViewEngine : WebFormViewEngine { > ?? ? ? ?protected override bool FileExists(ControllerContext > controllerContext, string virtualPath) { > ?? ? ? ? ? ?return base.FileExists(controllerContext, > virtualPath.Replace("~", "")); > ?? ? ? ?} > ?? ?} > ?? ?/// > ?? ?/// Override to support Mono > ?? ?/// > ?? ?public class MonoRazorViewEngine : RazorViewEngine { > ?? ? ? ?protected override bool FileExists(ControllerContext > controllerContext, string virtualPath) { > ?? ? ? ? ? ?return base.FileExists(controllerContext, > virtualPath.Replace("~", "")); > ?? ? ? ?} > ?? ?} > ?? ?// Note: For instructions on enabling IIS6 or IIS7 classic mode, > ?? ?// visit http://go.microsoft.com/?LinkId=9394801 > ?? ?public class MvcApplication : System.Web.HttpApplication { > ?? ? ? ?public static void RegisterGlobalFilters(GlobalFilterCollection > filters) { > ?? ? ? ? ? ?filters.Add(new HandleErrorAttribute()); > ?? ? ? ?} > ?? ? ? ?public static void RegisterRoutes(RouteCollection routes) { > ?? ? ? ? ? ?routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); > ?? ? ? ? ? ?routes.MapRoute( > ?? ? ? ? ? ? ? ?"Default", // Route name > ?? ? ? ? ? ? ? ?"{controller}/{action}/{id}", // URL with parameters > ?? ? ? ? ? ? ? ?new { controller = "Home", action = "Index", id = > UrlParameter.Optional } // Parameter defaults > ?? ? ? ? ? ?); > ?? ? ? ?} > ?? ? ? ?protected void Application_Start() { > ?? ? ? ? ? ?// Put Mono-supporting view engines in the context > ?? ? ? ? ? ?ViewEngines.Engines.Clear(); > ?? ? ? ? ? ?ViewEngines.Engines.Add(new MonoWebFormViewEngine()); > ?? ? ? ? ? ?ViewEngines.Engines.Add(new MonoRazorViewEngine()); > ?? ? ? ? ? ?AreaRegistration.RegisterAllAreas(); > ?? ? ? ? ? ?RegisterGlobalFilters(GlobalFilters.Filters); > ?? ? ? ? ? ?RegisterRoutes(RouteTable.Routes); > ?? ? ? ?} > ?? ?} > } > -- > Daniel J. Summers > Owner, DJS Consulting > [hidden email]???Website???Support???Tech Blog > GEEKCODE 3.12 GCS/IT d s-:+ a C++ P--- L++ E--- W++ N++ o? K- w !O M-- > V PS+ PE++ Y? PGP- t+ 5? X+ R* tv b+ DI++ D+ G- e<++ h---- r+++ y++++ > > _______________________________________________ > Mono-aspnet-list mailing list > [hidden email] > http://lists.ximian.com/mailman/listinfo/mono-aspnet-list > > > ________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://mono.1490590.n4.nabble.com/MVC-3-App-Cannot-Find-Template-tp3353175p3380701.html > To unsubscribe from MVC 3 App Cannot Find Template, click here. -- View this message in context: http://mono.1490590.n4.nabble.com/MVC-3-App-Cannot-Find-Template-tp3353175p3380710.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110315/9ebda7c2/attachment-0001.html From ajwtech at gmail.com Wed Mar 16 21:59:41 2011 From: ajwtech at gmail.com (ajwtech) Date: Wed, 16 Mar 2011 18:59:41 -0700 (PDT) Subject: [Mono-aspnet-list] System.Web.HttpException: Unable to validate data Message-ID: <1300327181357-3383560.post@n4.nabble.com> On a specific page in my site I get the following error. I am really unclear on what this means. Unable to validate data. Description: HTTP 500. Error processing request. Stack Trace: System.Web.HttpException: Unable to validate data. at System.Web.UI.ObjectStateFormatter.Deserialize (System.String inputString) [0x000cb] in /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:134 at System.Web.UI.ClientScriptManager.RestoreEventValidationState (System.String fieldValue) [0x0002e] in /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs:557 at System.Web.UI.Page.RestorePageState () [0x00021] in /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.UI/Page.cs:1450 at System.Web.UI.Page.InternalProcessRequest () [0x001b9] in /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.UI/Page.cs:1432 at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x0005b] in /usr/src/redhat/BUILD/mono-2.10/mcs/class/System.Web/System.Web.UI/Page.cs:1260 -------------------------------------------------------------------------------- Version information: Mono Runtime Version: 2.10 (tarball Tue Feb 15 04:36:31 UTC 2011); ASP.NET Version: 2.0.50727.1433 Thanks -- View this message in context: http://mono.1490590.n4.nabble.com/System-Web-HttpException-Unable-to-validate-data-tp3383560p3383560.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From ajwtech at gmail.com Wed Mar 16 22:06:02 2011 From: ajwtech at gmail.com (ajwtech) Date: Wed, 16 Mar 2011 19:06:02 -0700 (PDT) Subject: [Mono-aspnet-list] Brand New - How To Set Up In-Reply-To: <1300203544198-3356930.post@n4.nabble.com> References: <1300203544198-3356930.post@n4.nabble.com> Message-ID: <1300327562908-3383567.post@n4.nabble.com> Are you asking how to host the site? your question is unclear. Are you using MonoDevelop or any IDE? -- View this message in context: http://mono.1490590.n4.nabble.com/Brand-New-How-To-Set-Up-tp3356930p3383567.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From angel.ignacio.colmenares at gmail.com Thu Mar 17 18:09:02 2011 From: angel.ignacio.colmenares at gmail.com (angel colmenares) Date: Thu, 17 Mar 2011 15:09:02 -0700 (PDT) Subject: [Mono-aspnet-list] after updating to 2.10.1 webApp does not work ! Message-ID: <1300399742701-3385743.post@n4.nabble.com> hi my web app runs fine in mono 2.6.7 but running it on new 2.10.1 produces this message: ------------------------------------------------------------------------------------------------------------------------------------------------- Server Error in '/' Application Object reference not set to an instance of an object Description: HTTP 500. Error processing request. Stack Trace: System.NullReferenceException: Object reference not set to an instance of an object at System.Web.SessionState.SessionInProcHandler.GetItemInternal (System.Web.HttpContext context, System.String id, System.Boolean& locked, System.TimeSpan& lockAge, System.Object& lockId, System.Web.SessionState.SessionStateActions& actions, Boolean exclusive) [0x00000] in :0 Version information: Mono Runtime Version: 2.10.1 (tarball mi? mar 16 16:23:51 UTC 2011); ASP.NET Version: 2.0.50727.1433 ___________________________________________________________________________________________ any idea what's may be wrong? -- View this message in context: http://mono.1490590.n4.nabble.com/after-updating-to-2-10-1-webApp-does-not-work-tp3385743p3385743.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From stifu at free.fr Tue Mar 22 06:34:18 2011 From: stifu at free.fr (Stifu) Date: Tue, 22 Mar 2011 03:34:18 -0700 (PDT) Subject: [Mono-aspnet-list] Setting visibility to controls inside Repeater In-Reply-To: <1300789763803-3395988.post@n4.nabble.com> References: <1274369175347-2224725.post@n4.nabble.com> <1300096898957-3353494.post@n4.nabble.com> <1300789763803-3395988.post@n4.nabble.com> Message-ID: <1300790058658-3395996.post@n4.nabble.com> Could you please file a bug report with this information, so this bug can be fixed? Thanks. pdurchev wrote: > > I've just figured that out.. The problem is that FindControl doesn't > searche for the controls as expected. What happens is that when you call > FindControl in internal control (let's say UserControl), the search for > the control id is started form the page not from the internal control. So > if you have 2 labels with same ID (for example: lblTest) - 1st inside the > user control and 2nd inside the page itself, when you call > UserControl.FindControl("lblTest") it will return the instance inside the > Page. > > If you override FindControl in your UserControl there is a possibility to > enter infinite loop. > -- View this message in context: http://mono.1490590.n4.nabble.com/Setting-visibility-to-controls-inside-Repeater-tp2224725p3395996.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From nelson.timothy at gmail.com Wed Mar 23 10:23:15 2011 From: nelson.timothy at gmail.com (Tim Nelson) Date: Wed, 23 Mar 2011 10:23:15 -0400 Subject: [Mono-aspnet-list] Distributed Cache solution? Message-ID: I had Membase/Memcached running perfectly under Windows. I ported my application to Mono and even though Membase server is working fine I am struggling to get the C# Client working with Mono. Does anyone have this mix running? Are there other distributed cache solutions for Asp.Net/C#/Mono/*nix someone can recommend? Thanks! From fink.christoph at gmail.com Wed Mar 23 10:30:09 2011 From: fink.christoph at gmail.com (cfi) Date: Wed, 23 Mar 2011 07:30:09 -0700 (PDT) Subject: [Mono-aspnet-list] Distributed Cache solution? In-Reply-To: References: Message-ID: <1300890609345-3399644.post@n4.nabble.com> Hi, I'm using BeIT (http://code.google.com/p/beitmemcached/) and its running fine under mono. regards cfi -- View this message in context: http://mono.1490590.n4.nabble.com/Distributed-Cache-solution-tp3399623p3399644.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From ajwtech at gmail.com Wed Mar 23 22:41:35 2011 From: ajwtech at gmail.com (ajwtech) Date: Wed, 23 Mar 2011 19:41:35 -0700 (PDT) Subject: [Mono-aspnet-list] System.Web.HttpException: Unable to validate data In-Reply-To: <1300327181357-3383560.post@n4.nabble.com> References: <1300327181357-3383560.post@n4.nabble.com> Message-ID: <1300934495680-3401432.post@n4.nabble.com> I never found a resolution however It is no longer happening. -- View this message in context: http://mono.1490590.n4.nabble.com/System-Web-HttpException-Unable-to-validate-data-tp3383560p3401432.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From ajwtech at gmail.com Wed Mar 23 22:53:52 2011 From: ajwtech at gmail.com (ajwtech) Date: Wed, 23 Mar 2011 19:53:52 -0700 (PDT) Subject: [Mono-aspnet-list] Send and recieve database info using stored procedures and MySQL. Message-ID: <1300935232089-3401456.post@n4.nabble.com> Ok, So I have some C# in an ASP.net page that sends parameters to a MySQL Stored Procedure. I get the error that you see below. I have included the Error, the C# and the stored procedure. I think the problem has something to do with this line: "AddParamToSQLCmd(sqlCmd, "@ReturnValue", MySqlDbType.Int32, 0, ParameterDirection.ReturnValue, null);" Any Ideas? Server Error in '/' Application Incorrect number of arguments for PROCEDURE timetracker_dbo.aspnet_starterkits_CreateNewProject; expected 7, got 6 Description: HTTP 500. Error processing request. Stack Trace: MySql.Data.MySqlClient.MySqlException: Incorrect number of arguments for PROCEDURE timetracker_dbo.aspnet_starterkits_CreateNewProject; expected 7, got 6 at MySql.Data.MySqlClient.MySqlStream.ReadPacket () [0x00000] in :0 at MySql.Data.MySqlClient.NativeDriver.GetResult (System.Int32& affectedRow, System.Int32& insertedId) [0x00000] in :0 Version information: Mono Runtime Version: 2.8.2 (tarball); ASP.NET Version: 2.0.50727.1433 public override int CreateNewProject(Project newProject) { if (newProject == null) throw (new ArgumentNullException("newProject")); MySqlCommand sqlCmd = new MySqlCommand(); AddParamToSQLCmd(sqlCmd, "@ReturnValue", MySqlDbType.Int32, 0, ParameterDirection.ReturnValue, null); AddParamToSQLCmd(sqlCmd, "@ProjectCreatorUserName", MySqlDbType.VarChar, 255, ParameterDirection.Input, newProject.CreatorUserName); AddParamToSQLCmd(sqlCmd, "@ProjectCompletionDate", MySqlDbType.DateTime, 0, ParameterDirection.Input, newProject.CompletionDate); AddParamToSQLCmd(sqlCmd, "@ProjectDescription", MySqlDbType.VarChar, 1000, ParameterDirection.Input, newProject.Description); AddParamToSQLCmd(sqlCmd, "@ProjectEstimateDuration", MySqlDbType.Decimal, 0, ParameterDirection.Input, newProject.EstimateDuration); AddParamToSQLCmd(sqlCmd, "@ProjectManagerUserName", MySqlDbType.VarChar, 255, ParameterDirection.Input, newProject.ManagerUserName); AddParamToSQLCmd(sqlCmd, "@ProjectName", MySqlDbType.VarChar, 255, ParameterDirection.Input, newProject.Name); SetCommandType(sqlCmd, CommandType.StoredProcedure, SP_PROJECT_CREATE); ExecuteScalarCmd(sqlCmd); return ((int)sqlCmd.Parameters["@ReturnValue"].Value); } -- -------------------------------------------------------------------------------- -- Routine DDL -- -------------------------------------------------------------------------------- DELIMITER $$ CREATE DEFINER=`Time`@`192.168.30.1` PROCEDURE `aspnet_starterkits_CreateNewProject`( v_ProjectCreatorUserName NATIONAL VARCHAR(256), v_ProjectCompletionDate DATETIME, v_ProjectDescription NATIONAL VARCHAR(1000), v_ProjectEstimateDuration DECIMAL, v_ProjectManagerUserName NATIONAL VARCHAR(256), v_ProjectName NATIONAL VARCHAR(256), INOUT SWP_Ret_Value INT) SWL_return: BEGIN DECLARE v_ProjectCreatorId CHAR(36); DECLARE v_ProjectManagerId CHAR(36); select Id INTO v_ProjectCreatorId FROM aspnet_users WHERE name = v_ProjectCreatorUserName; select Id INTO v_ProjectManagerId FROM aspnet_users WHERE name = v_ProjectManagerUserName; IF NOT EXISTS(SELECT ProjectId FROM aspnet_starterkits_Projects WHERE LOWER(ProjectName) = LOWER(v_ProjectName)) then INSERT aspnet_starterkits_Projects(ProjectCreatorId, ProjectCompletionDate, ProjectDescription, ProjectEstimateDuration, ProjectManagerId, ProjectName) VALUES(v_ProjectCreatorId, v_ProjectCompletionDate, v_ProjectDescription, v_ProjectEstimateDuration, v_ProjectManagerId, v_ProjectName); SET SWP_Ret_Value = LAST_INSERT_ID(); LEAVE SWL_return; ELSE SET SWP_Ret_Value = 1; LEAVE SWL_return; end if; END -- View this message in context: http://mono.1490590.n4.nabble.com/Send-and-recieve-database-info-using-stored-procedures-and-MySQL-tp3401456p3401456.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From ajwtech at gmail.com Wed Mar 23 23:47:22 2011 From: ajwtech at gmail.com (ajwtech) Date: Wed, 23 Mar 2011 20:47:22 -0700 (PDT) Subject: [Mono-aspnet-list] Send and recieve database info using stored procedures and MySQL. In-Reply-To: <1300935232089-3401456.post@n4.nabble.com> References: <1300935232089-3401456.post@n4.nabble.com> Message-ID: <1300938442239-3401539.post@n4.nabble.com> Found the solution. I changed: "AddParamToSQLCmd(sqlCmd, "@ReturnValue", MySqlDbType.Int32, 0, ParameterDirection.ReturnValue, null);" to: "AddParamToSQLCmd(sqlCmd, "@ReturnValue", MySqlDbType.Int32, 0, ParameterDirection.INOUT, null);" -- View this message in context: http://mono.1490590.n4.nabble.com/Send-and-recieve-database-info-using-stored-procedures-and-MySQL-tp3401456p3401539.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From aamarber at karira.es Thu Mar 24 05:08:59 2011 From: aamarber at karira.es (=?ISO-8859-1?Q?Aar=F3n?=) Date: Thu, 24 Mar 2011 10:08:59 +0100 Subject: [Mono-aspnet-list] Cherokee skips fastcgi-mono-server4 running asp.net MVC 4.0 Message-ID: <4D8B0A2B.10801@karira.es> My problem is that when I run an ASP.NET MVC page with cherokee and mono, cherokee skips the fastcgi-mono-server and says 404 not found, instead of returning the data from mono-server. I followed this tutorial of cherokee to run asp.net under mono:http://www.cherokee-project.com/doc/cookbook_mono.html And I launch the fastcgi-mono-server4 with the next command from the console: sudo fastcgi-mono-server4 /applications=/myapplication/:/srv/www/htdocs/myapplication/ /socket=tcp:127.0.0.1:9000 /stopable=TRUE /filename=/temp/cherokee-mono.socket /logfile=/home/aamarber/mono-server4.log When I put this in the browser: localhost/myapplication it says HTTP 500 The value for the name controller must be a non-empty string; that's OK, because myapplication is an api. But if I put localhost/myapplication/websites/getwebsites it says the 404 error. I also tried with this example of msdn: http://archive.msdn.microsoft.com/aspnetmvcsamples/Release/ProjectReleases.aspx?ReleaseId=3547 It happens something different, the index page it's shown but when I click a link, it says 404 error. What can I do?? Thanks a lot! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110324/dc734ca4/attachment-0001.html From daniel.summers.2415 at gmail.com Thu Mar 24 09:08:54 2011 From: daniel.summers.2415 at gmail.com (Daniel J. Summers) Date: Thu, 24 Mar 2011 13:08:54 +0000 Subject: [Mono-aspnet-list] Cherokee skips fastcgi-mono-server4 running asp.net MVC 4.0 In-Reply-To: <4D8B0A2B.10801@karira.es> References: <4D8B0A2B.10801@karira.es> Message-ID: On Thu, Mar 24, 2011 at 9:08 AM, Aar?n wrote: > When I put this in the browser: localhost/myapplication it says HTTP 500 > The value for the name controller must be a non-empty string; that's OK, > because myapplication is an api. > > But if I put localhost/myapplication/websites/getwebsites it says the 404 > error. > Did you go with the option that sends everything to the FastCGI server? (Under #2 in the guide you linked above.) -- *Daniel J. Summers* *Owner, DJS Consulting* E-mail ? Website ? Support ? Tech Blog GEEKCODE 3.12 GCS/IT d s-:+ a C++ P--- L++ E--- W++ N++ o? K- w !O M-- V PS+ PE++ Y? PGP- t+ 5? X+ R* tv b+ DI++ D+ G- e<++ h---- r+++ y++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110324/f3bd6300/attachment.html From enochchongyk at gmail.com Thu Mar 24 20:02:17 2011 From: enochchongyk at gmail.com (enoch) Date: Thu, 24 Mar 2011 17:02:17 -0700 (PDT) Subject: [Mono-aspnet-list] Why system.web.ui.timer is not fire tick event in mono for asp.net? Message-ID: <1301011337934-3404115.post@n4.nabble.com> In version 2.10.1, i try to do a little bit test on System.Web.UI.Timer to see if the data will be autoincrement from Session, the thing is everything is fine, but up to the Tick event, it is not firing... Could Show a working example... Below is my code, thx for whoever that can give me a solution... or let mi know am i wrong in some place, a thousand thx. In Default.aspx.vb Public Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then If Session("Timer1") Is Nothing Then Session("Timer1") = 1 End If Label1.Text = Session("Timer1") End If End Sub Protected Sub timer1_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles timer1.Tick Session("Timer1") += 1 Label1.Text = Session("Timer1") End Sub End Class In the Default.aspx <%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/default.site.0.Master" CodeFile="Default.aspx.vb" Inherits="_Default" %> Whereas the designer is Option Explicit On Option Strict On Partial Public Class _Default Protected Content2 As System.Web.UI.WebControls.Content Protected sm1 As System.Web.UI.ScriptManager Protected timer1 As System.Web.UI.Timer Protected upd1 As System.Web.UI.UpdatePanel Protected Label1 As System.Web.UI.WebControls.Label End Class -- View this message in context: http://mono.1490590.n4.nabble.com/Why-system-web-ui-timer-is-not-fire-tick-event-in-mono-for-asp-net-tp3404115p3404115.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From aliaksei.harabchuk at gmail.com Fri Mar 25 03:07:38 2011 From: aliaksei.harabchuk at gmail.com (harabchuk) Date: Fri, 25 Mar 2011 00:07:38 -0700 (PDT) Subject: [Mono-aspnet-list] Xsp2 and multiple applications - can't get working Message-ID: <1301036858537-3404663.post@n4.nabble.com> I am trying to setup xsp2 webserver to serve multiple applications. I created the configuration file sites.webapp with two applications and different virtual hosts. But when I go to domain1.com and domain2.com with a browser I get the same page. It seems the xsp2 serves all requests with the last application mentioned in the configuration file. Please help me to setup xsp2 to work with multiple applications. I start xsp2 with the following command: $xsp2 --appconfigfile sites.webapp --verbose Here is my sites.webapp file app1 domain1.com 8080 / /var/www/app1 app2 domain2.com 8080 / /var/www/app2 -- View this message in context: http://mono.1490590.n4.nabble.com/Xsp2-and-multiple-applications-can-t-get-working-tp3404663p3404663.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From wfhse at web.de Fri Mar 25 05:37:13 2011 From: wfhse at web.de (sschaebe) Date: Fri, 25 Mar 2011 02:37:13 -0700 (PDT) Subject: [Mono-aspnet-list] problem with web.sitemap Message-ID: <1301045833994-3404954.post@n4.nabble.com> I added a XMLSitemapProvider to my Web.Config and my testing Web.Sitemap-Files contains following lines: By running the application I get the following error message: Can't find a site map node for the url: ~/ Can someone me? Thank you. Greetings Simon Sch?berle -- View this message in context: http://mono.1490590.n4.nabble.com/problem-with-web-sitemap-tp3404954p3404954.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From parnham at gmail.com Fri Mar 25 10:52:01 2011 From: parnham at gmail.com (Dan) Date: Fri, 25 Mar 2011 07:52:01 -0700 (PDT) Subject: [Mono-aspnet-list] issues with intermittent apache hangups In-Reply-To: References: Message-ID: <1301064721943-3405577.post@n4.nabble.com> We're seeing this too, very intermittent and with no obvious source of the problem but with the exact same stack trace reported here. This is a major issue because we can't push our new system into production with this occurring. It has occurred with both mono/mod_mono 2.8.1 and 2.10.1 running with apache2 on an ubuntu system. I'm not sure if it is relevant to this problem, but we are also using fluent nHibernate in our web application. Regards, Dan Sergey Lobko-Lobanovsky wrote: > > > I have an application in production that uses apache2 + mod_mono + nginx > setup. Approx. once per day apache hangs up and starts responding with the > 500 response to all requests. I don't have the stack trace but it has to > do > with caching session data. > > Restarting apache solves the problem. Did anyone experience anything like > this? > > And here's the stack trace: > > System.IndexOutOfRangeException: Array index is out of range. > at (wrapper stelemref) object:stelemref (object,intptr,object) > at System.Web.Caching.CacheItemPriorityQueue.Enqueue > (System.Web.Caching.CacheItem item) [0x00000] in <filename > unknown>:0 > at System.Web.Caching.Cache.EnqueueTimedItem > (System.Web.Caching.CacheItem item) [0x00000] in <filename > unknown>:0 > at System.Web.Caching.Cache.SetItemTimeout > (System.Web.Caching.CacheItem ci, DateTime absoluteExpiration, > TimeSpan slidingExpiration, > System.Web.Caching.CacheItemRemovedCallback onRemoveCallback, > System.Web.Caching.CacheItemUpdateCallback onUpdateCallback, > System.String key, Boolean doLock) [0x00000] in <filename unknown>:0 > at System.Web.Caching.Cache.Insert (System.String key, System.Object > value, System.Web.Caching.CacheDependency dependencies, DateTime > absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority > priority, System.Web.Caching.CacheItemRemovedCallback > onRemoveCallback, System.Web.Caching.CacheItemUpdateCallback > onUpdateCallback, Boolean doLock) [0x00000] in <filename unknown>:0 > at System.Web.Caching.Cache.Insert (System.String key, System.Object > value, System.Web.Caching.CacheDependency dependencies, DateTime > absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority > priority, System.Web.Caching.CacheItemRemovedCallback > onRemoveCallback) [0x00000] in <filename unknown>:0 > at System.Web.SessionState.SessionInProcHandler.InsertSessionItem > (System.Web.SessionState.InProcSessionItem item, Int32 timeout, > System.String id) [0x00000] in <filename unknown>:0 > at > System.Web.SessionState.SessionInProcHandler.SetAndReleaseItemExclusive > (System.Web.HttpContext context, System.String id, > System.Web.SessionState.SessionStateStoreData item, System.Object > lockId, Boolean newItem) [0x00000] in <filename unknown>:0 > -- View this message in context: http://mono.1490590.n4.nabble.com/issues-with-intermittent-apache-hangups-tp3264509p3405577.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From abatishchev at godfather.net.ru Sat Mar 26 04:40:33 2011 From: abatishchev at godfather.net.ru (Alexander M. Batishchev) Date: Sat, 26 Mar 2011 11:40:33 +0300 Subject: [Mono-aspnet-list] problem with web.sitemap In-Reply-To: <1301045833994-3404954.post@n4.nabble.com> References: <1301045833994-3404954.post@n4.nabble.com> Message-ID: <008f01cbeb91$7906b8a0$6b1429e0$@net.ru> Use this: -----Original Message----- From: mono-aspnet-list-bounces at lists.ximian.com [mailto:mono-aspnet-list-bounces at lists.ximian.com] On Behalf Of sschaebe Sent: Friday, March 25, 2011 12:37 PM To: mono-aspnet-list at lists.ximian.com Subject: [Mono-aspnet-list] problem with web.sitemap I added a XMLSitemapProvider to my Web.Config and my testing Web.Sitemap-Files contains following lines: By running the application I get the following error message: Can't find a site map node for the url: ~/ Can someone me? Thank you. Greetings Simon Sch?berle -- View this message in context: http://mono.1490590.n4.nabble.com/problem-with-web-sitemap-tp3404954p3404954.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. _______________________________________________ Mono-aspnet-list mailing list Mono-aspnet-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list From serge.lobanovsky at gmail.com Mon Mar 28 17:44:59 2011 From: serge.lobanovsky at gmail.com (Sergey Lobko-Lobanovsky) Date: Tue, 29 Mar 2011 00:44:59 +0300 Subject: [Mono-aspnet-list] issues with intermittent apache hangups In-Reply-To: <1301064721943-3405577.post@n4.nabble.com> References: <1301064721943-3405577.post@n4.nabble.com> Message-ID: Looks like someone will have to look into System.Web.Caching.CacheItemPriorityQueue As for me, I have migrated the system to the Windows environment. And for other projects we have that require Linux setup we are using the Java stack. On Fri, Mar 25, 2011 at 4:52 PM, Dan wrote: > We're seeing this too, very intermittent and with no obvious source of the > problem but with the exact same stack trace reported here. This is a major > issue because we can't push our new system into production with this > occurring. > > It has occurred with both mono/mod_mono 2.8.1 and 2.10.1 running with > apache2 on an ubuntu system. I'm not sure if it is relevant to this > problem, > but we are also using fluent nHibernate in our web application. > > Regards, > Dan > > > > Sergey Lobko-Lobanovsky wrote: > > > > > > I have an application in production that uses apache2 + mod_mono + nginx > > setup. Approx. once per day apache hangs up and starts responding with > the > > 500 response to all requests. I don't have the stack trace but it has to > > do > > with caching session data. > > > > Restarting apache solves the problem. Did anyone experience anything like > > this? > > > > And here's the stack trace: > > > > System.IndexOutOfRangeException: Array index is out of range. > > at (wrapper stelemref) object:stelemref (object,intptr,object) > > at System.Web.Caching.CacheItemPriorityQueue.Enqueue > > (System.Web.Caching.CacheItem item) [0x00000] in <filename > > unknown>:0 > > at System.Web.Caching.Cache.EnqueueTimedItem > > (System.Web.Caching.CacheItem item) [0x00000] in <filename > > unknown>:0 > > at System.Web.Caching.Cache.SetItemTimeout > > (System.Web.Caching.CacheItem ci, DateTime absoluteExpiration, > > TimeSpan slidingExpiration, > > System.Web.Caching.CacheItemRemovedCallback onRemoveCallback, > > System.Web.Caching.CacheItemUpdateCallback onUpdateCallback, > > System.String key, Boolean doLock) [0x00000] in <filename > unknown>:0 > > at System.Web.Caching.Cache.Insert (System.String key, System.Object > > value, System.Web.Caching.CacheDependency dependencies, DateTime > > absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority > > priority, System.Web.Caching.CacheItemRemovedCallback > > onRemoveCallback, System.Web.Caching.CacheItemUpdateCallback > > onUpdateCallback, Boolean doLock) [0x00000] in <filename unknown>:0 > > at System.Web.Caching.Cache.Insert (System.String key, System.Object > > value, System.Web.Caching.CacheDependency dependencies, DateTime > > absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority > > priority, System.Web.Caching.CacheItemRemovedCallback > > onRemoveCallback) [0x00000] in <filename unknown>:0 > > at System.Web.SessionState.SessionInProcHandler.InsertSessionItem > > (System.Web.SessionState.InProcSessionItem item, Int32 timeout, > > System.String id) [0x00000] in <filename unknown>:0 > > at > > System.Web.SessionState.SessionInProcHandler.SetAndReleaseItemExclusive > > (System.Web.HttpContext context, System.String id, > > System.Web.SessionState.SessionStateStoreData item, System.Object > > lockId, Boolean newItem) [0x00000] in <filename unknown>:0 > > > > -- > View this message in context: > http://mono.1490590.n4.nabble.com/issues-with-intermittent-apache-hangups-tp3264509p3405577.html > Sent from the Mono - ASP.NET mailing list archive at Nabble.com. > _______________________________________________ > Mono-aspnet-list mailing list > Mono-aspnet-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-aspnet-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110329/4a11a46d/attachment-0001.html From gonzalo.mono at gmail.com Mon Mar 28 23:44:44 2011 From: gonzalo.mono at gmail.com (Gonzalo Paniagua Javier) Date: Mon, 28 Mar 2011 23:44:44 -0400 Subject: [Mono-aspnet-list] issues with intermittent apache hangups In-Reply-To: References: <1301064721943-3405577.post@n4.nabble.com> Message-ID: <1301370284.11603.0.camel@localhost> On Tue, 2011-03-29 at 00:44 +0300, Sergey Lobko-Lobanovsky wrote: > Looks like someone will have to look into > System.Web.Caching.CacheItemPriorityQueue What version of Mono are you using? I believe Marek fixed this before 2.10.1 went out. If not, it should be fixed in the upcoming 2.10.2. -Gonzalo From coolmandar at gmail.com Tue Mar 29 01:51:03 2011 From: coolmandar at gmail.com (mandar bhong) Date: Tue, 29 Mar 2011 11:21:03 +0530 Subject: [Mono-aspnet-list] wcf support on mono Message-ID: Hi , I am working opc server implementation on mono. Here different protocol is available for communication e.g SoapXmlBinding, SoapXmlOverPipeBinding, SoapXmlOverTcpBinding and TcpBinding >From which I have successfully establish communication channel over TcpBinding but when I have started with SoapXmlBinding it is producing error for method "(SymmetricSecurityBindingElement)SecurityBindingElement.CreateMutualCertificateBindingElement()" I have google on it and found that some security related method are marked as TODO. While executing above method I got following error *"Error occured at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0 * * at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0 * * at System.Activator.CreateInstance (System.Type type, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x00000] in :0 * * at System.Activator.CreateInstance (System.Type type, System.Object[] args, System.Object[] activationAttributes) [0x00000] in :0 * * at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in :0 "* I want to know that when those method will be available to me so I can proceed forward Along with that I want to know , How we can form secure communication channel with wcf on mono Thanks and Regards Mandar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110329/650ca7bc/attachment.html From francisco at marzoa.com Tue Mar 29 04:56:59 2011 From: francisco at marzoa.com (Francisco M. Marzoa Alonso) Date: Tue, 29 Mar 2011 10:56:59 +0200 Subject: [Mono-aspnet-list] Problems configuring apache2 + mono Message-ID: <4D919EDB.2090206@marzoa.com> Hello, I'm having problems configuring apache2 and mono for using ASP.net on Ubuntu. I've installed everything needed, and the module seems to be working, but I've not been able to run a simple helloworld on a virtual host. I think the problem is on the webapp configuration file. My virtualhost is defined as follows: ServerAdmin webmaster at localhost ServerName fake.domain.com DocumentRoot /var/www/fake.domain.com/web/ ErrorLog /var/www/fake.domain.com/logs/error.log LogLevel warn CustomLog /var/www/fake.domain.com/logs/access.log combined Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all SetHandler mono DirectoryIndex index.aspx index.html I've created all needed directories and server itself is working fine if I do not use mono. I mean that if I move my browser to http://fake.domain.com/ it shows me the contents of /var/www/fake.domain.com/web directory without problems. But when I create a mono aplication on /etc/mono-server2/ it does not run as expected. I've created one file called fake.domain.com.webapp with the following contents: FakeDomain / /var/www/fake.domain.com/web fake.domamin.com But if I try to open http://devel.sharpbear.com I got a 503 Service Temporarily Unavailable after a while waiting for page to load. "The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later." Any hints? Thanks a lot in advance, From serge.lobanovsky at gmail.com Tue Mar 29 06:28:36 2011 From: serge.lobanovsky at gmail.com (Sergey Lobko-Lobanovsky) Date: Tue, 29 Mar 2011 13:28:36 +0300 Subject: [Mono-aspnet-list] issues with intermittent apache hangups In-Reply-To: <1301370284.11603.0.camel@localhost> References: <1301064721943-3405577.post@n4.nabble.com> <1301370284.11603.0.camel@localhost> Message-ID: Dan reports this happens both in 2.8.1 and in 2.10.1 I checked only in 2.8.1 On Tue, Mar 29, 2011 at 6:44 AM, Gonzalo Paniagua Javier < gonzalo.mono at gmail.com> wrote: > On Tue, 2011-03-29 at 00:44 +0300, Sergey Lobko-Lobanovsky wrote: > > Looks like someone will have to look into > > System.Web.Caching.CacheItemPriorityQueue > > What version of Mono are you using? I believe Marek fixed this before > 2.10.1 went out. If not, it should be fixed in the upcoming 2.10.2. > > -Gonzalo > > > _______________________________________________ > Mono-aspnet-list mailing list > Mono-aspnet-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-aspnet-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110329/b6018764/attachment.html From parnham at gmail.com Tue Mar 29 06:42:59 2011 From: parnham at gmail.com (Dan) Date: Tue, 29 Mar 2011 03:42:59 -0700 (PDT) Subject: [Mono-aspnet-list] issues with intermittent apache hangups In-Reply-To: <1301370284.11603.0.camel@localhost> References: <1301064721943-3405577.post@n4.nabble.com> <1301370284.11603.0.camel@localhost> Message-ID: <1301395379284-3414410.post@n4.nabble.com> Do you happen to know which commit potentially fixes this issue, so that we could take a look. Thanks, Dan Gonzalo Paniagua Javier-3 wrote: > > On Tue, 2011-03-29 at 00:44 +0300, Sergey Lobko-Lobanovsky wrote: > > Looks like someone will have to look into > > System.Web.Caching.CacheItemPriorityQueue > > What version of Mono are you using? I believe Marek fixed this before > 2.10.1 went out. If not, it should be fixed in the upcoming 2.10.2. > > -Gonzalo > -- View this message in context: http://mono.1490590.n4.nabble.com/issues-with-intermittent-apache-hangups-tp3264509p3414410.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From francisco at marzoa.com Tue Mar 29 07:16:43 2011 From: francisco at marzoa.com (Francisco M. Marzoa Alonso) Date: Tue, 29 Mar 2011 13:16:43 +0200 Subject: [Mono-aspnet-list] Problems configuring apache2 + mono In-Reply-To: <4D919EDB.2090206@marzoa.com> References: <4D919EDB.2090206@marzoa.com> Message-ID: <4D91BF9B.2060701@marzoa.com> More information: I get the following message on /var/log/apache2/error.log "Failed to connect to mod-mono-server after several attempts to spawn the process." How may I debug this deeper? El 29/03/11 10:56, Francisco M. Marzoa Alonso escribi?: > Hello, > > I'm having problems configuring apache2 and mono for using ASP.net on > Ubuntu. > > I've installed everything needed, and the module seems to be working, > but I've not been able to run a simple helloworld on a virtual host. > > I think the problem is on the webapp configuration file. > > My virtualhost is defined as follows: > > > ServerAdmin webmaster at localhost > ServerName fake.domain.com > DocumentRoot /var/www/fake.domain.com/web/ > ErrorLog /var/www/fake.domain.com/logs/error.log > LogLevel warn > CustomLog /var/www/fake.domain.com/logs/access.log combined > > Options Indexes FollowSymLinks MultiViews > AllowOverride All > Order allow,deny > Allow from all > SetHandler mono > DirectoryIndex index.aspx index.html > > > > I've created all needed directories and server itself is working fine if > I do not use mono. I mean that if I move my browser to > http://fake.domain.com/ it shows me the contents of > /var/www/fake.domain.com/web directory without problems. > > But when I create a mono aplication on /etc/mono-server2/ it does not > run as expected. I've created one file called fake.domain.com.webapp > with the following contents: > > > > FakeDomain > / > /var/www/fake.domain.com/web > fake.domamin.com > > > > But if I try to open http://devel.sharpbear.com I got a 503 Service > Temporarily Unavailable after a while waiting for page to load. > > "The server is temporarily unable to service your request due to > maintenance downtime or capacity problems. Please try again later." > > Any hints? > > Thanks a lot in advance, > _______________________________________________ > Mono-aspnet-list mailing list > Mono-aspnet-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-aspnet-list From daniel.summers.2415 at gmail.com Tue Mar 29 09:19:04 2011 From: daniel.summers.2415 at gmail.com (Daniel J. Summers) Date: Tue, 29 Mar 2011 13:19:04 +0000 Subject: [Mono-aspnet-list] Problems configuring apache2 + mono In-Reply-To: <4D91BF9B.2060701@marzoa.com> References: <4D919EDB.2090206@marzoa.com> <4D91BF9B.2060701@marzoa.com> Message-ID: On Tue, Mar 29, 2011 at 11:16 AM, Francisco M. Marzoa Alonso < francisco at marzoa.com> wrote: > I get the following message on /var/log/apache2/error.log > > "Failed to connect to mod-mono-server after several attempts to spawn > the process." > > > > But when I create a mono aplication on /etc/mono-server2/ it does not > > run as expected. I've created one file called fake.domain.com.webapp > > with the following contents: > I have had little success trying to get the .webapp files working. (Maybe someone can chime in and enlighten me too!) As a shot in the dark, try putting "MonoSetServerAlias default" in your location config. However, I have gotten it to work using two different processes. The first results in a mono server process for each domain. The upside to this is that each domain is free to serve pages from different server instances; the downside is that you use a good bit more memory. To do this, I use a virtual host config similar to this one: ServerName djs-consulting.johnson DocumentRoot /var/www/dev/djsconsulting # Mono config MonoDebug djs false MonoSetEnv djs MONO_IOMAP=all MonoServerPath djs /usr/bin/mod-mono-server2 MonoApplications djs "djs-consulting.johnson:/:/var/www/dev/djsconsulting" MonoSetServerAlias djs SetHandler mono The second parameter to the Mono statements give it a server alias; then, in the Directory directive, I tell it to use that server alias. The other way (and the way I'm running on my production web server) uses just one Mono server instance to serve many domains. Since Apache controls the spawning of it, I really don't know how I'd "restart" just one domain. To do this, I have the following in /etc/mono-server2/mono_server2_hosts.conf. MonoUnixSocket default /tmp/.mod_mono_server4 MonoServerPath default "/opt/mono-2.10/bin/mod-mono-server4" AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx MonoSetEnv default MONO_IOMAP=all;PATH=/opt/mono-2.10/bin:$PATH;LD_LIBRARY_PATH=/opt/mono-2.10/lib:$LD_LIBRARY_PATH MonoApplications default "vpr.johnson:/:/var/www/dev/vpr,techblog.johnson:/:/var/www/dev/techblog" (A side note - I'm running a compiled-by-me version of Mono 2.10; if you're using 2.8 or earlier, the MonoUnixSocket and MonoServerPath should point to *-server2, and you won't need the MonoSetEnv directive past the word "all".) Then, as an example, the vpr.johnson virtual host file looks like this: ServerName vpr.johnson DocumentRoot /var/www/dev/vpr SetHandler mono SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript ("johnson" is my development machine, and I've set aliases in /etc/hosts that point things like vpr.johnson to 127.0.0.1 - it keeps the virtual structure the way it runs in production.) Like I said above, this second way is the configuration I'm using on the server that is actually serving the content, and it's working great. I would like to see if I could make the .webapp version work, but for now, I've found that the latter config meets my needs, and it's the same complexity as the FastCGI config I used to run, so at least it's no more complex. :) -- *Daniel J. Summers* *Owner, DJS Consulting* E-mail ? Website ? Support ? Tech Blog GEEKCODE 3.12 GCS/IT d s-:+ a C++ P--- L++ E--- W++ N++ o? K- w !O M-- V PS+ PE++ Y? PGP- t+ 5? X+ R* tv b+ DI++ D+ G- e<++ h---- r+++ y++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110329/28664ca4/attachment-0001.html From francisco at marzoa.com Tue Mar 29 09:50:05 2011 From: francisco at marzoa.com (Francisco M. Marzoa Alonso) Date: Tue, 29 Mar 2011 15:50:05 +0200 Subject: [Mono-aspnet-list] Problems configuring apache2 + mono In-Reply-To: <4D91BF9B.2060701@marzoa.com> References: <4D919EDB.2090206@marzoa.com> <4D91BF9B.2060701@marzoa.com> Message-ID: <4D91E38D.5040907@marzoa.com> News on this: I've tried changing mono configuration file to: AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx DirectoryIndex index.aspx MonoAutoApplication enabled MonoServerPath "/usr/bin/mod-mono-server2" And removing my webapp file, but now when I try to open the helloworld.aspx file, it sent its contents to the browser, instead of executing it. I do not understand why. As you see, I put .aspx extension within mono configuration file, and I put "SetHandler mono" on the virtual host configuration also. ? El 29/03/11 13:16, Francisco M. Marzoa Alonso escribi?: > More information: > > I get the following message on /var/log/apache2/error.log > > "Failed to connect to mod-mono-server after several attempts to spawn > the process." > > How may I debug this deeper? > > > > El 29/03/11 10:56, Francisco M. Marzoa Alonso escribi?: >> Hello, >> >> I'm having problems configuring apache2 and mono for using ASP.net on >> Ubuntu. >> >> I've installed everything needed, and the module seems to be working, >> but I've not been able to run a simple helloworld on a virtual host. >> >> I think the problem is on the webapp configuration file. >> >> My virtualhost is defined as follows: >> >> >> ServerAdmin webmaster at localhost >> ServerName fake.domain.com >> DocumentRoot /var/www/fake.domain.com/web/ >> ErrorLog /var/www/fake.domain.com/logs/error.log >> LogLevel warn >> CustomLog /var/www/fake.domain.com/logs/access.log combined >> >> Options Indexes FollowSymLinks MultiViews >> AllowOverride All >> Order allow,deny >> Allow from all >> SetHandler mono >> DirectoryIndex index.aspx index.html >> >> >> >> I've created all needed directories and server itself is working fine if >> I do not use mono. I mean that if I move my browser to >> http://fake.domain.com/ it shows me the contents of >> /var/www/fake.domain.com/web directory without problems. >> >> But when I create a mono aplication on /etc/mono-server2/ it does not >> run as expected. I've created one file called fake.domain.com.webapp >> with the following contents: >> >> >> >> FakeDomain >> / >> /var/www/fake.domain.com/web >> fake.domamin.com >> >> >> >> But if I try to open http://devel.sharpbear.com I got a 503 Service >> Temporarily Unavailable after a while waiting for page to load. >> >> "The server is temporarily unable to service your request due to >> maintenance downtime or capacity problems. Please try again later." >> >> Any hints? >> >> Thanks a lot in advance, >> _______________________________________________ >> Mono-aspnet-list mailing list >> Mono-aspnet-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list > > _______________________________________________ > Mono-aspnet-list mailing list > Mono-aspnet-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-aspnet-list From gonzalo.mono at gmail.com Tue Mar 29 11:32:11 2011 From: gonzalo.mono at gmail.com (Gonzalo Paniagua Javier) Date: Tue, 29 Mar 2011 11:32:11 -0400 Subject: [Mono-aspnet-list] issues with intermittent apache hangups In-Reply-To: <1301395379284-3414410.post@n4.nabble.com> References: <1301064721943-3405577.post@n4.nabble.com> <1301370284.11603.0.camel@localhost> <1301395379284-3414410.post@n4.nabble.com> Message-ID: <1301412731.11603.5.camel@localhost> On Tue, 2011-03-29 at 03:42 -0700, Dan wrote: > Do you happen to know which commit potentially fixes this issue, so that we > could take a look. I'll let Marek fill in the details. -Gonzalo From francisco at marzoa.com Tue Mar 29 11:56:16 2011 From: francisco at marzoa.com (Francisco M. Marzoa Alonso) Date: Tue, 29 Mar 2011 17:56:16 +0200 Subject: [Mono-aspnet-list] [SOLVED] Re: Problems configuring apache2 + mono In-Reply-To: <4D91E38D.5040907@marzoa.com> References: <4D919EDB.2090206@marzoa.com> <4D91BF9B.2060701@marzoa.com> <4D91E38D.5040907@marzoa.com> Message-ID: <4D920120.9090608@marzoa.com> Hello, I'm not still sure what's wrong before, but the fact is that I've solved my problems just generating a new virtual host configuration file with this nice online application from mono guys: http://go-mono.com/config-mod-mono/ My hello world is working fine now. :-) Thanks, From grendel at twistedcode.net Tue Mar 29 15:17:44 2011 From: grendel at twistedcode.net (Marek Habersack) Date: Tue, 29 Mar 2011 21:17:44 +0200 Subject: [Mono-aspnet-list] issues with intermittent apache hangups In-Reply-To: <1301412731.11603.5.camel@localhost> References: <1301064721943-3405577.post@n4.nabble.com> <1301370284.11603.0.camel@localhost> <1301395379284-3414410.post@n4.nabble.com> <1301412731.11603.5.camel@localhost> Message-ID: <20110329211744.010dbb32@twistedcode.net> On Tue, 29 Mar 2011 11:32:11 -0400 Gonzalo Paniagua Javier wrote: > On Tue, 2011-03-29 at 03:42 -0700, Dan wrote: > > Do you happen to know which commit potentially fixes this issue, so that we > > could take a look. > > I'll let Marek fill in the details. The CacheItemPriorityQueue in 2.10.1 is the same as in master. Frankly, looking at the code I can't see how it would behave like that (unless the post-decrement operator behaves as pre-decrement one, that is...). Certainly, the bug is happening, but alas I would need to see some test case to be able to fix the issue. So, if anyone experiencing it can come up with one, please file a bug on bugzilla. marek From test051102 at hotmail.com Tue Mar 29 15:41:53 2011 From: test051102 at hotmail.com (H .) Date: Tue, 29 Mar 2011 19:41:53 +0000 Subject: [Mono-aspnet-list] Bug in System.Web.dll Message-ID: I have reported Bug #579837 in Mono's ASP.NET implementation more than a year ago. The basic problem is, that it is currently impossible to correctly set/ write authorization rules programmatically. The bug has been fixed partly a few month ago. I have reported Bug #658184 at 2010-12-08. All rules that are added to an application's web.config are converted to allow rules. It is impossible to add a deny rule. Both bug reports are containing sample ASP.NET projects which demonstrate the problem. In the meantime I have started to debug the Mono class library and found a simple solution. The problem is, that the current implementation simply ignores the Action attribute and leaves it at it's default value of Allow. The problem can be fixed by adding a single line of code. I hope that somebody of the core developers will have a look into the issue and fix the problem in github. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110329/7fa86957/attachment.html From parnham at gmail.com Tue Mar 29 19:45:32 2011 From: parnham at gmail.com (Dan) Date: Tue, 29 Mar 2011 16:45:32 -0700 (PDT) Subject: [Mono-aspnet-list] issues with intermittent apache hangups In-Reply-To: <20110329211744.010dbb32@twistedcode.net> References: <1301064721943-3405577.post@n4.nabble.com> <1301370284.11603.0.camel@localhost> <1301395379284-3414410.post@n4.nabble.com> <1301412731.11603.5.camel@localhost> <20110329211744.010dbb32@twistedcode.net> Message-ID: <1301442332714-3416586.post@n4.nabble.com> We are in the process of trying to build a test case that will reliably trigger the bug! But considering that the system we're developing can sometimes run continuously for days without this issue occurring, finding the exact cause is likely to be very difficult. Marek Habersack wrote: > > The CacheItemPriorityQueue in 2.10.1 is the same as in master. Frankly, > looking at the code I can't > see how it would behave like that (unless the post-decrement operator > behaves as pre-decrement one, > that is...). Certainly, the bug is happening, but alas I would need to see > some test case to be > able to fix the issue. So, if anyone experiencing it can come up with one, > please file a bug on > bugzilla. > -- View this message in context: http://mono.1490590.n4.nabble.com/issues-with-intermittent-apache-hangups-tp3264509p3416586.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From daniel.summers.2415 at gmail.com Tue Mar 29 20:38:24 2011 From: daniel.summers.2415 at gmail.com (Daniel J. Summers) Date: Wed, 30 Mar 2011 00:38:24 +0000 Subject: [Mono-aspnet-list] MVC 3 App Cannot Find Template In-Reply-To: References: Message-ID: On Mon, Mar 14, 2011 at 5:33 AM, Daniel J. Summers < daniel.summers.2415 at gmail.com> wrote: > But, when it tries to render the home page, the following error occurs: > > System.InvalidOperationException: The view 'Index' or its master was not found or no view engine supports the searched locations. The following locations were searched: > ~/Views/Home/Index.aspx > ~/Views/Home/Index.ascx > ~/Views/Shared/Index.aspx > ~/Views/Shared/Index.ascx > ~/Views/Home/Index.cshtml > ~/Views/Home/Index.vbhtml > ~/Views/Shared/Index.cshtml > ~/Views/Shared/Index.vbhtml > at System.Web.Mvc.ViewResult.FindView [snip] > > I got an app to deploy and work with this. A big thanks to Carl Hoerberg, who exchanged e-mails with me offline while we determined the solution, and Scott Hanselman, who wrote a blog post at http://www.hanselman.com/blog/BINDeployingASPNETMVC3WithRazorToAWindowsServerWithoutMVCInstalled.aspx about "bin deploying" MVC 3. Here's how I got it to work: - I added Microsoft.Web.Infrastructure.dll, System.Web.Razor.dll, and System.Web.WebPages.Razor.dll as local references to my application, and set "CopyLocal = true" on each of them within the VS project. - I added "CopyLocal = true" on System.Web.Helpers, System.Web.Mvc, and System.Web.WebPages within the VS project. It appeared to be the missing Razor DLLs that were causing the "unable to find view" problem; interestingly, this is working without precompiling the views. I'll probably switch the views to being precompiled anyway, just to save that overhead every time the app is started; when this happens, I'm guessing that I'll probably need to put Carl's engine-tweaking code in the app. There is one oddity that remains; the first time I hit the app, I get an error that the system "does not have access to the key requested". In searching for that, I saw something that said that the web server needed write access to $HOME/.mono. As the web server runs as www-data, I created a .mono directory in its home, and chown'd it to www-data:www-data. However, when I redeploy the app or bounce Apache, the first hit to the site still gives me the error. It's coming out of code in Microsoft.Web.Infrastructure - it's not a huge deal, but if anyone has an idea about that, I'm all ears. Thanks again to Carl for helping me with all this. I'm so excited to have MVC 3 running on my Linux box! I'm wishing that all the programming languages I have to use on a daily basis had Razor - it's that quick. :) -- *Daniel J. Summers* *Owner, DJS Consulting* E-mail ? Website ? Support ? Tech Blog GEEKCODE 3.12 GCS/IT d s-:+ a C++ P--- L++ E--- W++ N++ o? K- w !O M-- V PS+ PE++ Y? PGP- t+ 5? X+ R* tv b+ DI++ D+ G- e<++ h---- r+++ y++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110330/8817da07/attachment-0001.html From parnham at gmail.com Wed Mar 30 07:34:21 2011 From: parnham at gmail.com (Dan) Date: Wed, 30 Mar 2011 04:34:21 -0700 (PDT) Subject: [Mono-aspnet-list] issues with intermittent apache hangups In-Reply-To: <1301442332714-3416586.post@n4.nabble.com> References: <1301064721943-3405577.post@n4.nabble.com> <1301370284.11603.0.camel@localhost> <1301395379284-3414410.post@n4.nabble.com> <1301412731.11603.5.camel@localhost> <20110329211744.010dbb32@twistedcode.net> <1301442332714-3416586.post@n4.nabble.com> Message-ID: <1301484861916-3417791.post@n4.nabble.com> @Sergey In trying to work out what may be triggering the issue, it would be helpful to know what technologies you used within your web application to see if there is any correlation with ours. We are using: Fluent nHibernate (Fluent 1.1 with nHibernate 3.0) along with the MySql.Data provider System.Web.Mvc (v2.0) LINQ Regards, Dan Dan wrote: > > We are in the process of trying to build a test case that will reliably > trigger the bug! But considering that the system we're developing can > sometimes run continuously for days without this issue occurring, finding > the exact cause is likely to be very difficult. > > > > Marek Habersack wrote: >> >> The CacheItemPriorityQueue in 2.10.1 is the same as in master. Frankly, >> looking at the code I can't >> see how it would behave like that (unless the post-decrement operator >> behaves as pre-decrement one, >> that is...). Certainly, the bug is happening, but alas I would need to >> see some test case to be >> able to fix the issue. So, if anyone experiencing it can come up with >> one, please file a bug on >> bugzilla. >> > -- View this message in context: http://mono.1490590.n4.nabble.com/issues-with-intermittent-apache-hangups-tp3264509p3417791.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. From francisco at marzoa.com Wed Mar 30 08:11:36 2011 From: francisco at marzoa.com (Francisco M. Marzoa Alonso) Date: Wed, 30 Mar 2011 14:11:36 +0200 Subject: [Mono-aspnet-list] Where to start with Mono ASP.NET? Message-ID: <4D931DF8.1060202@marzoa.com> Hello there, I'm just starting with Mono ASP.NET. To be honest, I'm just starting with ASP.NET. I've deep knowledgement of web server based applications using LAMP (Linux + Apache + MySQL + PHP), even with some Frameworks/CMS like Drupal and/or Joomla, but I'm just starting with ASP.NET. Moreover, I never used old-style-ASP neither before. On the other hand, I've knowledge of C# and Windows Forms, and a bit of GTK#, for making desktop applications. Now what I want is to start learning on ASP.NET, that runs mainly on Linux over Apache, and to develop and debug the code using Monodevelop. Having this in account, is there any good book or tutorial for starters like me??? Thanks a lot in advance, From kobruleht2 at hot.ee Wed Mar 30 13:45:39 2011 From: kobruleht2 at hot.ee (Andrus Moor) Date: Wed, 30 Mar 2011 20:45:39 +0300 Subject: [Mono-aspnet-list] The classes in the module cannot be loaded. Message-ID: Typing http://mysite.com/MYService.asmx returns exception The classes in the module cannot be loaded with stack trace below. How to fix or debug this ? Andrus. [System.Reflection.ReflectionTypeLoadException]: The classes in the module cannot be loaded. at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool) at System.Reflection.Assembly.GetTypes () [0x00000] at System.Web.UI.TemplateParser.FindNamespaceInAssembly (System.Reflection.Assembly asm, System.String namesp) [0x00000] at System.Web.UI.TemplateParser.AddAssemblyForNamespace (System.String namesp) [0x00000] at System.Web.UI.TemplateParser.AddImport (System.String namesp) [0x00000] at System.Web.UI.TemplateParser.AddDirective (System.String directive, System.Collections.Hashtable atts) [0x00000] at System.Web.UI.TemplateControlParser.AddDirective (System.String directive, System.Collections.Hashtable atts) [0x00000] at System.Web.UI.PageParser.AddDirective (System.String directive, System.Collections.Hashtable atts) [0x00000] at System.Web.Compilation.AspGenerator.TagParsed (ILocation location, TagType tagtype, System.String tagid, System.Web.Compilation.TagAttributes attributes) [0x00000] at System.Web.Compilation.AspParser.OnTagParsed (TagType tagtype, System.String id, System.Web.Compilation.TagAttributes attributes) [0x00000] at System.Web.Compilation.AspParser.Parse () [0x00000] at System.Web.Compilation.AspGenerator.Parse (System.IO.TextReader reader, System.String filename, Boolean doInitParser) [0x00000] at System.Web.Compilation.GenericBuildProvider`1[TParser].Parse () [0x00000] at System.Web.Compilation.GenericBuildProvider`1[TParser].get_CodeCompilerType () [0x00000] at System.Web.Compilation.BuildManager.GetCodeDomProviderType (System.Web.Compilation.BuildProvider provider) [0x00000] at System.Web.Compilation.BuildManager+BuildItem..ctor (System.Web.Compilation.BuildProvider provider) [0x00000] at System.Web.Compilation.BuildManager.LoadBuildProviders (System.Web.VirtualPath virtualPath, System.String virtualDir, System.Collections.Generic.Dictionary`2 vpCache, System.Web.Compilation.BuildKind& kind, System.String& assemblyBaseName) [0x00000] at System.Web.Compilation.BuildManager.BuildAssembly (System.Web.VirtualPath virtualPath) [0x00000] at System.Web.Compilation.BuildManager.GetCompiledType (System.String virtualPath) [0x00000] at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath (System.String virtualPath, System.Type requiredBaseType) [0x00000] at System.Web.Services.Protocols.SoapDocumentationHandler..ctor (System.Type type, System.Web.HttpContext context) [0x00000] at System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler (System.Web.HttpContext context, System.String verb, System.String url, System.String filePath) [0x00000] at System.Web.Script.Services.ScriptHandlerFactory.GetHandler (System.Web.HttpContext context, System.String requestType, System.String url, System.String pathTranslated) [0x00000] at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url, Boolean ignoreContextHandler) [0x00000] at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url) [0x00000] at System.Web.HttpApplication+c__Iterator2.MoveNext () [0x00000] From daniel.summers.2415 at gmail.com Wed Mar 30 14:40:47 2011 From: daniel.summers.2415 at gmail.com (Daniel J. Summers) Date: Wed, 30 Mar 2011 18:40:47 +0000 Subject: [Mono-aspnet-list] Where to start with Mono ASP.NET? In-Reply-To: <4D931DF8.1060202@marzoa.com> References: <4D931DF8.1060202@marzoa.com> Message-ID: On Wed, Mar 30, 2011 at 12:11 PM, Francisco M. Marzoa Alonso < francisco at marzoa.com> wrote: > Having this in account, is there any good book or tutorial for starters > like me??? > Check out http://www.asp.net/get-started - you should be able to follow their tutorials using MonoDevelop instead of Visual Studio. (Re: the web forms vs. MVC decision - I'm partial to MVC myself.) Also, SQLite is a nice replacement for SQL Server Express, that some of those tutorials assume you have. (The .NET provider seems to be in flux, but the SourceForge download of 1.0.66 has worked well for me.) A short disclaimer: I haven't been through all the tutorials there. I looked at the material at http://www.asp.net/mvc and used that to develop a small MVC app, learning how it compared to the frameworks I'd used before. However, I did find the material there useful. You can also check out Scott Hanselman's blog at http://www.hanselman.com/blog/ and Scott Guthrie's blog at http://weblogs.asp.net/scottgu/ - both these guys are developers on the .NET project at Microsoft. -- *Daniel J. Summers* *Owner, DJS Consulting* E-mail ? Website ? Support ? Tech Blog GEEKCODE 3.12 GCS/IT d s-:+ a C++ P--- L++ E--- W++ N++ o? K- w !O M-- V PS+ PE++ Y? PGP- t+ 5? X+ R* tv b+ DI++ D+ G- e<++ h---- r+++ y++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110330/76ee73ac/attachment.html From gonzalo.mono at gmail.com Wed Mar 30 15:35:15 2011 From: gonzalo.mono at gmail.com (Gonzalo Paniagua Javier) Date: Wed, 30 Mar 2011 15:35:15 -0400 Subject: [Mono-aspnet-list] The classes in the module cannot be loaded. In-Reply-To: References: Message-ID: <1301513715.11603.8.camel@localhost> On Wed, 2011-03-30 at 20:45 +0300, Andrus Moor wrote: > Typing http://mysite.com/MYService.asmx returns exception > > The classes in the module cannot be loaded with stack trace below. > > How to fix or debug this ? Verify that the .dll files in your 'bin' directory and verify that they are valid .NET assemblies. I think one way of doing it is by running: "MONO_PATH=. monodis DLLNAME" in the 'bin' directory. -Gonzalo