ASP.Net MVC – Resource Cannot be found error

Jacob
Jacob
34 Points
17 Posts

Hi,

 I am 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 you please tell me reason?

Thanks.

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

Share:   fb twitter linkedin
Answers
Brian
Brian
Participant
536 Points
73 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
banner

Blog

Active User (2)

 Log In to Chat