---
title: "Could not load file or assembly 'Microsoft.Web.Infrastructure"  
description: "Could not load file or assembly 'Microsoft.Web.Infrastructure"  
author: "Tarun Kumar"  
published: 2016-04-21  
updated: 2016-04-21  
canonical: https://www.mindstick.com/forum/34108/could-not-load-file-or-assembly-microsoft-web-infrastructure  
category: "c#"  
tags: ["c#", ".net", "asp.net", "iis 7", "assembly"]  
reading_time: 1 minute  

---

# Could not load file or assembly 'Microsoft.Web.Infrastructure

Hey Guys,\
\
After deploying a [website](https://www.mindstick.com/articles/13110/why-copywriting-is-crucial-for-new-website-build) on [IIS](https://www.mindstick.com/blog/286/how-to-host-php-on-windows-server-iis-8), I [am getting](https://www.mindstick.com/forum/34179/i-am-getting-error-while-assigning-the-data-to-the-array-list) the following error.\
I have one main [directory](https://www.mindstick.com/forum/226/how-to-get-application-directory-using-c-sharp-csharp) and then one inside of it and [trying](https://answers.mindstick.com/qa/93698/6-mistakes-couples-are-trying-to-save-money) to [access](https://www.mindstick.com/articles/12994/how-foreigners-can-access-blocked-websites-in-china) the [second](https://answers.mindstick.com/qa/41761/how-did-the-second-industrial-revolution-influence-women-s-roles-in-society) one which is using .NET [Framework](https://www.mindstick.com/forum/34615/software-framework-vs-library) [Version](https://www.mindstick.com/articles/12845/things-to-remember-while-migrating-odoo-to-a-better-version) 3.5, [parent](https://www.mindstick.com/blog/154/how-to-find-parent-of-control-in-wpf) one using .NET Framework 4.0.

```
[ 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 cannot find the file specified ]
```

Please help\
![Could not load file or assembly](https://www.mindstick.com/mindstickforums/99156d43-2e70-411a-91ae-af1177dba5c3/images/e8e3f8e2-d6f1-46cd-ab01-ec5e9d467602.png)\
\

## Replies

### Reply by Uttam Misra

Add following references or deploy dlls to your bin folder

\

Add the following references to the project:

- Microsoft.Web.Infrastructure
- System.Web.Razor
- System.Web.WebPages.Razor
- System.Web.WebPages.Deployment

Set the property *Copy Local* to *True* for the following references:

- System.Web.Helpers
- System.Web.MVC
- System.Web.WebPages
- Microsoft.Web.Infrastructure
- System.Web.Razor
- System.Web.WebPages.Razor
- System.Web.WebPages.Deployment

cheers!!


---

Original Source: https://www.mindstick.com/forum/34108/could-not-load-file-or-assembly-microsoft-web-infrastructure

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
