小编Mid*_*ide的帖子

调试Azure:将调试器附加到IIS工作进程时出错

我有一个Web应用程序asp.net部署到Windows Azure.我尝试先在本地运行它.但是在调试时,我从VS2010中捕获了这个错误:

"There was an error attaching the debugger to the IIS worker process 
for URL 'http://127.255.0.0:82/' for role instance 
'deployment16(6).WindowsAzureProject2.WebApplication3_IN_0'. 
Unable to start debugging on the web server ......."
Run Code Online (Sandbox Code Playgroud)

我很难找到解决这个问题的方法,但对我来说似乎没什么用.我是Windows Azure的新手,这对我来说真的很麻烦.

iis azure visual-studio-debugging

18
推荐指数
5
解决办法
2万
查看次数

例外:从RESTFUL服务调用Bing翻译服务时找不到默认端点元素

我正在构建一个RESTFUL Web服务和一个consoleHost应用程序来托管该Web服务.在RESTFUL webservice中,我调用BingTranslate服务(链接参考:http://api.microsofttranslator.com/V2/Soap.svc )我的服务主机成功,但当我调用调用BingTranslate服务的函数时,抛出此异常:无法找到引用ServiceModel客户端配置部分中的合同"BingTranslator.LanguageService"的默认端点元素.这可能是因为找不到您的应用程序的配置文件,或者因为在客户端元素中找不到与此合同匹配的端点元素. " (BingTranslator是RESTFUL项目中服务引用的名称)

RESTFUL项目的app.config是:

<system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_LanguageService" closeTimeout="00:01:00"
          openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
          allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
          maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
          messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
          useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None"
              realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
      </basicHttpBinding>

      <webHttpBinding>
        <binding transferMode="Streamed" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" openTimeout="00:25:00"
                 closeTimeout="00:25:00" sendTimeout="00:25:00" receiveTimeout="00:25:00" name="webBinding">
        </binding>
      </webHttpBinding>

    </bindings>
    <client>
      <endpoint address="http://api.microsofttranslator.com/V2/soap.svc"
        binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_LanguageService"
        contract="BingTranslator.LanguageService" name="BasicHttpBinding_LanguageService" />
    </client>
    <services>
      <service name="SearchService.Service1" behaviorConfiguration="SearchService.Service1Behavior">
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:8732/Design_Time_Addresses/SearchService/Service1/"   /> …
Run Code Online (Sandbox Code Playgroud)

c# rest exception

5
推荐指数
1
解决办法
3006
查看次数

标签 统计

azure ×1

c# ×1

exception ×1

iis ×1

rest ×1

visual-studio-debugging ×1