Giter Club home page Giter Club logo

Comments (5)

DamianEdwards avatar DamianEdwards commented on August 22, 2024

Double-check the URL you've configured for the FrontEnd to talk to the BackEnd. HTTPS and HTTP are on separate ports and you must ensure you use the right port. Check that the BackEnd works over HTTPS and then ensure you're using that URL in the FrontEnd's appsettings.json file.

from aspnetcore-app-workshop.

manniealfaro avatar manniealfaro commented on August 22, 2024

I have the same issue and can't solve it. The configuration files are correct I think,

{
  "$schema": "http://json.schemastore.org/launchsettings.json",
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:56009/",
      "sslPort": 44360
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "environmentVariables": {
        "AASPNETCORE_HTTPS_PORT": "44360",
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "Backend": {
      "commandName": "Project",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "applicationUrl": "https://localhost:44360;http://localhost:56009"
    }
  }
}
{
  "ServiceUrl": "https://localhost:44360/",
  "Logging": {
    "LogLevel": {
      "Default": "Warning"
    }
  },
  "AllowedHosts": "*"
}

from aspnetcore-app-workshop.

DamianEdwards avatar DamianEdwards commented on August 22, 2024

How are you launching the apps? Via Visual Studio or the cmd line? Can you confirm that the back-end is listening and serving the Swashbuckle (Swagger) UI via the configured HTTPS URL?

from aspnetcore-app-workshop.

BionStt avatar BionStt commented on August 22, 2024

for this challenge. i set my lauchsetting for frontend like this

"FrontEnd": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:55994", // didnt use https
"sslPort": 44374
}
}

from aspnetcore-app-workshop.

manniealfaro avatar manniealfaro commented on August 22, 2024

Hi,

Maybe it is no longer important but anyway. What was happening for me, the concatenation of the base address for the FrontEnd API service was not working. So I' was trying to access an address that did not exist.

It could be something similiar for you.

from aspnetcore-app-workshop.

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.