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

akhter
 
on Oct 19, 2021 03:46 AM
294 Views

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

<namespaces>
    <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" />
</namespaces>
Download FREE API for Word, Excel and PDF in ASP.Net: Download
dharmendr
 
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.