【发布时间】:2012-05-21 15:13:54
【问题描述】:
我将我的 MVC3 Razor 应用程序上传到了 webhost 提供商(在 Visual Studio 2010 下的开发服务器上运行良好)。
在部署的站点上我得到一个
"Could not load file or assembly 'FreeTextBox, Version=3.3.1.12354, Culture=neutral, PublicKeyToken=5962a4e684a48b87' or one of its dependencies. The system cannot find the file specified."
但我完全不解,我的应用程序中没有任何 FreeTextBox!我什至没有引用那个 DLL。不幸的是,“Detaile”IIS 错误甚至没有提到谁或什么试图加载该 DLL,所以我不知道它来自哪里。
为了三重检查,我在我自己构建的应用程序上使用搜索掩码 搜索了 FreeTextBox。 在整个解决方案上,Visual Studio 找不到任何东西。
这里是实际的解决方案 它确实继承了父应用程序的程序集。 Ketan 根据您的建议,我通过这样做解决了它:
<system.web>
<assemblies>
<clear/>
... here standard MVC3 assemblies of template project ...
</assemblies>**
</system.web>
【问题讨论】:
标签: asp.net-mvc filenotfoundexception assembly-loading freetextbox