3
Reply

Error. An error occurred while processing your request

Boris Tok

Boris Tok

Nov 29 2017 3:26 AM
246
Build Application Asp Net Framework
in Application set My Area
in controller call function  
public ActionResult Index()
{
   return View(); 
 
after this operation see a message
 
Error.
An error occurred while processing your request.
 
Application tree
 
------- 
part code from the controller
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Pi_HarvestAspNet_WebFramework.Models;
namespace Pi_HarvestAspNet_WebFramework.Areas.ClinicArea.Controllers
{
public class ClinicsController : Controller
{
public ClinicsController()
{
}
// GET: ClinicArea/Clinics
public ActionResult Index()
{
return View();
}
 
 Index.cshtml
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>View</title>
</head>
<body>
<div>
</div>
</body>
</html>
 
 

Answers (3)