开发者

using System.Web.Caching; giving error

开发者 https://www.devze.com 2023-02-26 04:53 出处:网络
(i am creating console application) i can\'t see System.web dll under \"add references\"the .NET framework 4

(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

精彩评论

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