You can fix it by removing http// or https:// like this one "WebSiteRootAddress": "{TENANCY_NAME}.yourdomain.com"
Thanks for your answer. I've got CGI issue when find tenant by domain by TenantManager. Do you have any idea about this?
Which is file I can put Configuration.MultiTenancy.Resolver?
I tried this and it works :)
var tokenString = "XXX";
var hubConnection = new HubConnection("http://localhost:62114/");
hubConnection.Headers.Add("Authorization", "Bearer "+tokenString );
Yes, I passed the token via headers. Thanks for supporting.
Hi,
Thanks for your answer.
How system detect tenant who make the request? I think method GetTenancyNameOrNull cannot get tenantId in AbpSession.
You can read this article for more information. <a class="postlink" href="http://www.c-sharpcorner.com/article/enable-cross-origin-resource-sharing-cors-in-asp-net-core/">http://www.c-sharpcorner.com/article/en ... -net-core/</a>
You should Enable Cors since it is disabled by default.
Hi,
Sorry for late response. I've tried to disable transactions but got this message
Castle.MicroKernel.ComponentActivator.ComponentActivatorException: ComponentActivator: could not instantiate MyCompany.EntityFramework.MyCompanyDbContext ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.DataException: An exception occurred while initializing the database. See the InnerException for details. ---> System.Data.Entity.Core.EntityException: An exception has been raised that is likely due to a transient failure. If you are connecting to a SQL Azure database consider using SqlAzureExecutionStrategy. ---> System.Data.SqlClient.SqlException: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) ---> System.ComponentModel.Win32Exception: The specified network name is no longer available
--- End of inner exception stack trace ---
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConne...
Hi,
Thanks for your supporting. I concern about IdentityMessageService, because this class is using for two factor login, but I want to verify the phone number to make sure that user has entered correct number. If I IIdentityMessageService, where will the code be stored?