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

Activities of "chauey"

What technology and template engine for the RadTool use? is it string concatenation, template literals, or T4 templates, or something else?

Thanks Aaron, the 2nd part seems to show the $metadata correctly now.

However, for the 1st part, I believe still not working. I added the [RemoteService] attribute to an OData controller in my Web.Core project, but don't see any differences. Where is the OData Swagger supposed to show up? Along with the main Swagger doc/ui? Not sure I want it to be in the same doc in the future yet. but that's where I'm looking. Not sure how this is all connected yet. Thanks.

... [RemoteService] public class CodeLanguagesController : AbpODataEntityController<CodeLanguage>, ITransientDependency { ...

I think OData in Core works now (<a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/master/doc/WebSite/OData-AspNetCore-Integration.md">https://github.com/aspnetboilerplate/as ... gration.md</a>), but I don't know how to get a Swagger/OAI doc for it. Anyone have sample code for that?

My Job create and trigger in startup method of Web.Host project.

And Job class with execute method is in Application Project.

Hello,

<ins>1)"Have you added PaymentCardDetail entity to DbContext ? I think your original problem might be related to that."</ins>

Yes ,

public virtual IDbSet<PaymentCardDetail> PaymentCardDetails { get; set; }

<ins>2) "Also do you use this IPaymentProcessAppService in a different module or is it in your WebModule or AppModule ?</ins>

No, PaymentProcessAppService is working fine when call it from my angular app, there is no problem with the service. I just want to resolve the dependency to call it directly in quartz Job Execute method.

I did my quartz with task by directly accessing to dbset property of entity, but i think that is not the proper way to do that as per your architecture.

Thank You

Below is the Interface of my AppService along with class that is implementing the interface

public interface IPaymentProcessAppService : IApplicationService
    {
        Task<CommonTypeResult> SomeFunc();
   }

 public class PaymentProcessAppService : NcgAppServiceBase, IPaymentProcessAppService
 {
        private readonly IRepository<PaymentCardDetail> _paymentCardDetailRepository;
        private readonly IRepository<StripeTransaction> _stripeTransactionRepository;
        private readonly IStripper stripper;
        private int _tenantID, _userID;
        private CommonTypeResult _commonTypeResult = null;
        public PaymentProcessAppService(IRepository<PaymentCardDetail> paymentCardDetailRepository, 
        IRepository<StripeTransaction> stripeTransactionRepository)
        {
            stripper = new Stripper();
            _paymentCardDetailRepository = paymentCardDetailRepository;
            _stripeTransactionRepository = stripeTransactionRepository;
        }

        public async Task<CommonTypeResult> SomeFunc()
        {
            // some code
        }
}

Thanks for your answer. The appService doesn't have authorization and validation.As per your documentation, if we use the proper naming conventions with post-fix of "AppService" and inherit IApplicationService then we don't need to register the AppService, So i think i don't need to register my service for DI.

As you told me, I tried with the IocManager.Instance.Resolve<IPaymentProcessAppService>().

but i am failed to initialize the implementation class of IPaymentProcessAppService

<ins>following is my code</ins>

public void Execute(IJobExecutionContext context)
    {
           var obj = IocManager.Instance.Resolve<IPaymentProcessAppService>();
    }

<ins>Exception:</ins>

Message: Castle.MicroKernel.ComponentNotFoundException: No component for supporting the service Ncg.Payment.IPaymentProcessAppService was found

Inner Exception: null

Stack Trace: at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy) at Castle.MicroKernel.DefaultKernel.Resolve(Type service, IDictionary arguments) at Castle.Windsor.WindsorContainer.ResolveT at Abp.Dependency.IocManager.ResolveT at Ncg.NcgQuartz.NcgJob.Execute(IJobExecutionContext context) at Quartz.Core.JobRunShell.Run()

I hosted Core API on service.abc.com without wildcard and Angular App hosted on {Tenant_Name}.abc.com with wildcard.

As per your provided configuration, Tenant name is also include in "ServerRootAddress": "http://{TENANCY_NAME}.service.abc.com"

do we also need wildcard for the Core API ?

Please give me the solution for this I have only on wildcard and IP server, how can i implement multi tenancy ?

I followed the same steps to deploy Angular 2 app on my local IIS. I hosted Core API on my localhost & it is working fine. Next step for me was to publish Angular 2 on local IIS.

  1. I ran the Angular CLI command "ng build -prod".
  2. After that i got the "dist" folder in Angular Project folder.
  3. Then i place the web.config file in dist folder with your give code of web.config.
  4. I also made changes to appconfig.json, give API and Web app address over there. 5)Then i add website in IIS and give physical path of dist folder.

When i browse the web app i got this error "HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid"

Please help me i need to publish it

I followed the same steps to deploy Angular 2 app on my local IIS. I hosted Core API on my localhost & it is working fine. Next step for me was to publish Angular 2 on local IIS.

  1. I ran the Angular CLI command "ng build -prod".
  2. After that i got the "dist" folder in Angular Project folder.
  3. Then i place the web.config file in dist folder with your give code of web.config.
  4. I also made changes to appconfig.json, give API and Web app address over there. 5)Then i add website in IIS and give physical path of dist folder.

When i browse the web app i got this error "HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid."

Please help me i need to publish it

Showing 11 to 20 of 23 entries