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.

asked 2 years ago215 views
1 Answer
0
Accepted Answer

It was a secret not being set in production.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions