[nem-bug] [Nemerle 0000663]: ASP.NET functionality broken on Windows platform

feedback at nemerle.org feedback at nemerle.org
Fri May 12 19:07:48 CEST 2006


The following issue has been RESOLVED.
======================================================================
<http://nemerle.org/bugs/view.php?id=663> 
======================================================================
Reported By:                Chuck
Assigned To:                nazgul
======================================================================
Project:                    Nemerle
Issue ID:                   663
Category:                   Compiler
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             05-05-2006 00:36 CEST
Last Modified:              05-12-2006 19:07 CEST
======================================================================
Summary:                    ASP.NET functionality broken on Windows platform
Description: 
On Windows, using the Nemerle compiler for ASP.NET pages does not work, and
returns an error of "cannot load assembly with macros `Nemerle.Macros'". 
This problem occurs whether the .NET Framework (using Cassini in this
case) or Mono (XSP2) is used.

I have something of a scattered narrative on
http://nemerle.org/Talk:ASP.NET_%28tutorial%29 that contains a little more
detail, having to do with assembly versioning, and the frustrated results
of my attempts to correct the problem.
======================================================================

----------------------------------------------------------------------
 nazgul - 05-05-06 22:55 
----------------------------------------------------------------------
This is quite problematic, because compiler needs to find and load
Nemerle.Macros assembly, but it has no clue where to find it. IIS calls
Nemerle.Compiler directly from GAC and the directory with Nemerle.Macros
is not known.

Workaround for this is to specify additional option in configuration
pointing to proper directory:
  <compiler 
    ...
     compilerOptions="/lib:C:\home\nemerle\ncc\out.stage3"
  />

but it is a little bit ugly.

Also, after using this trick compilation starts, but some bug in CodeDom
provider appears (I'm fixing it now).

----------------------------------------------------------------------
 nazgul - 05-06-06 00:51 
----------------------------------------------------------------------
It works now (trunk in revision 6234) with mentioned compier option
specified in web.config.

I'm not sure if we can do much better, because the path to Nemerle.Macros
depends on installation of compiler (it is not put into the gac).

----------------------------------------------------------------------
 VladD2 - 05-06-06 23:32 
----------------------------------------------------------------------
> it is not put into the gac

Why?

----------------------------------------------------------------------
 nazgul - 05-07-06 00:11 
----------------------------------------------------------------------
We changed this after bug 380. I don't remember exactly what was the
problem, but I guess it was that MS.NET GAC puts every assembly into
completely separate directory - now, compiler needs to load macros at
start, so it must be able to find the Nemerle.Macros.dll (with compatible
version), but if it exists only in GAC, then we can't find it easily.

So we decided to leave Nemerle.Macros.dll in the same dir as ncc.exe, so
when you invoke ncc.exe it can easily locate Nemerle.Macros.dll. You can
try 0.2.9 MSI installer to see the details...

----------------------------------------------------------------------
 nazgul - 05-12-06 19:07 
----------------------------------------------------------------------
I fixed the documentation. We are not able to do this better at the moment.
Maybe in future we'll find out some better solution.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
05-05-06 00:36 Chuck          New Issue                                    
05-05-06 00:37 Chuck          Issue Monitored: Chuck                       
05-05-06 13:27 malekith       Status                   new => assigned     
05-05-06 13:27 malekith       Assigned To               => malekith        
05-05-06 21:13 malekith       Assigned To              malekith =>         
05-05-06 21:13 malekith       Status                   assigned => new     
05-05-06 21:13 malekith       Description Updated                          
05-05-06 21:13 malekith       Additional Information Updated                    
05-05-06 22:55 nazgul         Note Added: 0001238                          
05-06-06 00:51 nazgul         Note Added: 0001239                          
05-06-06 23:32 VladD2         Note Added: 0001240                          
05-07-06 00:11 nazgul         Note Added: 0001241                          
05-12-06 19:07 nazgul         Status                   new => resolved     
05-12-06 19:07 nazgul         Resolution               open => fixed       
05-12-06 19:07 nazgul         Assigned To               => nazgul          
05-12-06 19:07 nazgul         Note Added: 0001277                          
======================================================================




More information about the bugs mailing list