Good Day

I am trying to install mono on Red Hat Enterprise Linux Server release 5
in order to run a .NET web service on it.

The machine is a x86_64 architecture

I added the Centos-5-extras repo to yum and installed the following
packages:
apr apr-util httpd libgdiplus mod_auth_mysql mod_ssl mod_mono
bytefx-data-mysql mono-core mono-data mono-data-sqlite mono-devel
mono-extras mono-locale-extras mono-nunit mono-web mono-winforms xsp

I then restarted Apache and copied /usr/lib64/xsp/test/ to the root of
my site.

The test pages works fine except for a few oddities on the test page
such as it complaining that the colours Blue and Green not being valid
colours, the handlers/monodoc.ashx, webcontrols/dbpage1.aspx and
webcontrols/dbpage2.aspx pages generates a
System.NullReferenceException: Object reference not set to an instance
of an object, webcontrols/temperature.aspx, webcontrols/validator1.aspx
and webcontrols/web_regularexpressionvalidator.aspx generates a
System.DllNotFoundException: gdiplus.dll

At first I thought that these errors might be actual problems with the
test pages themselves but then later when I tried to start our web
service I got the following error in apache's error_log:
Stacktrace:

  at (wrapper managed-to-native)
System.MonoCustomAttrs.GetCustomAttributesInternal
(System.Reflection.ICustomAttributeProvider,System.Type,bool) <0x0000b>
  at (wrapper managed-to-native)
System.MonoCustomAttrs.GetCustomAttributesInternal
(System.Reflection.ICustomAttributeProvider,System.Type,bool) <0xffffffff>
  at System.MonoCustomAttrs.GetCustomAttributesBase
(System.Reflection.ICustomAttributeProvider,System.Type) <0x00035>
  at System.MonoCustomAttrs.GetCustomAttributes
(System.Reflection.ICustomAttributeProvider,System.Type,bool) <0x000c3>

Native stacktrace:

        /usr/bin/mono [0x517867]
        /usr/bin/mono [0x4de85d]
        /lib64/libpthread.so.0 [0x3b4900dd40]
        /usr/bin/mono [0x4b646c]
        /usr/bin/mono(mono_reflection_get_custom_attrs_by_type+0xe3)
[0x4b6683]
        [0x417c33ad]

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Am I missing something or is there a misconfiguration?

Why is the mono version in the Centos-5-extras repo only 1.2.4?

A list of the errors follows:

handlers/monodoc.ashx

System.NullReferenceException: Object reference not set to an instance of an 
object
  at System.Web.UI.SimpleWebHandlerParser.AddAssembly 
(System.Reflection.Assembly assembly, Boolean fullPath) [0x00000] 
  at System.Web.UI.SimpleWebHandlerParser.AddAssemblyByName (System.String 
name, ILocation location) [0x00000] 
  at System.Web.UI.SimpleWebHandlerParser.AddAssemblyDirective (ILocation 
location, System.Web.Compilation.TagAttributes attrs) [0x00000] 
  at System.Web.UI.SimpleWebHandlerParser.TagParsed (ILocation location, 
TagType tagtype, System.String tagid, System.Web.Compilation.TagAttributes 
attributes) [0x00000] 
  at (wrapper delegate-invoke) 
System.MulticastDelegate:invoke_void_ILocation_TagType_string_TagAttributes 
(System.Web.Compilation.ILocation,System.Web.Compilation.TagType,string,System.Web.Compilation.TagAttributes)
  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.UI.SimpleWebHandlerParser.ParseDirective (System.String line) 
[0x00000] 
  at System.Web.UI.SimpleWebHandlerParser.GetDirectivesAndContent () [0x00000] 
  at System.Web.UI.SimpleWebHandlerParser..ctor (System.Web.HttpContext 
context, System.String virtualPath, System.String physicalPath) [0x00000] 
  at System.Web.UI.WebHandlerParser..ctor (System.Web.HttpContext context, 
System.String virtualPath, System.String physicalPath) [0x00000] 
  at System.Web.UI.WebHandlerParser.GetCompiledType (System.Web.HttpContext 
context, System.String virtualPath, System.String physicalPath) [0x00000] 
  at System.Web.UI.SimpleHandlerFactory.GetHandler (System.Web.HttpContext 
context, System.String requestType, System.String virtualPath, System.String 
path) [0x00000] 
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context) 
[0x00000] 
  at System.Web.HttpApplication+<>c__CompilerGenerated1.MoveNext () [0x00000]


webcontrols/dbpage1.aspx

System.NullReferenceException: Object reference not set to an instance of an 
object
  at ASP.dbpage1_aspx.Page_Init (System.Object sender, System.EventArgs e) 
[0x00000] 
  at (wrapper delegate-invoke) 
System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
  at System.Web.UI.Control.OnInit (System.EventArgs e) [0x00000] 
  at System.Web.UI.Control.InitRecursive (System.Web.UI.Control 
namingContainer) [0x00000] 
  at System.Web.UI.Page.InternalProcessRequest () [0x00000] 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) 
[0x00000] 


webcontrols/dbpage2.aspx

System.NullReferenceException: Object reference not set to an instance of an 
object
  at ASP.dbpage2_aspx.Page_Init (System.Object sender, System.EventArgs e) 
[0x00000] 
  at (wrapper delegate-invoke) 
System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
  at System.Web.UI.Control.OnInit (System.EventArgs e) [0x00000] 
  at System.Web.UI.Control.InitRecursive (System.Web.UI.Control 
namingContainer) [0x00000] 
  at System.Web.UI.Page.InternalProcessRequest () [0x00000] 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) 
[0x00000] 


webcontrols/temperature.aspx

System.DllNotFoundException: gdiplus.dll
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup 
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
  at System.Drawing.GDIPlus..cctor () [0x00000]


webcontrols/validator1.aspx

System.DllNotFoundException: gdiplus.dll
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup 
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
  at System.Drawing.GDIPlus..cctor () [0x00000] 


webcontrols/web_regularexpressionvalidator.aspx

System.DllNotFoundException: gdiplus.dll
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup 
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
  at System.Drawing.GDIPlus..cctor () [0x00000] 


Marthinus

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to