[Mono-list] ASP.NET 2.0 and System.Data.SqlClient

Keith C. Perry netadmin at vcsn.com
Fri Jan 20 13:50:51 EST 2006

Greetings everyone,

We're testing out mono 1.1.13 with apache 2.0.54 and we're having problem with
the connection to a MS-SQL database.  The IDE is Visual Studio 2005.  This
sample app runs from an IIS (v6.0) on a 2003 server with MS-SQL 2005.    When we
run it under mono/apache, we get everything accept the gridview containing data
out of the database.

I know the 2.0 framework is still being developed but the stuff we're doing from
what I've read should be supported.  I suspect maybe there is someone that needs
to be tweaked for the mono/apache combination but this product is new to me and
I don't know where or what to look at.

I'm attaching the Default.aspx and Web.config files to this email
for review.  Also, here is my mod_mono configuration.  Note that what I am going
for the auto application functionalitiy so that I do not need to constance edit
the http config.  So, the relavent mono configuration parameteres I have are...

LoadModule mono_module modules/mod_mono.so

MonoRunXSP true
MonoAutoApplication enabled
MonoPath "/usr/local/lib/mono"
MonoExecutablePath "/usr/local/bin/mono"
MonoServerPath "/usr/local/lib/xsp/2.0/mod-mono-server2.exe"
MonoDebug true
AddMonoApplications default "/aspdemo:/usr/local/lib/xsp/test"
Alias /aspdemo "/usr/local/lib/xsp/test"

AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx

Also, I compiled mod_mono with debugging but, I really don't get anything
useful.  When we publish the project to the apache server, I get this in my logs:

[Fri Jan 20 13:00:26 2006] [warn] handler: mono
[Fri Jan 20 13:00:26 2006] [warn] config = 135720568
[Fri Jan 20 13:00:26 2006] [warn] dir_config = 135720792
[Fri Jan 20 13:00:26 2006] [warn] idx = 1
[Fri Jan 20 13:00:26 2006] [warn] Socket file name /tmp/mod_mono_server_default
[Fri Jan 20 13:00:26 2006] [warn] try_connect: 0
[Fri Jan 20 13:00:26 2006] [warn] After setup_socket
[Fri Jan 20 13:00:26 2006] [warn] Sending init data
[Fri Jan 20 13:00:26 2006] [warn] Send init1
[Fri Jan 20 13:00:26 2006] [warn] Accept: */*
[Fri Jan 20 13:00:26 2006] [warn] Accept-Language: en-us
[Fri Jan 20 13:00:26 2006] [warn] Accept-Encoding: gzip, deflate
[Fri Jan 20 13:00:26 2006] [warn] If-Modified-Since: Fri, 20 Jan 2006 18:00:26
GMT; length=1330
[Fri Jan 20 13:00:26 2006] [warn] User-Agent: Mozilla/4.0 (compatible; MSIE 6.0;
Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.1)
[Fri Jan 20 13:00:26 2006] [warn] Host:
[Fri Jan 20 13:00:26 2006] [warn] Connection: Keep-Alive
[Fri Jan 20 13:00:26 2006] [warn] Cookie: Apache=
[Fri Jan 20 13:00:26 2006] [warn] Loop
[Fri Jan 20 13:00:26 2006] [warn] Command received: DECLINE_REQUEST
[Fri Jan 20 13:00:26 2006] [warn] Done. Status: -1

Any help and guidance would be most appreciated.  Thanks in advance...

Keith C. Perry, MS E.E.
Director of Networks & Applications
VCSN, Inc.
This email account is being host by:
VCSN, Inc : http://vcsn.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Default.aspx
Type: application/octet-stream
Size: 1330 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20060120/b045fff1/Default.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Web.config
Type: application/octet-stream
Size: 1877 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20060120/b045fff1/Web.obj

More information about the Mono-list mailing list