.net SerializationException由于安全限制,无法访问System.Runtime.Remoting.ObjRef类型

.net SerializationException由于安全限制,无法访问System.Runtime.Remoting.ObjRef类型,.net,iis,remoting,.net,Iis,Remoting,我有一个托管在IIS下的远程处理服务器,该服务器在我尝试与它对话时引发以下异常SerializationException由于安全限制,无法访问System.Runtime.remoting.ObjRef类型。 如果我将服务器托管在自己的exe中,则不会出现任何问题。 搜索谷歌,大多数人的解决方案是设置typeFilterLevel=“Full” 我正在这样做 我还将信任级别设置为full,这应该是默认值 <system.web> <authentication m

我有一个托管在IIS下的远程处理服务器,该服务器在我尝试与它对话时引发以下异常SerializationException由于安全限制,无法访问System.Runtime.remoting.ObjRef类型。 如果我将服务器托管在自己的exe中,则不会出现任何问题。
搜索谷歌,大多数人的解决方案是设置typeFilterLevel=“Full”


我正在这样做

我还将信任级别设置为full,这应该是默认值

<system.web>
    <authentication mode="None" />
    <customErrors mode="Off" />
    <compilation defaultLanguage="c#" />
    <trust level="Full"/>
</system.web>


我正在Windows 2003上使用IIS 6.0。为.NET2.0编译的代码。应用程序池正在具有管理权限的帐户下运行

问题最终是通道定义不正确。serverProviders标记不在通道内,xml的缩进使其看起来像是在通道内

<system.web>
    <authentication mode="None" />
    <customErrors mode="Off" />
    <compilation defaultLanguage="c#" />
    <trust level="Full"/>
</system.web>