[Solved] Models namespace not working in Controller in ASP.Net MVC

on Oct 19, 2021 03:46 AM

I have Project in MVC Name WebApplication3, i am calling NameSpace in Controller, but it is not working or not calling

using WebApplication3.Models;

aslo added in View Config file

    <add namespace="System.Web.Mvc" />
    <add namespace="System.Web.Mvc.Ajax" />
    <add namespace="System.Web.Mvc.Html" />
    <add namespace="System.Web.Optimization"/>
    <add namespace="System.Web.Routing" />
    <add namespace="WebApplication3" />
    <add namespace="WebApplication3.Models" />
Download FREE API for Word, Excel and PDF in ASP.Net: Download
on Oct 19, 2021 04:30 AM

Hi akhter,

Delete the WebApplication3.dll, WebApplication3.dll.config and WebApplication3.pdb from bin folder.

Then Clean your solution and rebuild the solution.

Then check.