BC30451: Name 'Caching' is not declared.

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 ?
 
E

Eric

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
 
T

TJS

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top