我在项目中使用的是cache,iis6.0是win2003自带的,在我本地就没有什么问题,放到服务器上就出现缓存为空,是不是需要开启缓存啊,请知道的指点一下,谢谢!
错误信息如下:
Value cannot be null.
Parameter name: value
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: value
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: value]
System.Web.Caching.CacheEntry..ctor(String key, Object value, CacheDependency dependency, CacheItemRemovedCallback onRemovedHandler, DateTime utcAbsoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, Boolean isPublic) +8947487
System.Web.Caching.CacheInternal.DoInsert(Boolean isPublic, String key, Object value, CacheDependency dependencies, DateTime utcAbsoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback, Boolean replace) +93
System.Web.Caching.Cache.Insert(String key, Object value) +75
GNIS.WZ.Common.DataCache.SetCache(Object CacheKey, Object objObject) in D:\开发\温州地名\06项目开发\GNIS.Common\DataCache.cs:51
DataCacheHelp.GetAllDistrictFromCache() +107
DataCacheHelp.GetDistrictFromCache(String cityCode) +29
dmgl_PlaceConsulation.bindData() +235
dmgl_PlaceConsulation.Page_Load(Object sender, EventArgs e) +24
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
------解决方案--------------------------------------------------------
不太清楚啊!