Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / October 2005

Tip: Looking for answers? Try searching our database.

caching too much

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
A - 27 Oct 2005 22:04 GMT
Hello

I have a caching problem : my WebService is using a DB.
I'm doing changes in the DB and they are not reflected in the result of the
Web method.
After like 30min, restarting IIS many times .... without touching the code,
the changes appear in the result of the Web method.

I try to add [WebMethod(BufferResponse=isBuffering)] but it keeps the same
data...

Thank you,
 Alina
Deepak - 27 Oct 2005 23:06 GMT
Can you post the attributes or the headers of the web method?
what does this method do? the error might be in your code.
Thanks
Deepak

> Hello
>
[quoted text clipped - 9 lines]
> Thank you,
>   Alina
A - 28 Oct 2005 14:35 GMT
Hi
Here is my header
[WebMethod( CacheDuration = 5,
    BufferResponse = false,
    Description="Check if the user is in the role")]

If I do the change in the DB, then check the result of the WebService I
don't see the change. If I reboot my PC and then check the result of the
WebService I see the change.
So it must be a setting.
Thank you,
  Alina

> Can you post the attributes or the headers of the web method?
> what does this method do? the error might be in your code.
[quoted text clipped - 17 lines]
>> Thank you,
>>   Alina
Deepak - 28 Oct 2005 15:28 GMT
Hello
Remove the attribute CacheDuration =5 in your code and see the results.
Let me know why u need CacheDuration in your web method

> Hi
> Here is my header
[quoted text clipped - 30 lines]
> >> Thank you,
> >>   Alina

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.