I have an MVC application and some libraries that is it referring to. In one of the libraries I have created a controller class. However, it never seems to reach the controller from this library when navigating to the controller/action name.
using System;
using System.Web;
using System.Web.Mvc;
namespace Solution.Lib.Test
{
public class CustomPrintController : Controller
{
[HttpGet]
public string Index()
{
return "Solution.Lib.Test says Hi";
}
}
}
When I browse to localhost/CustomPrint/Index I get:
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: /CustomPrint/Index