我在BIN文件夹一个DLL,我需要它在web.config中引用,或我得到那个烦人的错误:如何在web.config中引用DLL?
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'ServiceModel' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
此DLL是不是在GAC,并为我不能使用
<assemblies><add ...
所以我的猜测是,我需要使用configSections像
<configSections>
<section name="Microsoft.System.Web"
type="Microsoft.System.Web,
Version=3.0.0.0, Culture=neutral,
PublicKeyToken=10633fbfa3fade6e "/>
</configSections>
什么应该是正确的代码?
Nop ...它只能工作,因为它会从GAC获取DLL。 :) - 如果你没有它,那么你会得到错误,如果没有引用它在web.config – balexandre 2009-01-21 02:32:04
我保证你的dll不在gac中。 – Joshua 2009-01-24 17:45:06