Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# MVC
I copied a project to another computer and I have this error.
 

Could not load file or assembly 'System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
 

Screenshot of error is in this part.
 

 
<assemblies>
        <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
        <add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
      </assemblies>
Posted 24-Apr-13 6:35am
Comments
richcb at 24-Apr-13 11:38am
   
It means you are missing a reference in your project. Try to add the assembly it is referring to.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

That assambly is part of MVC4. So either install MVC4[^], or this one: http://nuget.org/packages/CodeSharp.Package.AspNetWebPage/[^].
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I cannot find that System.Web.Helpers.dll on my machine - it is likely not part of the .Net Framework 4. When you deploy your application on a different computer, you have to deploy that dll also (check its license, in case it is not your own product!).
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

right click on project in solution exploret.
select Add diployable dependencies
checked Asp.net MVC and click ok
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 277
1 Maciej Los 210
2 BillWoodruff 205
3 Jochen Arndt 180
4 DamithSL 165
0 OriginalGriff 5,130
1 DamithSL 4,157
2 Maciej Los 3,670
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,821


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 25 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100