473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

'MyVirtualFile.GetCacheDependency(string, System.Collections.IEnum

Why am I getting this error below? This is the correct implementation as far
as I can see.

Reference
(http://msdn2.microsoft.com/en-us/lib...ependency.aspx)

Error: 'MyVirtualFile.GetCacheDependency(string,
System.Collections.IEnumerable, System.DateTime)': no suitable method found
to override

My code:

public override System.Web.Caching.CacheDependency
GetCacheDependency(string virtualPath, System.Collections.IEnumerable
virtualPathDependencies, DateTime utcStart)

{

if (virtualPath.ToLower().EndsWith("searchresults.asp x"))

{

HttpServerUtility server = HttpContext.Current.Server;

string[] fileDependencies = new string[] {
server.MapPath("~/search/SearchResults.aspx"),
server.MapPath("~/search/SearchResults.aspx.cs") };

return new
System.Web.Caching.CacheDependency(fileDependencie s, DateTime.Now);

}

return Previous.GetCacheDependency(virtualPath,
virtualPathDependencies, utcStart);

}

here's my entire code: http://www.webfound.net/vpp.txt

--
dba123
Jul 25 '06 #1
0 1271

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: dba123 | last post by:
I'm trying to implement my own Virtual Path Provider class. http://msdn2.microsoft.com/en-us/library/system.web.hosting.virtualpathprovider.aspx ...
1
by: dba123 | last post by:
How can I add logic to return the actual content of an aspx file in my method below: public override System.Web.Hosting.VirtualFile GetFile(string virtualPath) { //this is obviously not...
0
by: Shane | last post by:
Hello, I'm using VirtualPathProvider for a CMS-like system. As soon as I register the VPP I can no longer debug code with a normal Build -- any changes that I've made since the first build are...
1
by: Sriram Srivatsan | last post by:
Hi We are trying to build an application where we render some of the .aspx pages from the database using a class derived from System.Web.Hosting.VirtualPathProvider. Users configure the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.