Base solution for your next web application

Activities of "dirtman"

Answer

I saw that issues before posting this but I am not sure how to reference ASP zero dlls with Azure function because when I reference it and load it give error that could not load ABP 3.0 assemblies

Question

Hello do you have any sample how can we use ABP in Azure function project and use Services and Repo in it?

I'm using ABP 1.5.1 the Impersonate works for previous version.

However,it's work if I remove the {TENANCY_NAME} in WebSiteRootAddress

"App": {
    "WebSiteRootAddress": "http://admin.mylivesite.com/"
  },

anyway, I'm using a wildcard in my live site.

http://*.mylivesite.com

if I remove the slash on the end of URL, the Impersonate's link would be broken. it's would be something like this:

mytenant.mylivesite.comaccount/ImpersonateSignIn?tokenId=17405275-51ff-4151-99b3-87146e613ce2

notice the account link is merged with com.

also, the login doesnt work either if I went to mytenant.mylivesite.com/Account/Login and try to login with my tenant's user.

Yes, I'm using .net Core with Jquery

I cant impersonate my tenant with my host admin in my production site. however, the impersonate in localhost is works fine. the error on the logs.txt is

System.ApplicationException: Current tenant is different than given tenant. AbpSession.TenantId: , given tenantId: 3

WebsiteRootAddress on appsettings.json:

"App": {
    "WebSiteRootAddress": "http://{TENANCY_NAME}.mylivesite.com/"
  },

Hi Jeff, Thank you for reply.

I saw your post on another thread (#2169@40da7595-1cf3-4aa0-ac0b-7b3088e875ff). The logic looks great, I will try to implement on my project. I will post my final solution here. Thank you for sharing

I think they are support the Distributed transactions now <a class="postlink" href="https://azure.microsoft.com/en-us/blog/elastic-database-transactions-with-azure-sql-database/">https://azure.microsoft.com/en-us/blog/ ... -database/</a>

Here's the example code: <a class="postlink" href="https://docs.microsoft.com/en-us/azure/sql-database/sql-database-elastic-scale-get-started">https://docs.microsoft.com/en-us/azure/ ... et-started</a> <a class="postlink" href="https://docs.microsoft.com/en-us/azure/sql-database/sql-database-elastic-scale-use-entity-framework-applications-visual-studio">https://docs.microsoft.com/en-us/azure/ ... ual-studio</a>

Ideally, I need to modify SetTenantId so it can switch the Database. also, somehow I need to register a shard mapping when Tenant database was created.

if this can implemented it would be great, since our company using Azure Services.

I download aspnetzero on last week, so it's supposed the latest one. I know I have to use Azure Elastic Db for multiple database. but I'm stuck at this code:

UOW.Current.SetTenatnId()

since I cant modify it, I think the Elastic Db logic is supposed to write here.

Hi, I'm using Azure Database with Multiple Database. any updates of this feature? I cannot moving forward without Multiple Database on SQL Azure.

Showing 1 to 10 of 12 entries