Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-10-27 Thread Markus Törnqvist
On Fri, Sep 25, 2009 at 12:52:09PM -0600, Jeff Hardy wrote: Hi Vernon, I presume you're talking django-mssql (http://code.google.com/p/django-mssql/)? I always wondered why it had its own database layer. Did you see there's some discussion now the issues of the project? Not particularly much,

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-10-27 Thread Jeff Hardy
2009/10/27 Markus Törnqvist m...@nysv.org: I tried to find an sqlite library for IronPython and could not. * whistles nonchalantly ...* http://bitbucket.org/jdhardy/adonet-dbapi/ The sqlite module is the most complete; the others are basically stubs. I've tested it with Django (that was the

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-10-03 Thread Markus Törnqvist
On Thu, Oct 01, 2009 at 01:35:21PM +0200, Dody Gunawinata wrote: I spent only two hours before giving up and got the usual errors. I'll try it again on the weekend (it's Friday/Saturday here in Egypt) so I can fortify myself with Oktoberfest amount of beer - see if it helps. I'll also try to look

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-10-01 Thread Dody Gunawinata
I spent only two hours before giving up and got the usual errors. I'll try it again on the weekend (it's Friday/Saturday here in Egypt) so I can fortify myself with Oktoberfest amount of beer - see if it helps. 2009/9/30 Markus Törnqvist m...@nysv.org On Tue, Sep 29, 2009 at 05:08:07PM +0200,

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-10-01 Thread Markus T�rnqvist
On Thu, Oct 01, 2009 at 01:35:21PM +0200, Dody Gunawinata wrote: I spent only two hours before giving up and got the usual errors. I'll try it again on the weekend (it's Friday/Saturday here in Egypt) so I can fortify myself with Oktoberfest amount of beer - see if it helps. Do you mean errors

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-30 Thread Markus T�rnqvist
On Tue, Sep 29, 2009 at 05:08:07PM +0200, Dody Gunawinata wrote: Cool. Thanks. I'll try this tonight and see what kind of mind bombs I will encounter :) Did you get any interesting results?-) Thanks! -- mjt ___ Users mailing list

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-29 Thread Markus T�rnqvist
On Mon, Sep 28, 2009 at 10:58:19PM +0300, Markus T�rnqvist wrote: On Mon, Sep 28, 2009 at 09:13:40AM -0600, Jeff Hardy wrote: But it gives me a 404, from IIS (not Django) so I'm guessing my Web.config is bad. !-- scriptMappings scriptMapping scriptName=/ physicalPath=C:\Program

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-29 Thread Dody Gunawinata
If you are using IIS 6.0, try to use wildcard mapping to asp.net http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/5c5ae5e0-f4f9-44b0-a743-f4c3a5ff68ec.mspx?mfr=true

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-29 Thread Markus T�rnqvist
On Tue, Sep 29, 2009 at 01:19:07PM +0200, Dody Gunawinata wrote: If you are using IIS 6.0, try to use wildcard mapping to asp.net http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/5c5ae5e0-f4f9-44b0-a743-f4c3a5ff68ec.mspx?mfr=true

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-29 Thread Dody Gunawinata
Can you show me your uri that generate this 404 error? 2009/9/29 Markus Törnqvist m...@nysv.org On Tue, Sep 29, 2009 at 01:19:07PM +0200, Dody Gunawinata wrote: If you are using IIS 6.0, try to use wildcard mapping to asp.net

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-29 Thread Markus T�rnqvist
On Tue, Sep 29, 2009 at 03:56:54PM +0200, Dody Gunawinata wrote: Can you show me your uri that generate this 404 error? I navigate to http://localhost/ Which redirects to http://localhost/set_test_cookie/ This is all in my application, it's expected to test for cookies. wildcard

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-29 Thread Dody Gunawinata
This looks like nwsgi fails to bind to wildcard request although weirdly it does respond to the first root request. Isyour hello.wsgi a Django application? 2009/9/29 Markus Törnqvist m...@nysv.org On Tue, Sep 29, 2009 at 03:56:54PM +0200, Dody Gunawinata wrote: Can you show me your uri that

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-29 Thread Markus T�rnqvist
2009/9/29 Markus T�rnqvist m...@nysv.org I navigate to http://localhost/ Which redirects to http://localhost/set_test_cookie/ This is all in my application, it's expected to test for cookies. wildcard physicalPath=C:\Program Files\IronPython 2.6\Lib\site-packages\mysite\hello.wsgi

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-29 Thread Dody Gunawinata
Cool. Thanks. I'll try this tonight and see what kind of mind bombs I will encounter :) 2009/9/29 Markus Törnqvist m...@nysv.org 2009/9/29 Markus T�rnqvist m...@nysv.org I navigate to http://localhost/ Which redirects to http://localhost/set_test_cookie/ This is all in my application,

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-28 Thread Markus T�rnqvist
On Sun, Sep 27, 2009 at 11:34:38AM -0600, Jeff Hardy wrote: On Sat, Sep 26, 2009 at 2:34 PM, Markus Törnqvist m...@nysv.org wrote:  Could not load type 'Microsoft.Scripting.Runtime.CodeContext' from assembly  'Microsoft.Scripting, Version=1.0.0.0, Culture=neutral,  

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-28 Thread Jeff Hardy
On Mon, Sep 28, 2009 at 2:40 AM, Markus Törnqvist m...@nysv.org wrote: Should this be taken as a sign that NWSGI is non-trivial to get running with 2.6RC1 and a lot of the DLL-space errors could stem from forcibly forcing stuff to work that just can't work together? I looked at it yesterday,

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-28 Thread Markus T�rnqvist
On Mon, Sep 28, 2009 at 08:33:13AM -0600, Jeff Hardy wrote: On Mon, Sep 28, 2009 at 2:40 AM, Markus Törnqvist m...@nysv.org wrote: Should this be taken as a sign that NWSGI is non-trivial to get running with 2.6RC1 and a lot of the DLL-space errors could stem from forcibly forcing stuff to work

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-28 Thread Jeff Hardy
On Mon, Sep 28, 2009 at 8:45 AM, Markus Törnqvist m...@nysv.org wrote: Just started thinking if it were possible for me to do python web on IIS/NWSGI with anything else than Django, it might even be possible, but what a pain... Oh, it's a pain all right. That's why it's called 'being on the

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-28 Thread Dino Viehland
I looked at it yesterday, and 'impossible' would be a better way to describe it. Some types have moved between assemblies (from Microsoft.Scripting to Microsoft.Dynamic) and so simply changing the assembly bindings won't work. There were also some API changes that I need to fix before NWSGI

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-28 Thread Markus T�rnqvist
On Mon, Sep 28, 2009 at 09:13:40AM -0600, Jeff Hardy wrote: On Mon, Sep 28, 2009 at 8:45 AM, Markus Törnqvist m...@nysv.org wrote: Just started thinking if it were possible for me to do python web on IIS/NWSGI with anything else than Django, it might even be possible, but what a pain... Oh,

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-27 Thread Jeff Hardy
On Sat, Sep 26, 2009 at 2:34 PM, Markus Törnqvist m...@nysv.org wrote: On Sat, Sep 26, 2009 at 09:55:43AM -0600, Jeff Hardy wrote: First off, there's so much randomality going on here it's impossible, am I missing out on something everyone knows but me?  Could not load type

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-26 Thread Markus T�rnqvist
On Fri, Sep 25, 2009 at 02:13:14PM -0600, Jeff Hardy wrote: On Fri, Sep 25, 2009 at 1:01 PM, Markus Törnqvist m...@nysv.org wrote: I haven't debugged this too much, yet, but I'm not sure what to make of it. I certainly never had a settings.SESSION_ENGINE, and when I run CPython and manage.py

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-26 Thread Jeff Hardy
On Sat, Sep 26, 2009 at 1:05 AM, Markus Törnqvist m...@nysv.org wrote: On Fri, Sep 25, 2009 at 02:13:14PM -0600, Jeff Hardy wrote: You can add SESSION_ENGINE to your config file to change which backend it uses. It's in the django docs, somewhere. Yeah I figured that part out ;) What I didn't

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-26 Thread Markus T�rnqvist
On Sat, Sep 26, 2009 at 09:55:43AM -0600, Jeff Hardy wrote: First off, there's so much randomality going on here it's impossible, am I missing out on something everyone knows but me? Could not load type 'Microsoft.Scripting.Runtime.CodeContext' from assembly 'Microsoft.Scripting,

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-25 Thread Markus T�rnqvist
On Tue, Sep 22, 2009 at 09:56:58PM +0300, Markus T�rnqvist wrote: On Tue, Sep 22, 2009 at 09:43:50AM -0600, Jeff Hardy wrote: I'd like to help more, but I'm a bit overwhelmed at the moment - sorry. [...] Anyway, I'll tell you which way it goes, don't worry about that :D I upgraded to IronPython

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-25 Thread Dody Gunawinata
Yup. NWSGI beta 2 was built against older version. Either rebuild or use assembly rebinding http://aspadvice.com/blogs/ssmith/archive/2006/11/15/AssemblyBinding-in-Web-Config-and-XMLNS.aspx On Fri, Sep 25, 2009 at 6:14 PM, Markus Törnqvist m...@nysv.org wrote: On Tue, Sep 22, 2009 at 09:56:58PM

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-25 Thread Markus T�rnqvist
On Fri, Sep 25, 2009 at 06:22:24PM +0200, Dody Gunawinata wrote: Yup. NWSGI beta 2 was built against older version. Either rebuild or use assembly rebinding http://aspadvice.com/blogs/ssmith/archive/2006/11/15/AssemblyBinding-in-Web-Config-and-XMLNS.aspx Thanks, man, for the quick reply :D

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-25 Thread Jeff Hardy
Hi Vernon, I presume you're talking django-mssql (http://code.google.com/p/django-mssql/)? I always wondered why it had its own database layer. I don't think adodbapi is the best place to have django (or any other ORM) specific stuff. django-mssql shoul talk to your module, and then it should (in

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-25 Thread Jeff Hardy
On Fri, Sep 25, 2009 at 12:22 PM, Markus Törnqvist m...@nysv.org wrote: I configured for 1.0.0.0 as Properties of Microsoft.Scripting.DLL says and 2.6.10920.0 for IronPython.dll. AND IT WORKS! :) Good to know! (I haven't had time to respin NWSGI for RC1 yet - hopefully this weekend). Once

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-25 Thread Markus T�rnqvist
On Fri, Sep 25, 2009 at 12:35:08PM -0600, Jeff Hardy wrote: On Fri, Sep 25, 2009 at 12:22 PM, Markus Törnqvist m...@nysv.org wrote: I configured for 1.0.0.0 as Properties of Microsoft.Scripting.DLL says and 2.6.10920.0 for IronPython.dll. AND IT WORKS! :) Good to know! (I haven't had time to

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-25 Thread Jeff Hardy
On Fri, Sep 25, 2009 at 1:01 PM, Markus Törnqvist m...@nysv.org wrote: I haven't debugged this too much, yet, but I'm not sure what to make of it. I certainly never had a settings.SESSION_ENGINE, and when I run CPython and manage.py runserver elsewhere with tracing in the sources, I see it

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-22 Thread Markus T�rnqvist
On Tue, Sep 22, 2009 at 09:43:50AM -0600, Jeff Hardy wrote: There are some issues with Django still; I don't think they're impossible to solve. I wouldn't try 0.96; it's too old to be worth bothering with, and it doesn't work either. I'd like to help more, but I'm a bit overwhelmed at the moment

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-22 Thread Vernon Cole
Jeff: I looked at this project a while back, but have not done much with it yet. One twist I see is that the ms-sql support for django is based on a copy of my adodbapi package which was forked before IronPython support was added. I wonder whether my next effort should be to include some

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-20 Thread Jeff Hardy
On Sat, Sep 19, 2009 at 12:43 PM, Markus Törnqvist m...@nysv.org wrote: On Sat, Sep 19, 2009 at 10:44:10AM -0600, Jeff Hardy wrote: I also had to add the Microsoft.Scripting.ExtensionAttribute.dll, Microsoft.Dynamic.dll and Microsoft.Scripting.Debugging.dll to C:\...myapp\bin\ (Note to

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-20 Thread Markus T�rnqvist
On Sun, Sep 20, 2009 at 09:46:24AM -0600, Jeff Hardy wrote: osEnviron is obviously not available in medium trust, like said in http://nwsgi.codeplex.com/Wiki/View.aspx?title=Configuration The documentation on the website still refers to 1.0; I just haven't had a chance to update it. Sorry.

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-19 Thread Markus T�rnqvist
On Sat, Sep 19, 2009 at 12:31:05AM +0300, Markus T�rnqvist wrote: Hi! I asked this question on http://nwsgi.codeplex.com/Thread/View.aspx?ThreadId=69422 And I found something new, tho the problem is still not solved, so I'd like to paste that here too :) I figured out that the 404 is a common

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-19 Thread Michael Foord
m...@nysv.org wrote: On Sat, Sep 19, 2009 at 12:31:05AM +0300, Markus T�rnqvist wrote: Hi! I asked this question on http://nwsgi.codeplex.com/Thread/View.aspx?ThreadId=69422 And I found something new, tho the problem is still not solved, so I'd like to paste that here too :) I

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-19 Thread Dody Gunawinata
Hi Markus, You are downloading an old version of NWSGI. The latest version is NWSGI 2.0 Beta 2 which you can find here http://nwsgi.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=29347. It has a very much different way to install. Give it a try and let me know if you have any problem. Dody

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-19 Thread Markus T�rnqvist
On Sat, Sep 19, 2009 at 01:01:32PM +0100, Michael Foord wrote: m...@nysv.org wrote: On Sat, Sep 19, 2009 at 12:31:05AM +0300, Markus T�rnqvist wrote: I figured out that the 404 is a common problem with misconfigured ISAPI, so I added C:\Inetpub\wwwroot\Hello\bin\NWSGI.dll as a Web Service

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-19 Thread Markus T�rnqvist
On Sat, Sep 19, 2009 at 04:34:28PM +0300, Dody Gunawinata wrote: Hi Markus, You are downloading an old version of NWSGI. The latest version is NWSGI 2.0 Beta 2 which you can find here http://nwsgi.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=29347. It has a very much different way to

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-19 Thread Markus T�rnqvist
On Sat, Sep 19, 2009 at 05:23:21PM +0300, Markus T�rnqvist wrote: Unfortunately it's still broken; The specified procedure could not be found. [...] I'm thinking, do I need some sort of config for callable? Does Web.config get parsed and it's somehow broken in the example? Finally found

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-19 Thread Dody Gunawinata
I'm currently trying to replicate your problem on IIS 6.0 on WIndows 2003 server. I'll get the result in a bit. On Sat, Sep 19, 2009 at 6:54 PM, Markus Törnqvist m...@nysv.org wrote: On Sat, Sep 19, 2009 at 05:23:21PM +0300, Markus T�rnqvist wrote: Unfortunately it's still broken; The

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-19 Thread Dody Gunawinata
Hi Markus, It works fine on my installation (Windows 2003 32 bit). Here's the hello world sample http://nwsgi.spellcoder.org/hello.wsgi. You can download the whole binaries here http://nwsgi.spellcoder.org/nwsgi.rar and try it out on your machine. See if it works. Dody Gunawinata 2009/9/19

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-19 Thread Jeff Hardy
On Sat, Sep 19, 2009 at 8:23 AM, Markus Törnqvist m...@nysv.org wrote: Again, from its configurations, I set the mapping .wsgi - NWSGI.dll This needs to point to the aspnet_isapi.dll file, not NWSGI.dll. Just copy the path from the .aspx entry. - Jeff

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-19 Thread Markus T�rnqvist
On Sat, Sep 19, 2009 at 07:37:48PM +0300, Dody Gunawinata wrote: Hi Markus, It works fine on my installation (Windows 2003 32 bit). Here's the hello world sample http://nwsgi.spellcoder.org/hello.wsgi. It does! You can download the whole binaries here http://nwsgi.spellcoder.org/nwsgi.rar and

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-19 Thread Dody Gunawinata
Ah, I know what you did wrong. Map .wsgi to asp.net dll, not nwsgi.dll. On Sat, Sep 19, 2009 at 7:50 PM, Markus Törnqvist m...@nysv.org wrote: On Sat, Sep 19, 2009 at 07:37:48PM +0300, Dody Gunawinata wrote: Hi Markus, It works fine on my installation (Windows 2003 32 bit). Here's the hello

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-19 Thread Markus T�rnqvist
On Sat, Sep 19, 2009 at 10:44:10AM -0600, Jeff Hardy wrote: On Sat, Sep 19, 2009 at 8:23 AM, Markus Törnqvist m...@nysv.org wrote: Again, from its configurations, I set the mapping .wsgi - NWSGI.dll This needs to point to the aspnet_isapi.dll file, not NWSGI.dll. Just copy the path from the

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-19 Thread Markus T�rnqvist
On Sat, Sep 19, 2009 at 10:44:10AM -0600, Jeff Hardy wrote: This needs to point to the aspnet_isapi.dll file, not NWSGI.dll. Just copy the path from the .aspx entry. Ok, now I got back to this and got actually somewhat far! Added the Wilcard Application Map to the correct DLL, and the Home

[IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-18 Thread Markus T�rnqvist
Hi! I asked this question on http://nwsgi.codeplex.com/Thread/View.aspx?ThreadId=69422 but to be better safe than sorry I'll ask this list too, sorry about the copypasta :) The platform is Windows 2003 Server, meaning IIS6, and IronPython 2.6 (because I'm hoping this will all lead up to Django,