Open Closed

Auth Server Error when deploying to IIS on Windows Server #4355


User avatar
0
akifakinci created

When we publish and publish the auth server, we get the following error. All we know about the error is "access denied". What is it that is blocked when trying to access it? We can't get details about it. We looked at your documents and did not find anything special. Also, what is the path it gives on line 20? this is my local location. Is there any description of this location?

Error Images: https://prnt.sc/bOFW3C4gXOen https://prnt.sc/4IurcC5EgAS- If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v7.0.0
  • UI type: / MVC /
  • DB provider: EF Core /
  • Tiered (MVC) or Identity Server Separated (Angular): yes /
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    HI

    AddDevelopmentEncryptionAndSigningCertificate cannot be used in applications deployed on IIS or Azure App Service: trying to use them on IIS or Azure App Service will result in an exception being thrown at runtime (unless the application pool is configured to load a user profile). To avoid that, consider creating self-signed certificates and storing them in the X.509 certificates store of the host machine(s). Please refer to: https://documentation.openiddict.com/configuration/encryption-and-signing-credentials.html#registering-a-development-certificate

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35