使用mono 2.10.2在mod_mono上安装WCF



我想在apache 2.2.13和mono 2.10.2的opensuse 11.2上托管一个WCF服务,但我没有找到任何解释我如何详细的东西,我所有的尝试都是错误的。有人能帮帮我吗?提前感谢f .

我已经部分解决了使用visual studio创建服务并在另一个项目中生成代理的问题。然后在linux机上发布此web服务。配置配置:

    <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="NewBinding0" />
      </basicHttpBinding>
    </bindings>
    <services>
      <service behaviorConfiguration="WcfService2.Service1Behavior"
        name="WcfService2.Service1">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="NewBinding0"
          contract="WcfService2.IService1" />
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="WcfService2.Service1Behavior">
          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
          <serviceMetadata httpGetEnabled="false"  />
          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>

并将这两行添加到mod_mon .conf

MonoServerPath "/usr/bin/mod-mono-server4"
ddType application/x-asp-net .svc

我的意思是问题只是在mono上wsdl的机制不工作。但是正常调用该服务是有效的。这是如果我从我的搜索器调用服务的错误:

<Fault><Code><Value>a:InternalServiceFault</Value></Code><Reason><Text xml:lang="">The server was unable to process the request due to an internal error.  The server may be able to return exception details (it depends on the server settings).</Text></Reason></Fault>

最新更新