[Mono-list] ms.net compiled vb dll on mono

Harsh R Busa hbusa@netvidya.com
Thu, 24 Feb 2005 16:39:19 +0530 (IST)

hi group

this might be another basic question from my end :(
my system : windows xp pro sp1, mono1.1.4 with xsp 1.0.6

i was trying following example
http://samples.gotdotnet.com/quickstart/aspplus/doc/businessobjs.aspx [ex
this example has explains how to use local vb.net assemblies in asp.net

the vb file peacefully compiles on mono with mbas into a 2.5kb .dll file
and shows desired op with mono + xsp .

i copy the same dll and the aspx file into inetpub/wwwroot of iis and this
works peacefully well.

what i actually wanted to do is completely opposite of this .

i compiled the same vb file with MS.NET (1.00.3705 ) vbc complier into a
dll  of size 4.5Kb and run it in IIS . works cool .

now i simply copy this dll into the bin directory of my mono xsp
application  and restart xsp . it fails :((

Server error in '/' application
Description: Error processing request.

Error Message: HTTP 500.

Stack Trace:

System.NullReferenceException: Object reference not set to an instance of
an object
in (unmanaged) 004111C2
in <0x00045> ASP.HelloObj_aspx:Page_Load (object,System.EventArgs)
in <0x00041> (wrapper delegate-invoke)
in <0x00053> System.Web.UI.Control:OnLoad (System.EventArgs)
in <0x00026> System.Web.UI.Control:LoadRecursive ()
in <0x000fc> System.Web.UI.Page:InternalProcessRequest ()
in <0x00095> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in <0x00225> ExecuteHandlerState:Execute ()
in <0x00071> StateMachine:ExecuteState


and xsp show following warnings :

Listening on port: 8080
Listening on address:
Root directory: C:\novell
Hit Return to stop the server.

** (C:\PROGRA~1\MONO-1~1.4\lib\mono\1.0\xsp.exe): WARNING **: Could not
find ass
embly Microsoft.VisualBasic, references from C:\novell\bin\HelloObjVB.dll
     Major/Minor: 7,0
     Build:       3300,0
     Token:       b03f5f7f11d50a3a
System error: No such file or directory

** (C:\PROGRA~1\MONO-1~1.4\lib\mono\1.0\xsp.exe): WARNING **: Missing
method Str
Cmp in assembly C:\novell\bin\HelloObjVB.dll, type

thanks for all the help :)