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

Activities of "robertfitch"

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

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

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 3 of 3 entries