String reference not set to an instance of a String. (Parameter 's')

0

Enter image description here Hello.

Can someone help me?

I'm getting this error only when I publish to AWS EB.

[HttpGet]
        public IActionResult Index()
        {
            string settings = "Testtttttttttt";
            return Ok(settings);
        }
  • Hi, @DevMarcelF

    Add information about your application and framework, such as version.
    Also add configuration information about Elastic Beanstalk.

    I'm assuming it's ASP.NET MVC from the logs, but I'm not sure otherwise.

已提問 2 年前檢視次數 220 次
1 個回答
0
已接受的答案

It was a secret not being set in production.

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南