GithubHelp home page GithubHelp logo

Comments (9)

jmprieur avatar jmprieur commented on June 23, 2024 1

Thanks for the heads-up @SgtSpamCan; things change quickly in the portal and we need to update our README.mds

@kalyankrishna1
If you have capacity, would you want to apply the new deployment steps to this sample?

from active-directory-dotnet-daemon.

jmprieur avatar jmprieur commented on June 23, 2024

@WindowsQuery this means that your Web API is not running at teh expected address
Check that this works and is indeed at that URL.

The Aggregate Exception is only due to async calls ran synchronously.

from active-directory-dotnet-daemon.

WindowsQuery avatar WindowsQuery commented on June 23, 2024

azurelinkwebapi

The link works. It is when the same value is provided to add key="todo:TodoListBaseAddress" that it fails. And, should it not open the browser with that URL instead of http://localhost:9184/?

I am not sure if this is a working sample.

from active-directory-dotnet-daemon.

LawrenceSmith1437 avatar LawrenceSmith1437 commented on June 23, 2024

I have also just run through the example code. As the OP reported, everything works when the service runs locally. When I deploy the service to Azure I'm also getting exception
"Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."

I successfully deployed my app to https://todoservice{omitted}.azurewebsites.net
2019-02-26 17_11_44-home page

My console app is configured correctly:
<add key="todo:TodoListBaseAddress" value="https://todoservice{omitted}.azurewebsites.net" />

from active-directory-dotnet-daemon.

LawrenceSmith1437 avatar LawrenceSmith1437 commented on June 23, 2024

Quick follow-up: I redeployed the service as HTTP (not HTTPS!), changed the app registration reply and home page urls to http as well, and at that point the client could call the service successfully. So, the web service itself is functioning. It just is not working once the website is secured.

One thing I noticed in the steps is that one of the azure service deploy steps stated:

From the Settings -> Reply URLs menu, update the Sign-On URL, and Reply URL fields to the address of your service

I assume we're talking about the App Registration entry in Azure AD? I found the setting called "Reply Url", but there is nothing specific in there about reply or sign-on url. It's just a list of urls. So in addition to changing the Reply Url, I also set the application's Home Page. If there is a setting called Sign-On, I could not find it via the instructions.

Was this crucial, and if so, where can it be located?

from active-directory-dotnet-daemon.

LarrySmith-1437 avatar LarrySmith-1437 commented on June 23, 2024

@jmprieur I'm honored to have you on the thread. Quick question: Was there something I missed regarding a Sign-On url? Or is it no longer relevant? Just trying to get my sample code working :-)
(heh, @SgtSpamCan is my other sign-on...)

from active-directory-dotnet-daemon.

romerve avatar romerve commented on June 23, 2024

Hi, i had the same issue, fixed it with before making the post:
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;

Some reason TLS 1.0 is always used, and changing the min TLS version in the App Service settings doesnt seem to work.

from active-directory-dotnet-daemon.

jmprieur avatar jmprieur commented on June 23, 2024

Did you try updating the sample to work with .NET Framework 4.7.2 ? it ensure TLS 1.2 is used.

from active-directory-dotnet-daemon.

romerve avatar romerve commented on June 23, 2024

Did you try updating the sample to work with .NET Framework 4.7.2 ? it ensure TLS 1.2 is used.

No, i was just running it as it was. Like you mention, updating it to 4.7.2 ensures TLS is used and removes the need to explicitly declare it.

from active-directory-dotnet-daemon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.