Results 1 to 1 of 1
-
04-10-2010, 08:59 PM #1
- Join Date
- Apr 2008
- Location
- Boston, USA
- Posts
- 13,172
- Thanks
- 744
- Thanked 699 Times in 550 Posts
- Blog Entries
- 4
- Feedback Score
- 4 (100%)
unknown web method parameter name methodname - 500 Internal Server Error - ASP .NET
Last few hours I been trying to work with a AutoCompleteExtender. It works fine. But sometimes it acts like crazy rob. When I update the method that returns the data, output does not seem to reflect the changes rather shows me the old output.
Looking at the response stream I can see there is this error message: 500 Internal Server Error. And the details says something like this "unknown web method parameter name methodname"
Apparently the problem lies on the default output caching. By default all browsers use caching. Not only that ASP .Net web servers also use caching. Both for the performance reasons.
To overcome this problem simply disable caching or reduce the cache time. One simple method of reducing the cache time is adding this on your aspx page:
You cannot set Duration less then 1, need to be positive integer.Code:<%@ OutputCache Duration="1" VaryByParam= "None" %>
Here is a great article you can read on different caching methods: Caching Techniques in ASP.NET 2.0
Edit: Apparently this solution isnt always working either.
Another approach to solve this is, open the command prompt and type iisreset then hit enter. So far it seem to have worked for me.Free Classified Ads & BUSINESS/PROFESSIONAL SOCIAL NETWORK
Similar Threads
-
Windows Server 2008 Delivers Web-based Experiences
By shovakoirala in forum Windows ServerReplies: 7Last Post: 12-11-2009, 05:49 PM


Reply With Quote

