Hello,
I want to use a regulard Web API 2 project instead of the self-hosted project generated by the template. So i added a new web api 2 project to solution. I added the packe abp.web.api. I added the module class and the dependency
[DependsOn(
typeof(TestDataModule),
typeof(TestApplicationModule),
typeof(AbpWebMvcModule),
typeof(AbpWebApiModule))]
public class TestApiModule : AbpModule
{
public override void Initialize()
{
IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());
DynamicApiControllerBuilder
.ForAll<IApplicationService>(typeof(TestApplicationModule).Assembly, "app")
.Build();
Configuration.Modules.AbpWebApi().HttpConfiguration.Filters.Add(new HostAuthenticationFilter("Bearer"));
}
}
But when I tried to call directly a service from the application project, I have 404 not found error. When I tried to call directly a controller, I have the error : "An error occurred when trying to create a controller of type 'WhateverController'. Make sure that the controller has a parameterless public constructor."
It seems like an error related to the IoC mechanism.
Am I missing something? thanx
Hello
I have the following routing configuration:
app.config([
'$stateProvider', '$urlRouterProvider',
function ($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/');
if (abp.auth.hasPermission('Pages.Tenants')) {
$stateProvider
.state('tenants', {
url: '/tenants',
templateUrl: '/App/Main/views/tenants/index.cshtml',
menu: 'Tenants'
});
$urlRouterProvider.otherwise('/tenants');
}
$stateProvider
.state('home', {
url: '/',
templateUrl: '/App/Main/views/home/home.cshtml',
menu: 'Home'
})
.state('about', {
url: '/about',
templateUrl: '/App/Main/views/about/about.cshtml',
menu: 'About'
})
.state('suppliers', {
url: '/suppliers',
templateUrl: '/App/Main/views/suppliers/index.cshtml',
menu: 'Suppliers'
})
.state('supplierDetail', {
url: '/suppliers/:id',
templateUrl: '/App/Main/views/suppliers/detail.cshtml',
menu: 'Suppliers'
});
}
]);
But it doesn't work for the supplier detail. The folowing url doesn't work and keep redirect me to the home page : <a class="postlink" href="http://localhost:4000/#/Suppliers/809d3d83-7cbd-e511-beea-6c8814f37e8c">http://localhost:4000/#/Suppliers/809d3 ... 8814f37e8c</a>
I'm beginner in angular and I'm sure it must be something stupid, but I can't find where the problem is. There is no error message in the log or in the browser console. I don't know where to look. I've looked the angular-ui routing documentation and I didn't find something to point me to the right direction.
am I missing something in the configuration? Thanks for your help.
Hi halil,
I try to integrate the notification system into my existing explication. I have one problem : nothing get fired on the client side. this function is never called :
//Register to get notifications
commonHub.client.getNotification = function (notification) {
abp.event.trigger('abp.notifications.received', notification);
};
If I execute the directly this command on my browser console, I can catch the event: abp.event.trigger('abp.notifications.received', {message: 'something'});
So the problem is coming form commonhub. And also I noticed something weirg on the log, I get registered, but the userid and tenantid are null : A client is connected: {"ConnectionId":"671a0694-5b35-4ac3-90b1-a9c4cc831cdd","IpAddress":"::1","TenantId":null,"UserId":null,"ConnectTime":"2016-03-07T13:40:25.2281687-05:00","Properties":{}} and again to information are supposed to be fill in the class AbpCommonHub
Maybe I missed something in the configuration. There is something to do for the class abpcommonhub to work correctly on a existing project? I've already add [DependsOn(typeof(AbpWebSignalRModule))] on my web module.
Hello Halil,
There is bug with the table. If you change the item per page to 50 for example, there is a weird behavior when you click the action button after scrolling down.
I have also a question regarding Jtable, since you also developped it. Is there a way to make the table having the full height of the browser?
Thx
Hello,
I've created a separate web api project to provide public web serices to our clients. I have thoses services auto generated: AbpCache, AbpServiceProxies and ServiceProxies.
How can I disable to generation of those endpoints? I don't want them to appear on the API documentation (like swagger).
Thanks
Hello,
in the release description of abp v0.9.00 there is this section :
Notification System
Notification system has effected from multitenancy changes. We introduced a new entity, TenantNotificationInfo, to distribute notifications to tenant users. Also changed existing entities a little to support separated database approach. See Module Zero section below for details on database migrations.
But I can't find any detail in the documentation. It's possible to have more description on that? does it allow to send a notification to all tenant's users without having them to subscribe first?
Thanks
Hello Halil,
I'm also affected by this issue with ef.dynamicfilter <a class="postlink" href="https://github.com/jcachat/EntityFramework.DynamicFilters/issues/76">https://github.com/jcachat/EntityFramew ... /issues/76</a>. I had no choice than to downgrade to EF.dynamicfilter 1.4. But it force to downgrade also abp.entityframework to version 0.11.2.
But it doesn't seems to work. There is a way to use the abp v 1.0 with ef.dynamicfilter 1.4 or should I downgrade all my solution to abp 0.11.2?
Thanks