[Mono-list] Mono assembly load error under .NET 1.1 Windows

Scott scott@budomail.com
Fri, 27 Aug 2004 18:12:58 +0100


Hello fellow Monoers,

Should it be possible to compile simple assemblies under Mono 1.0.1 on =20=

Linux
and use them successfully under Microsoft's .NET 1.1 Framework on =20
Windows?

I'm getting an assembly load error on an ASP.NET page:

	"The format of the file 'Xxxx.Web' is invalid."

I didn't expect that.  This suggests that there is something wrong with =20=

the encoding
of the assembly itself, rather than an error in my code, doesn't it?

I've compiled against Mono's implementation of System.Web and =20
System.Data,
but it's nothing complex. The assembly compiled and loaded fine when I =20=

used
SharpDevelop on XP with .NET 1.1, but not with when compiled with =20
MonoDevelop on
Linux under Mono 1.0.1 deployed to Windows Server 2003 .NET 1.1, and I =20=

haven't
change a line of code.

Maybe I'm doing something stupid here?  - This is quite often the case =20=

:o)

Has any one else seen this, or maybe it's not meant to be possible yet?

Here's the ASP.NET output:

8< =20
------------------------------------------------------------------------=20=

---------------------------------

Parser Error
Description: An error occurred during the parsing of a resource =20
required to service this request. Please review the following specific =20=

parse error details and modify your source file appropriately.

Parser Error Message: The format of the file Xxxx.Web' is invalid.

Source Error:

Line 1:  <%@ Page Language=3D"C#" ContentType=3D"text/html" =20
ResponseEncoding=3D"iso-8859-1" EnableViewState=3D"false" %>
Line 2:  <%@ Register TagPrefix=3D"xxx" Namespace=3D"Xxxx.Web" =20
Assembly=3D"Xxxx.Web"%>
Line 3:  <%@ Import Namespace=3D"System.Data" %>
Line 4:  <%@ Import namespace=3D"ByteFX.Data.MySqlClient" %>

Source File:  D:\customer\xxxx\www.xxxx.co.uk\www\menu.aspx =A0=A0 Line: =
 2

Assembly Load Trace: The following information can be helpful to =20
determine why the assembly 'Xxxx.Web' could not be loaded.

=3D=3D=3D Pre-bind state information =3D=3D=3D
LOG: DisplayName =3D Xxxx.Web
  (Partial)
LOG: Appbase =3D file:///D:/customer/xxxx/www.xxxx.co.uk/www
LOG: Initial PrivatePath =3D bin
Calling assembly : (Unknown).
=3D=3D=3D

LOG: Policy not being applied to reference at this time (private, =20
custom, partial, or location-based assembly bind).
LOG: Post-policy reference: Xxxx.Web
LOG: Attempting download of new URL =20
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET =20=

Files/root/68c8f421/a2dce656/Xxxx.Web.DLL.
LOG: Attempting download of new URL =20
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET =20=

Files/root/68c8f421/a2dce656/Simbiotic.Web/Xxxx.Web.DLL.
LOG: Attempting download of new URL =20
file:///D:/customer/XXXXj/www.XXXX.co.uk/www/bin/Xxxx.Web.DLL.


Version Information:=A0Microsoft .NET Framework Version:1.1.4322.573; =20=

ASP.NET Version:1.1.4322.573

8< =20
------------------------------------------------------------------------=20=

---------------------------------

I humbly await your comments...

-- Scott=