Invalid license from web.config but ok from code

Hi,

My license ID 1950 for ServiceStack.OrmLite assembly version: 4.0.12 throws invalid license. This only happens if i register it in appSettings section like so:

<appSettings><add  key="servicestack:license" value="1950-******==" /> </appSettings>

If i register the license from code, everything works ok.

System.TypeInitializationException: The type initializer for 'ServiceStack.LicenseUtils' threw an exception. ---> ServiceStack.LicenseException: This license is invalid. Please see servicestack.net or contact team@servicestack.net for more details. The id for this license is '1950'

at ServiceStack.LicenseUtils.RegisterLicense(String licenseKeyText)
— End of inner exception stack trace —
at ServiceStack.LicenseUtils.AssertValidUsage(LicenseFeature feature, QuotaType quotaType, Int32 count)
at ServiceStack.OrmLite.OrmLiteConfigExtensions.GetModelDefinition(Type modelType)
at ServiceStack.OrmLite.OrmLiteDialectProviderBase1.PrepareParameterizedInsertStatement[T](IDbCommand cmd, ICollection1 insertFields)
at ServiceStack.OrmLite.OrmLiteWriteExtensions.Insert[T](IDbCommand dbCmd, T obj, Boolean selectIdentity)
at ServiceStack.OrmLite.ReadConnectionExtensions.Exec[T](IDbConnection dbConn, Func`2 filter)

I’ve just tested this with your key locally and it’s working without error. Can you upgrade to the latest version of ServiceStack and double-check that you’re using the correct license key text.