Hello,

I'm trying to use Server.MapPath("xxx/xxx.mdb") in my web.Config file.

I used:
<appSettings>
<add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + Server.MapPath + "\xxx\xxx.mdb" />
</appSettings>

... and I got a Configuration Error: The '+' character, hexadecimal value 0x2B, cannot begin with a name. Line 4, position 85.

If I Dim the full statement in a Sub/Function, it works - but I'm trying to get more use out of my web.Config file.

Thanks,
~ Ben