Server Error: Resource Cannot be found error

Jacob
Jacob
Member
56 Points
13 Posts

Getting  Resource Cannot be found error as:

Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  
Please review the following URL and make sure that it is spelled correctly.
Requested URL: /Services/CommonWebService.asmx/GetUserList
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929


Can any one please tell me reason?

Thanks.

Views: 11278
Total Answered: 1
Total Marked As Answer: 1
Posted On: 07-Jul-2015 22:08

Share:   fb twitter linkedin
Answers
Brian
Brian
Moderator
2232 Points
14 Posts
         

 

Hi Jacob,

Just do one thing that add the following line into the route.config file

public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{*x}", new { x = @".*\.asmx(/.*)?" });
Posted On: 07-Jul-2015 22:16
Thanks. it's helpful.
 - Stevan  19-Apr-2023 03:31
 Log In to Chat