2009-11-03 78 views
3

我在Web.config中引用的Web Site项目的App_Code文件夹中有一个类型。 type属性要求我输入程序集名称。互联网正在让我无法投入到组装中。从web.config引用App_Code中的代码

具体的,

<system.web> 
    <webServices> 
     <soapExtensionReflectorTypes> 
      <add type="MyType, $App_Code$" /> 
     </soapExtensionReflectorTypes> 
    </webServices> 
</system.web> 

我把什么在$ App_Code文件$,使其编译?我试过了__代码,App_code,App_Code(Markdown在这里失败:这些类型名称没有空格)

回答

0

好的,我在一些晦涩的MSDN论坛上找到了答案:你不能在system.web/webservices/soapExtensionReflectorTypes的网站项目中执行此操作。只有一个Web应用程序项目就足够了。

相关问题