Skip to content
Docs Try Aspire

MissingParameterValueException

Class net10.0
📦 Aspire.Hosting v13.1.2
The exception that is thrown when a parameter resource cannot be initialized because its value is missing or cannot be resolved.
namespace Aspire.Hosting;
public class MissingParameterValueException
: Aspire.Hosting.DistributedApplicationException
{
// ...
}
This exception is typically thrown when:
  • A parameter value is not provided in configuration and has no default value
  • A parameter's value callback throws an exception during execution
  • A parameter's value cannot be retrieved from the configured source (e.g., user secrets, environment variables)