[Mono-list] Custom Class..

ccesario ccesario@isic.com.br
Wed, 25 Sep 2002 20:56:00 +0000


Hi.. 

I am having a problem: I've created a simple class using C# but now I can't 
use its methods in an ASP. I created a DLL and put it in the LIB mono 
directory, and it still doesn't work. But, when compiling by hand, 
everything seems to be fine!
Does anybody know how to fix this? 

This is my .ASPX header:
<%@ Page Language="C#" %>
<%@ import namespace="System.IO" %>
<%@ import namespace="Custom" %> --> my namespace. 

And this is the error that appears when I invoke the web page:
output/xsp_co.cs(32) error CS0246: Cannot find type `contador'
Compilation failed: 1 error(s), 0 warnings 

Here is what happens when I compile by hand:
command --> mcs --target library -L . -r corlib -r System -r System.Data -r 
System.Web -r System.Drawing -r Custom -o output/1659994687co.dll 
output/xsp_co.cs
Result -> Compilation succeeded 


somebody has some solution? 

 

greets 

Carlos Cesario