Base solution for your next web application

Activities of "alexanderpilhar"

Hi!

I'm curious whether there are any updates on this issue!?

I think I encounter the same behaviour when seeding the database! They way I do it is to first query the DB for an element with a certain ID using the following:

var result = context.TableName.Find(id)

If the result is null I create a new element with a certain Tenant-Id and insert it to the Table. Adding the new element works as expected!

But the next time I run the seed-method the result will be null and a new element will be inserted, again. I think this has something to do with the Tenant-Id. Since the Tenant-Id is not null, the query won't have any result - the host just doesn't have any permission to read a tenant's element.

I also have the same seed-method with the only difference in the Tenant-Id being null. Here everything works as expected!

Is there a way to access the DB and query elements regardless of their Tenant-Id?

Ah, i just found out how to do it myself 8-)

Using the following line before quering the DB did the trick for me:

_context.CurrentUnitOfWorkProvider.Current.DisableFilter(AbpDataFilters.MayHaveTenant);

I want to create an upload-form using ng2-file-upload but fail, getting the following error:

ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'uploader' since it isn't a known property of 'input'. ("<input type="file" ng2FileSelect [ERROR ->][uploader]="uploader"/>")

Actually, this seems to be a common problem a lot of people out there encounter when using ng2-file-upload. Most of them solve it by importing FileUploadModule into their own module. So, I tried to do the same in my main.module.ts - without any success. I still get the same error message.

Is there anything else I might be missing?

Hi @ismcagdas,

FileUploadModule has already been imported to admin.module.ts and is used for change-profile-picture-modal.component as well as tenant-settings.component. I basically try to do something very similar to this for main.module.ts but just can't get it to work properly.

Oh, I just started the project the first time today and now everything works as expected. So it seems there was some sort of caching problem - though I did make sure to clear the cache a couple of times yesterday... Well, next time I will restart the whole browser just to be sure!

Hi!

I want to use bootstrap-tabdrop ([https://github.com/jmschabdach/bootstrap-tabdrop])) for a tab-set (Core, Angular). I added the library to src/assets/bootstrap-tabdrop/... and also added entries to typings.d.ts and .angular-cli.json but no success... I have to admit I don't really know how to add a third-party library correctly - so, I just had a look at how it's done for bootstrap-datetimepicker and tried to reproduce that. But I might be missing something.

Any tips on how to make this work?

Thank you!

Aaaah, I did it : )

I was totally right with how I added the tabdrop-library to the angular project - I just did the .tabdrop(); on the wrong element (has to be done on the ul-element instead of the containing tabset-element) ... my bad!

Cheers!

I just finished the upgrade from 4.6.1 to 5.0.2 - and encountered the same exception on database-update. Since it was mentioned that this exception occurs because of solution's name (e.g. when it has been renamed) I had a closer look at the solution file. After the upgrade there were two solution files in my project Folder, the old one named Company.ProjectName and the new one named Company.ProjectName.All. So I tried to simply copy the content of the newer solution file into the old solution file, renaming every occurence of Company.ProjectName.All to Company.ProjectName and use this solution file instead of the new one. Still, the exception was thrown. Then I recognized, that WebContentDirectoryFolder.CalculateContentRootFolder() was looking for a solution file named Company.ProjectName.Web.sln - but that didn't exist anywere in my project folder. So I changed that string to look for Company.ProjectName.sln and the exception did not occur anymore. Strangely though, the naked update-project does not have any Problems with Company.ProjectName.Web.sln, only after I merged it with my development-branch the problem occured - so this made me wonder even more. I had a look into the update-project folder and there it was: the Company.ProjectName.Web.sln solution file! I copied the file to my development-branch folder, and nowWebContentDirectoryFolder.CalculateContentRootFolder() can find Company.ProjectName.Web.sln without problems. Long story short: Version Control had no idea of the missing solution file. All's well that ends well.

Hi,

<cite>ismcagdas: </cite> Hi,

Normally adding second app's url here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/appsettings.json#L14">https://github.com/aspnetzero/aspnet-ze ... s.json#L14</a> should allow second app to access host project.

But host app is designed to contain only one ClientRootAddress and even if you access more than one app to host, some functions will work according to this value. For example password reset and email actiovation email will contain the value for ClientRootAddress.

Thanks.

Is there a limit to the number of client applications we can create that way? Or can we create as many as we need?

The scenario I'm talking about is the following:

Main AngularUI project for administrative purpose (host and tenant/client) and the creation of content (tenant/client) Copy of AngularUI project for some public stuff (e.g. a website that is used to publish some tenant-created content to be viewed by public) without any authentication/authorization needs Copy of AngularUI project for some other public stuff (e.g. another website that is used for some special purpose, like digital/public signage using tenant-created content) also without any need for authentication/authorization

Is it okay with licensing?

Thanks

Hi @ismcagdas,

great to hear that :D

Yes, they are all parts of the same project - I just want to split up the client-side by use-case to keep the project simple!

Thanks a lot!

Showing 1 to 10 of 224 entries