my RouteConfig like this :
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
namespaces: new[] { "GPTKish.Controllers" }
);
When I enter for ex : http://localhost:23594/News , show me Index Action of News Controller but when i enter http://localhost:23594/NewsImages , get HTTP Error 403.14 - Forbidden!!!! and don't show index action of NewsImages Controller !!! where is wrong of my code? this is my newsImages controller
public class NewsImagesController : Controller
{
private DatabaseContext db = new DatabaseContext();
// GET: NewsImages
public ActionResult Index(int selectedNewsid)
{
List<NewsImage> newsImages = db.NewsImages.Include(n => n.News).Where(c => c.NewsId == selectedNewsid).ToList();
ViewBag.NewsTitle = newsImages[1].News.Title;
return View(newsImages);
}
thank you
NewsImagescontroller code in the question?