Hello fellow Monoers,
Should it be possible to compile simple assemblies under Mono 1.0.1 on Linux
and use them successfully under Microsoft's .NET 1.1 Framework on 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 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 System.Data,
but it's nothing complex. The assembly compiled and loaded fine when I used
SharpDevelop on XP with .NET 1.1, but not with when compiled with MonoDevelop on
Linux under Mono 1.0.1 deployed to Windows Server 2003 .NET 1.1, and I haven't
change a line of code.
Maybe I'm doing something stupid here? - This is quite often the case :o)
Has any one else seen this, or maybe it's not meant to be possible yet?
Here's the ASP.NET output:
8< ------------------------------------------------------------------------ ---------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific 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="C#" ContentType="text/html" ResponseEncoding="iso-8859-1" EnableViewState="false" %>
Line 2: <%@ Register TagPrefix="xxx" Namespace="Xxxx.Web" Assembly="Xxxx.Web"%>
Line 3: <%@ Import Namespace="System.Data" %>
Line 4: <%@ Import namespace="ByteFX.Data.MySqlClient" %>
Source File: D:\customer\xxxx\www.xxxx.co.uk\www\menu.aspx �� Line: 2
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Xxxx.Web' could not be loaded.
=== Pre-bind state information === LOG: DisplayName = Xxxx.Web (Partial) LOG: Appbase = file:///D:/customer/xxxx/www.xxxx.co.uk/www LOG: Initial PrivatePath = bin Calling assembly : (Unknown). ===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: Xxxx.Web
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/68c8f421/a2dce656/Xxxx.Web.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/68c8f421/a2dce656/Simbiotic.Web/Xxxx.Web.DLL.
LOG: Attempting download of new URL file:///D:/customer/XXXXj/www.XXXX.co.uk/www/bin/Xxxx.Web.DLL.
Version Information:�Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
8< ------------------------------------------------------------------------ ---------------------------------
I humbly await your comments...
-- Scott _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
