开发者

using System.Web.Caching; giving error

(i am creating console application) i can't see System.web dll under "add references" the .NET framework 4 client profile.

WCF project, system is giving error when i am specifying: using System.We开发者_C百科b.Caching; it is not recognizing the above namespace.

that's why: this.Context.Cache, this.Context.Cache.Add, cacheHolder,

are not working.


You've pretty much answered your own question: using the client profile, System.Web.dll doesn't exist. You'll either need the full profile, or remove all references to types in System.Web.Caching and any other types in System.Web.dll.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜