You have to iterate collList, not SPContext.Current.Web.Lists.
foreach (SPList oList in collList)
{
}
SPContext.Current.Web.Listswill receive the site you are currently on. Presumably this is http://myspserverwhen you run your code.
Also note that your code is leaking - you are not deleting the SPSite object. It should look like this:
using(SPSite site = new SPSite(webUrl))
using(SPWeb oWebsite = site.OpenWeb())
{
}
source
share