Porblem在互联网上托管WCF [英] Porblem in Hosting WCF over Internet

查看:108
本文介绍了Porblem在互联网上托管WCF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为应用程序开发了一个wcf服务。它在本地IIS中运行良好。我正在使用VS2008,IIS 5.1。我想将它托管到我的域www.elearningsvc.nugenx.org。我已将所有文件上传到FTP中的其他目录(elearningservices),而不更改FTP中的原始web.config文件。当我尝试访问该服务时( http://www.elearningsvc.nugenx.org/Service.svc [ ^ ])需要用户名和密码(服务'http://elearningsvc.nugenx.org/Service.svc/$metadata'需要用户名和密码。)

请帮助这是我的web.config文件的终点我给的

 <   client  >  
< endpoint address = http://www.elearningsvc.nugenx.org/Service.svc

binding = basicHttpBinding bindingConfiguration = 合同 = IElearningServiceLibrary.IElearningService
< span class =code-attribute>
< span class =code-attribute> name = >
< identity >
< dns value = www.elearningsvc.nugenx.org / >
< / identity >
< / endpoint >
< / client >
< 服务 >
< span class =code-keyword>< service behaviorConfiguration = ServiceBehavior 名称 = ElearningServiceLibrary.ElearningService >
< 清除 / >
< endpoint 地址 = mex binding = mexHttpBinding 合同 = IMetadataExchange

< span class =code-attribute> listenUriMode = 明确 / >
< endpoint 地址 = binding = basicHttpBinding bindingConfiguration =

< span class =code-attribute> 名称 = Nugenx 合同 = IElearningServiceLibrary.IElearningService >
< 身份 >
< dns value = www.elearningsvc.nugenx.org / >
< / identity >
< / endpoint >
< / service < span class =code-keyword>>
< / services >

解决方案

metadata'需要用户名和密码。)

请帮助这是我的web.config文件的终点i'给予

 <   client  < span class =code-keyword>>  
< endpoint 地址 = http://www.elearningsvc.nugenx.org/Service.svc

binding = basicHttpBinding bindingConfiguration = 合同 = IElearningServiceLibrary.IElearningService

名称 = >
< identity >
< dns = www.elearningsvc.nugenx.org / >
< / identity >
< span class =code-keyword>< / endpoint >
< / client >
< 服务 >
< ser副 behaviorConfiguration = ServiceBehavior name = ElearningServiceLibrary.ElearningService >
< span class =code-keyword>< clear / >
< endpoint address = mex binding = mexHttpBinding contract = IMetadataExchange

listenUriMode = 明确 / >
< 端点
地址 = binding = basicHttpBinding bindingConfiguration =

name = Nugenx 合同 = IElearningServiceLibrary.IElearningService >
< identity > ;
< dns value = www.elearningsvc.nugenx .org / >
< / identity >
< / endpoint >
< / service >
< / services >


I've developed a wcf Service for an application. It is working perfectly in local IIS. I'm using VS2008 , IIS 5.1.I want to host it to my domain www.elearningsvc.nugenx.org. I've uploaded all the files to other directory(elearningservices) in FTP, without changing the original web.config file in the FTP. When I'm trying to access the service (http://www.elearningsvc.nugenx.org/Service.svc[^]) It is requiring Username and password(The Service 'http://elearningsvc.nugenx.org/Service.svc/$metadata' requires a username and password.)
Please Help this is my end points of web.config file i'm giving

<client>
      <endpoint address="http://www.elearningsvc.nugenx.org/Service.svc"

        binding="basicHttpBinding" bindingConfiguration="" contract="IElearningServiceLibrary.IElearningService"

        name="">
        <identity>
          <dns value="www.elearningsvc.nugenx.org" />
        </identity>
      </endpoint>
    </client>
    <services>
      <service behaviorConfiguration="ServiceBehavior" name="ElearningServiceLibrary.ElearningService">
        <clear />
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"

          listenUriMode="Explicit" />
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration=""

          name="Nugenx" contract="IElearningServiceLibrary.IElearningService">
          <identity>
            <dns value="www.elearningsvc.nugenx.org" />
          </identity>
        </endpoint>
      </service>
    </services>

解决方案

metadata' requires a username and password.)
Please Help this is my end points of web.config file i'm giving

<client>
      <endpoint address="http://www.elearningsvc.nugenx.org/Service.svc"

        binding="basicHttpBinding" bindingConfiguration="" contract="IElearningServiceLibrary.IElearningService"

        name="">
        <identity>
          <dns value="www.elearningsvc.nugenx.org" />
        </identity>
      </endpoint>
    </client>
    <services>
      <service behaviorConfiguration="ServiceBehavior" name="ElearningServiceLibrary.ElearningService">
        <clear />
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"

          listenUriMode="Explicit" />
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration=""

          name="Nugenx" contract="IElearningServiceLibrary.IElearningService">
          <identity>
            <dns value="www.elearningsvc.nugenx.org" />
          </identity>
        </endpoint>
      </service>
    </services>


这篇关于Porblem在互联网上托管WCF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆