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

Activities of "robertfitch"

Hi,

Thanks for the reference to eventlog.xml, which I wasn't aware of. There, I was able to see the exception details. I am using NetMQ to send events to other processes and apparently there is a problem loading the NetMQ assembly, so I will look into that.

Cheers!

Hello forum,

My site works fine locally. When I publish to Azure, I get Error 502. The log file looks like this: DEBUG 2016-07-11 11:22:37,368 [1 ] Abp.Modules.AbpModuleManager - Loading Abp modules... DEBUG 2016-07-11 11:22:37,822 [1 ] Abp.Modules.AbpModuleManager - Found 15 ABP modules in total. DEBUG 2016-07-11 11:22:37,822 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Haufe.CosmosMoon.Web.CosmosMoonWebModule, Haufe.CosmosMoon.Web, Version=1.7.1.1, Culture=neutral, PublicKeyToken=null DEBUG 2016-07-11 11:22:37,822 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Web.AbpWebModule, Abp.Web, Version=0.7.7.2, Culture=neutral, PublicKeyToken=null DEBUG 2016-07-11 11:22:37,837 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AbpKernelModule, Abp, Version=0.7.7.2, Culture=neutral, PublicKeyToken=null DEBUG 2016-07-11 11:22:37,837 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Web.Mvc.AbpWebMvcModule, Abp.Web.Mvc, Version=0.7.7.2, Culture=neutral, PublicKeyToken=null DEBUG 2016-07-11 11:22:37,837 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Haufe.CosmosMoon.CosmosMoonDataModule, Haufe.CosmosMoon.EntityFramework, Version=1.7.1.1, Culture=neutral, PublicKeyToken=null DEBUG 2016-07-11 11:22:37,837 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.EntityFramework.AbpZeroEntityFrameworkModule, Abp.Zero.EntityFramework, Version=0.7.7.0, Culture=neutral, PublicKeyToken=null DEBUG 2016-07-11 11:22:37,837 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.AbpZeroCoreModule, Abp.Zero, Version=0.7.7.0, Culture=neutral, PublicKeyToken=null DEBUG 2016-07-11 11:22:37,837 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.EntityFramework.AbpEntityFrameworkModule, Abp.EntityFramework, Version=0.7.7.2, Culture=neutral, PublicKeyToken=null DEBUG 2016-07-11 11:22:37,837 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Haufe.CosmosMoon.CosmosMoonCoreModule, Haufe.CosmosMoon.Core, Version=1.7.1.1, Culture=neutral, PublicKeyToken=null DEBUG 2016-07-11 11:22:37,837 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.Ldap.AbpZeroLdapModule, Abp.Zero.Ldap, Version=0.7.7.0, Culture=neutral, PublicKeyToken=null DEBUG 2016-07-11 11:22:37,837 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Haufe.CosmosMoon.CosmosMoonApplicationModule, Haufe.CosmosMoon.Application, Version=1.7.1.1, Culture=neutral, PublicKeyToken=null DEBUG 2016-07-11 11:22:37,837 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AutoMapper.AbpAutoMapperModule, Abp.AutoMapper, Version=0.7.7.2, Culture=neutral, PublicKeyToken=null DEBUG 2016-07-11 11:22:37,837 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Haufe.CosmosMoon.WebApi.CosmosMoonWebApiModule, Haufe.CosmosMoon.WebApi, Version=1.7.1.1, Culture=neutral, PublicKeyToken=null DEBUG 2016-07-11 11:22:37,853 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.WebApi.OData.AbpWebApiODataModule, Abp.Web.Api.OData, Version=0.7.8.0, Culture=neutral, PublicKeyToken=null DEBUG 2016-07-11 11:22:37,853 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.WebApi.AbpWebApiModule, Abp.Web.Api, Version=0.7.7.2, Culture=neutral, PublicKeyToken=null DEBUG 2016-07-11 11:22:37,993 [1 ] Abp.Modules.AbpModuleManager - 15 modules loaded. DEBUG 2016-07-11 11:22:38,103 [1 ] o.Configuration.LanguageManagementConfig - Converted Abp (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource DEBUG 2016-07-11 11:22:38,103 [1 ] o.Configuration.LanguageManagementConfig - Converted AbpWeb (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource DEBUG 2016-07-11 11:22:38,103 [1 ] o.Configuration.LanguageManagementConfig - Converted AbpZero (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource DEBUG 2016-07-11 11:22:38,103 [1 ] o.Configuration.LanguageManagementConfig - Converted CosmosMoon (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource

Then it stops! Normally it would continue after a couple of seconds with DEBUG 2016-07-11 13:37:35,405 [1 ] Abp.Localization.LocalizationManager - Initializing 4 localization sources. (etc.)

I can see from my own Tracing that PreInitialize() is successfully called on all 5 modules, but Initialize() is never reached.

Any ideas? Thanks and regards, Robert

Please note that I am referring to service interfaces in the Application project, not controllers in the WebApi project.

I am still having no success. Inserting: Configuration.Modules.AbpWebApi().HttpConfiguration.MapHttpAttributeRoutes(); as mentioned above did not help.

Maybe this information is useful: It is an ASP.NET Zero application which we purchased from you.

We would like the services we add to become more REST-oriented, which is why the Route-Attribute is important to us.

Thanks and regards, Robert

oops, ignore my comment about camelCase. Of course it is the javascript-method which gets renamed to camelCase, not the url path!

Thanks, but this is not working yet. The only place I find which has access to HttpConfiguration is in Initialize() of the WebApiModule. I have added "MapHttpAttributeRoutes()" there:

        Configuration.Modules.AbpWebApi().HttpConfiguration.MapHttpAttributeRoutes();

        //Automatically creates Web API controllers for all application services of the application
        DynamicApiControllerBuilder
            .ForAll<IApplicationService>(typeof(CosmosMoonApplicationModule).Assembly, "app")
            .Build();

But the api (using e.g. Postman) still only responds to "/GetContacts", not "/get_contacts". I also see this reflected in the generated service proxy:

serviceNamespace.getContacts = function(ajaxParams) {
    return abp.ajax($.extend({
        url: abp.appPath + 'api/services/app/contact/GetContacts',
        type: 'GET',
        data: {}
    }, ajaxParams));
};

Note also that there is no camelCase conversion as claimed. Is there a better place to call "MapHttpAttributeRoutes()" ?

thanks...

Hi,

I am using an AppService dynamic Web Api, and can also specify the HttpGet attribute in the interface. I am wondering if there is (or will be) any support for the Route attribute as well, like this:

public interface IContactAppService : IApplicationService
{
    [HttpGet]
    [Route("get_contacts")]
    Task<List<ContactListDto>> GetContacts();

}

If not, is there another way to specify a custom route e.g. using the DynamicApiControllerBuilder? Thanks and regards, Robert

Thanks for your quick help, the workaround is now running! regards

Question

Hi, I purchased an ASP.NET Zero project and have followed these instructions: <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/OData-Integration">http://aspnetboilerplate.com/Pages/Docu ... ntegration</a> to try OData with an entity ("Contact") I created, but when I try: GET: <a class="postlink" href="https://localhost:44305/odata/Contacts">https://localhost:44305/odata/Contacts</a> I only get the standard response "oops you're lost".

So I am wondering if the RouteConfig included in the ASP.NET Zero Web module applications is interfering with the automatic OData registration in the WebApi module.

Here is my Controller:

public class ContactsController : AbpODataEntityController&lt;Contact, Guid&gt;
{
    public ContactsController(IRepository&lt;Contact, Guid&gt; repository)
    : base(repository)
    {
    }
}

And here is my WebApi module:

/// &lt;summary&gt;
/// Web API layer of the application.
/// &lt;/summary&gt;
[DependsOn(typeof(AbpWebApiODataModule), typeof(CosmosMoonApplicationModule))]
public class CosmosMoonWebApiModule : AbpModule
{
    public override void PreInitialize()
    {
        var builder = Configuration.Modules.AbpWebApiOData().ODataModelBuilder;

        //Configure OData entities here...
        builder.EntitySet&lt;Contact&gt;("Contacts");
    }

    public override void Initialize()
    {
        IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());

        //Automatically creates Web API controllers for all application services of the application
        DynamicApiControllerBuilder
            .ForAll&lt;IApplicationService&gt;(typeof(CosmosMoonApplicationModule).Assembly, "app")
            .Build();

        Configuration.Modules.AbpWebApi().HttpConfiguration.Filters.Add(new HostAuthenticationFilter("Bearer"));
    }
    public override void PostInitialize()
    {
        Configuration.Modules.AbpWebApi().HttpConfiguration.EnsureInitialized();
    }
}

Any ideas? Thank you, RobertFitch

Showing 1 to 9 of 9 entries