[Mono-list] missing assembly reference?
Steffen Sledz
Steffen Sledz <sledz@zone42.org>
Wed, 30 Jul 2003 22:49:25 +0200 (MEST)
I'm a novice to the mono system and have some understanding problems.
I've installed the mono RPM (mono-0.24-1) on my SuSE system and tried to
compile a very simple hello.cs with some extra using lines:
using System;
// not really needed - just to demonstrate the problem
using System.Net;
using System.Diagnostics;
using System.Web;
using System.Web.Services;
class Hello
{
public static void Main(String[] args)
{
Console.WriteLine("mono:: is alive and well...");
for (int i = 0; i < args.Length; i++)
Console.WriteLine("Argument {0} = {1}", i, args[i]);
}
}
Compiling with mcs gives this errors:
% mcs hello.cs
hello.cs(5) error CS0246: The namespace `System.Web' can not be found (missing assembly reference?)
hello.cs(6) error CS0246: The namespace `System.Web.Services' can not be found (missing assembly reference?)
If i look into the RPM these assemblies seem to be available:
% rpm -q -l mono | grep System.Web
/usr/lib/System.Web.Services.dll
/usr/lib/System.Web.dll
What's wrong here? Is there some machine or system configuration needed?
Steffen