Sreekanth Reddy

Sreekanth Reddy

  • 353
  • 4.8k
  • 421.3k

MVC Basic Error...

Feb 8 2014 11:29 PM
Hai friends,
 
I am beginer to MVC.
I am have installed MVC 4. 
I am getting problem when i executed a small program...
 
 
namespace MvcOne.Controllers
{
public class HourController : Controller
{
    public string Index()
   {
      return "abcdefhijkl....z";
   }
}
}
 
But it is throwing the the error as below.....
 
 
 

Server Error in '/MvcOne' 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: /MvcOne/HourController/Index


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929 
 
 
 
Please solve this problem............
I am facing this problem from lot of days. 
 

Answers (6)