Archive for October, 2010
Microsoft set to blind Playstation Eyes with its Kinect, this is no mere eyeToy!
by Admin on Oct.27, 2010, under Local News, Tech and Gadgets

The Microsoft KINECT for Xbox has finally Arrived!
The applications for this are limitless, the XBOX KINECT gaming system is no longer just for games! Think science, education, and sports, exercise….
Do you enjoy Star Trek or Star Wars? Imagine immersing yourself in the role of a Jedi and swinging away with your lightsabre at Darth Vader..

Problems with mod_mono and Autohosting, user and group directives order, application error, Type service not found, unix daemon not initialized yet, not initializing dashboard, application server error 500
by Admin on Oct.23, 2010, under Linux Unix Stuff
I was trying to get my webservice .asmx working on linux….
I first failed due to mono version not being the latest and some issues with DataSet Extensions and XML.Linq etc….I was able to solve these issues by installing the latest version of Mono for CentOS/RHEL and then installing all the data, core, mono-web, etc and also WCF which didn’t install by default with mono-tools server etc… (gacutil came in handy, and sometimes I modified my web.config to reflect the ‘version’ of dll/library that gacutil said I had…)
For the curious, my .cs file behind App_Code used these libraries:
using System;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using System.Drawing;
using System.IO;
Anyway, I finally had it working just fine with xsp/xsp2 … I thought I was all set… ;( wrong..
Installed Mod_Mono but it wasn’t so easy sailing…
I was indeed able to get a simple Hello World index.aspx file working no problem with the default out of the box mod_mono.conf placed in /etc/httpd/conf.d/ but my .asmx service kept giving errors….first complained of
My asmx web service kept on giving me Application error in ‘/’ (server error 500)…”Type Service Not Found , HttpException etc….”
I began to suspect that it was trying to run with mono server version 1 instead over version 2 for a version 2.0 application….so I began to make changes to the mod_mono.conf file which kept giving me errors on apache httpd restart:
[crit] The unix daemon module not initialized yet. Please make sure that your mod_mono module is loaded after the User/Group directives have been parsed. Not initializing the dashboard.
After re-ordering things I’d get rid of the errors somewhat, but what I didn’t know was that the config had reverted to Autohosting (MonoAutoApplication) instead of my manual override attempt, and so it was still running the wrong/default version server.
I finally solved that my moving down the Include conf.d/*.conf line in my httpd.conf after my user and group directives (in my case User Apache, Group Apache)
Here’s pertinent part of my mod_mono.conf file:
MonoDebug test true
MonoSetEnv test MONO_IOMAP=all
Alias /test “/var/www/html/Service”
MonoServerPath test /opt/novell/mono/bin/mod-mono-server2
MonoApplications test “/test:/var/www/html/Service”
Allow from all
Order allow,deny
MonoSetServerAlias test
AddHandler mono .aspx .config .asmx
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
MonoAutoApplication disabled
Well that’s about it, my service is now working fine under mod_mono ….