根据MSDN的写法,我在插入Cache的时候,是这样写的:
private const strFilePath = "c:/a.xml"...Cache.Insert("fileName", "fileContent", New CacheDependency(strFilePath))执行到上面这句话的时候,就报"用于监视的文件名无效:“c:/a.txt”。用于监视的文件名必须具有绝对路径,并且不包含通配符"的错误,不知道是什么原因.请高手指点一下. 谢谢 ^_^