locked
c# - Error on calling rest API with different .NET Framework. RRS feed

  • Question

  • Hello,

    I've created a Web Service for calling an external REST API. It always worked till some weeks ago . Something has been changed and I cannot get any response from API anymore ... struggling for a while I had a look at Web.confing file and noticed any comments (don't remember that, maybe any update does ...) 

    So trying to replacing <!-- httpRuntime targetFramework="4.5.2"/ --> with <httpRuntime targetFramework="4.6" />

    it getting works again, on my localhost, when I move the solution on the server IIS 7 I'm still facing the same problem

    The response error say: Authentication fails because the remote party has closed the transport stream ...  

    How can I make it wworks on IIS7 ? Thanks. R. Marco.

    <configuration>

      <configSections/>

      <!--

        For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.

        The following attributes can be set on the <httpRuntime> tag.

          <system.Web>

            <httpRuntime targetFramework="4.6" />

          </system.Web>

      -->

      <system.web>

        <compilation debug="true" targetFramework="4.5.2"/>

        <!-- httpRuntime targetFramework="4.5.2"/ -->

        <httpRuntime targetFramework="4.6" />

      
    • Moved by CoolDadTx Thursday, June 28, 2018 2:06 PM ASP.NET related
    Thursday, June 28, 2018 1:35 PM

All replies

  • Please post questions related to web development in the ASP.NET forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Thursday, June 28, 2018 2:06 PM