Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "andry3ag"

Hi Team,

We have recently downloaded the ASP.Net Core 3x with Angular 9.x (version 8.6). I can see from documentation to add URL to the "CorsOrigins" on the appsetting.json. Is there a way to disable Cors Origins all together? Or maybe use wildcards? Should I just replace all the URls under the "CorsOrigins" on appsetting.json with "*"? Would that work? If not how can i disable the Cors Origins?

Thanks

Hi Team,

We have recently downloaded the ASP.Net Core 3x with Angular 9.x (version 8.6). I have been looking into adding Azure Devops Pipeline so when we push changes to source control it automatically runs a build and executes the units tested I created. I got it to work using pipeline yaml for just doing the builds after submission but having issues with executing the tests.I have followed the documnetation to create tests for my back end services (https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Developing-Step-By-Step-Angular-Creating-Unit-Tests-for-Person-Application-Service). I can see the tests that I created are submitted to Azure Devops under the [Project Name].Tests but it seems that is not executing the added test. I cant even see the test under VSTest section on the Azure Pipeline as seen by screen shot below. On purpose I have made the test fail so I can verify the flow working but its actualy passing on Azure Pipeline. The test is failing on my local machine when I execute the test. On Azure Pipeline it seems that its not even running the test. I can see that you have documentation for ASP.NET ZERO Core MVC (https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Setting-Up-an-Azure-Pipeline-Mvc-Core) but I dont see documentation for ASP.NET Core and Angular. Can you provide some steps I need to follow or some documentation so I can configure the Azure Pipeline?

Question

We have recently downloaded the ASP.Net Core 3x with Angular 9.x (version 8.6). We are using multi tenancy and I noticed once we log into a tenant there is an option under " Administration " and "Settings" to upload logo. The problem is uploading a logo on the host. When I go under the " Administration " and "Settings" I no longer see that option. Is there any way to upload a logo using the UI? Or it must be hard coded by modifying the angular code? Thanks

Hi Team,

We have recently downloaded the ASP.Net Core 3x with Anguylar 9.x (version 8.6). I want to create a table B which has 2 foreign keys to same ID(primary key) attribute on table A. Both foreign keyscannot be null so when I try to run the update database command I get error about "multiple cascade paths". I have looked and figured out that I need to disable cascading delete with Fluent API for both tables. I have found some examples for entity framework core but I never was able to use any of examples. Can you please share the code for disabling cascade delete for Table A for example?

Thanks

Hi team,

We have recently downloaded the ASP.Net Core 3x with Anguylar 9.x (version 8.6). We are trying to change the template for the password reset email template. I have gone throught the whole application and changed all the values in the project.xml file and all the cshtml files. When we downloaded the project the name was "RishSmithDemo", so all the names used in all the pages are inhereted from that name. I have changed all the *.cshtml files which contains "RishSmithDemo" to new name "Stock Savvy Demo". As you can see from screen shot below (circled in red). There is still two names which are "2020 © RiskSmithDemo." and "RiskSmithDemo" next to image on the email template. Can you please tell me which file in the project I need to change in order to change these two instances on the password reset email?

Thanks

Hi Team,

We have recently downloaded the ASP.Net Core 3x with Anguylar 9.x (version 8.6). We are not using the angular for our front end. We are adding some feature for IOS that requires us to return a JSON file when user navigates to "back-end site URL/apple-app-site-association" . The URL has too exaclty match the given URL. I know I could add new app service endpoint under the Application project but that will cause the URL to have "/api/services/app/" before the endpoint. I was wondring what is the best way to accomplish this. I was thinking maybe I should add a new model-view controller similar to the "HomeController" under the Web.Host project and return the view with the JSON file in it. Is this the cleanest way to approach this problem?

Thanks

We have recently downloaded the ASP.Net Core 3x with Anguylar 9.x (version 8.6). And we have setup social login for google and microsoft and we were wondering if we can use apple for social login? In the documentation below I dont see anything. Can you please maybe guide us or overview steps we need to take to implement it?

https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Features-Angular-Social-Logins

We have recently downloaded the ASP.Net Core 3x with Anguylar 9.x (version 8.6). I have tried to add the [index] entity attrivute annotations but its asking me to install entity framework package. I dont wnna install anything, inase it breaks my project. I followed the following documentation on adding index for entity framework code first : https://docs.microsoft.com/en-us/ef/ef6/modeling/code-first/data-annotations

Please let me know what I need to do, in order to add "non-unique, non-clustered" index to my entity attribute under my .core project.

Thanks

Hi Team,

We have recently downloaded the ASP.Net Core 3x with Anguylar 9.x (version 8.6). I have added some custom DTO mapping under the CustomDtoMapper.cs under the "Application" project. I was wondering if its possible for me to set mapper configuration dynamically inside the services that I create. For example based on the input parameter inside the api service, I set configuration for auto mapper. So if value is 2 I map certain attributes from source to destination. And if the value is 3 I do another mapping for source and destination attributes.

Do I have to inject "IMapper" into my application service?

Thanks

Hi Team,

We have recently downloaded the ASP.Net Core 3x with Anguylar 9.x (version 8.6). I have triggered the "/api/services/app/Account/SendEmailActivationLink" and I have recieved the activation email successfully but when I click the "Verify" button, I get navigated to a page with 404 on screen as shown by screen shot below. I have also tried to copy paste the link below in the email as suggested (screen shot below), and still get to same error. When I take a closer look in the URL (https://siteURL.net/account/confirm-email?c=JY+3rCP5yhTFOd9YESWb7IPOfbPn+x6MRjbS6i6em6hNo24hzRahskSAN2D/1g+EVw6r5DTQ9CXLG9ajnjeUpfh82GFDhBb8f+UWjuswR5k=)

I can see that its trying to hit the "confirm-email" endpoint under the account controller, however I do not see that mehod in the back-end. The only end-point that makes sense under account controller is "/api/services/app/Account/ActivateEmail" where its takes UserID,ComfirmationCode and C. But if I wanna hit the "/api/services/app/Account/ActivateEmail" endpoint what confirmation code do I use in request body? I do not see any confirmation code in the email. In the URL send in email I can see that the string paramater C is passed. Do I need to use that string? Decode/Encode?

I also have to mention that were still using the demo project to do our dev work. Not sure if that has a effect on anything. Can you please let me know what I need to do?

Thanks

Showing 1 to 10 of 31 entries