从Windows Phone 8 Emulator访问本地Azure WCF服务

从Windows Phone 8 Emulator访问本地Azure WCF服务,wcf,azure,windows-phone-8-emulator,Wcf,Azure,Windows Phone 8 Emulator,我的WindowsPhone8模拟器有一个大问题 首先我有一个Azure项目,我有一个WebRole这个WebRole公开一些DomainServices(RIA服务) 我公开了这个域的服务,比如SOAP,以及其他应用,比如Windows8Metro风格或WPF应用客户端,这些服务工作得很好 但我正试图使用WindowsPhone8Emulator使用这些服务,但我做不到 我跟随这篇文章: 我需要更具体地说: 我在WindowsAzure项目的webRole中有一个网站 这个网站有一个域名服务(

我的WindowsPhone8模拟器有一个大问题

首先我有一个Azure项目,我有一个WebRole这个WebRole公开一些DomainServices(RIA服务)

我公开了这个域的服务,比如SOAP,以及其他应用,比如Windows8Metro风格或WPF应用客户端,这些服务工作得很好

但我正试图使用WindowsPhone8Emulator使用这些服务,但我做不到

我跟随这篇文章:

我需要更具体地说:

我在WindowsAzure项目的webRole中有一个网站

这个网站有一个域名服务(RIA服务),因为我在里面有一个Silverlight应用程序。 我用这个暴露了这个服务

 <domainServices>
  <endpoints>
    <add name="Soap" type="Microsoft.ServiceModel.DomainServices.Hosting.SoapXmlEndpointFactory,
         Microsoft.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, 
         Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
  </endpoints>
</domainServices>

但我无法将webRole中托管的服务与Windows Phone 8 Emulator连接

这是我的网站项目的结构:

这是名为LandingPage的我的web角色的配置此web角色具有服务。

这是Applicationhost.config中IIS Express的配置

 <site name="LandingPage" id="2">
            <application path="/" applicationPool="Clr4IntegratedAppPool">
                <virtualDirectory path="/" physicalPath="E:\AnimesideFinal\AnimesideWebsite\LandingPage" />
            </application>
            <bindings>
                <binding protocol="http" bindingInformation="*:24939:localhost" />
        <binding protocol="http" bindingInformation="*:24939:192.168.2.114" />
            </bindings>
        </site>

这是运行在IIS Express中的应用程序与本文不同之处。

最后,这是WindowsPhone8模拟器中服务的配置

<configuration>
<system.serviceModel>
    <bindings>
        <basicHttpBinding>
            <binding name="BasicHttpBinding_AuthenticationServiceSoap" maxBufferSize="2147483647"
                maxReceivedMessageSize="2147483647">
                <security mode="None" />
            </binding>
        </basicHttpBinding>
    </bindings>
    <client>
        <endpoint address="http://192.168.2.114/Services/LandingPage-Services-AuthenticationService.svc/Soap"
            binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_AuthenticationServiceSoap"
            contract="AuthService.AuthenticationServiceSoap" name="BasicHttpBinding_AuthenticationServiceSoap" />
    </client>
</system.serviceModel>

我遵循了文章的所有步骤,但没有结果。我认为有问题,因为我需要从Azure proj运行我的项目,并且在存在的属性中可以选择使用IIS express或IIS web服务器。

这是Windows Phone Emulator的错误

{System.ServiceModel.CommunicationException:远程服务器返回错误:NotFound。-->System.Net.WebException:远程服务器返回错误:NotFound。-->System.Net.WebException:远程服务器返回错误:NotFound。 位于System.Net.Browser.ClientHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult) 在System.Net.Browser.ClientHttpWebRequest.c_uuDisplayClasse.b_uud(对象发送状态)中 在System.Net.Browser.AsyncHelper.c__DisplayClass1.b__0(对象发送状态)中 ---内部异常堆栈跟踪的结束--- 位于System.Net.Browser.AsyncHelper.BeginNoui(SendOrPostCallback beginMethod,对象状态) 位于System.Net.Browser.ClientHttpWebRequest.EndGetResponse(IAsyncResult asyncResult) 位于System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteTresponse(IAsyncResult结果) ---内部异常堆栈跟踪的结束--- 在System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult结果)处 位于System.ServiceModel.Channels.ServiceChannel.EndCall(字符串操作,对象[]输出,IAsyncResult结果) 在System.ServiceModel.ClientBase
1.ChannelBase
1.EndInvoke(String methodName,Object[]args,IAsyncResult结果) 位于AnimesideWP7.AuthService.AuthenticationServiceSoapClient.AuthenticationServiceSoapClientChannel.EndLogin(IAsyncResult结果) 位于AnimesideWP7.AuthService.AuthenticationServiceSoapClient.AnimesideWP7.AuthService.AuthenticationServiceSoap.EndLogin(IAsyncResult结果) 位于AnimesideWP7.AuthService.AuthenticationServiceSoapClient.OnEndLogin(IAsyncResult结果) 在System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult结果)}

谢谢你的帮助


注意。

请参阅iis express解决方案部分


与论坛网站不同,我们不会在网站上使用“谢谢”或“感谢任何帮助”或签名。请参阅“.你所说的“它不起作用”是什么意思?是否有任何错误或您无法得到响应或什么?请更具体地说。如果您能解释导致问题的原因以及如何解决问题,则可能重复。