You must Sign In to post a response.
  • Category: ASP.Net MVC

    How to Fixed this Dll Issue


    I have meet this error after I add this Namespace in MVC --> System.Data.EntityState

    \WebApplication1\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.Razor.dll" to "bin\System.Web.WebPages.Razor.dll". Access to the path 'bin\System.Web.WebPages.Razor.dll' is denied. WebServiceApp-MVC

    How to fixed this in mvc project any one give solution.
  • #766764

    As per error details you don't have an access to the specified folder, you need specialized access for that folder to access.

    Give respect to your work, Instead of trying to impress your boss.

    Blog :

  • #766772
    its access permission issue, there are multiple solution/workaround on it
    1. Delete all DLLs from the bin folder and build the solution
    2. A copy of Visual Studio (devenv.exe) was still running invisible in the background keeping the particular dll locked.
    3. delete everything in bin and obj folders in every project
    4. Just read your exception stacktrace: and check what is the issue
    5. In Nuget Package Manager Console: Update-Package Microsoft.AspNet.Mvc -Reinstall
    6. In ASP.NET MVC 4, the namespace is not System.Web.WebPages.Razor, but System.Web.Razor
    7.fixed this problem by doing the following,
    - .Open 'Package Manager Console' in Visual Studio
    -.Uninstall-Package Microsoft.AspNet.Mvc
    - .Install-Package Microsoft.AspNet.Mvc
    Hope it helps

    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • Sign In to post your comments