Error Could not load file or assembly Microsoft.Web.Infrastructure

1

I created a website in C #, the same one runs on my machine, but when I publish and update on the server via FTP (Filezilla) this message appears, can someone give me a hint how to solve?

  

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

    
asked by anonymous 26.10.2014 / 20:51

2 answers

1

This occurs because the server you are using does not have some files that are required to run your application.

You can grab the dependencies of the project and put it together in the bin folder. You select the dlls that are experiencing this error in the references of your project ( NomeDoProjeto/References or NomeDoProjeto/Referencias ) and go in the properties ( Alt+Enter ) and change the value of the Copy Local/Copy Local to true property.

This should solve your problems!

    
28.10.2014 / 19:49
0

Install AspNetMVC3ToolsUpdateSetup that can be downloaded from here . This will solve the problem.

Source: link

    
26.10.2014 / 21:16