BC30451: Name 'Caching' is not declared.

  • Thread starter Thread starter TJS
  • Start date Start date
T

TJS

I get this erro from a vb class file. line 86.

Line 84: Dim dt As New DataTable()
Line 85: da.Fill(dt)
Line 86: Cache.Add("ScrollExampleCustomerData", dt, Nothing,
DateTime.MaxValue, TimeSpan.FromDays(7), Caching.CacheItemPriority.Normal,
Nothing)
Line 87: Return dt
Line 88: Else

anybody know the remedy for tthis error ?
 
Try preceding the misbehaving argument with "System.Web." so that it reads:

System.Web.Caching.CacheItemPriority.Normal

instead of just:

Caching.CacheItemPriority.Normal

any luck with that?


Eric
 
yep that's it


Eric said:
Try preceding the misbehaving argument with "System.Web." so that it reads:

System.Web.Caching.CacheItemPriority.Normal

instead of just:

Caching.CacheItemPriority.Normal

any luck with that?


Eric
 
Back
Top