Håller på lite med en webService men jag får inte Server.MapPath att fungera.
Detta fungerar
<KOD>
public OleDbConnection myConnection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\Ver8\db\test.mdb");
</KOD>
men jagvill ju använda mig av mapPath
<KOD>
public OleDbConnection myConnection = new OleDbConnection (@"Provider=Microsoft.Jet.OLEDB.4.0; Data Source="+Server.MapPath(@"db/test.mdb"));
</KOD>
och detta genererar följande felmess vid kompileringen:
c:\inetpub\wwwroot\Ver8\Default.asmx.cs(18): The type or namespace name 'Server' could not be found (are you missing a using directive or an assembly reference?)
vad gör jag för fel?