Base solution for your next web application

Activities of "naurinrr"

``Message: 
  System.InvalidOperationException : No suitable constructor was found for entity type 'HierarchyId'. The following constructors had parameters that could not be bound to properties of the entity type: 
      Cannot bind 'value' in 'HierarchyId(SqlHierarchyId value)'
  Note that only mapped properties can be bound to constructor parameters. Navigations to related entities, including references to owned types, cannot be bound.
 
Our app uses a Sql Server Type:Hierarchy Id to store hierarchical data and we have configured the options in the DbContextConfigurator.
 
public static void Configure(DbContextOptionsBuilder<DbContext> builder, string connectionString)
{
    builder.UseSqlServer(connectionString, conf => {
        conf.UseHierarchyId();
    });
}
 
public static void Configure(DbContextOptionsBuilder<DbContext> builder, DbConnection connection)
{
    builder.UseSqlServer(connection, conf => {
        conf.UseHierarchyId();
    });
}
 
Can you please advise how to change the base test project to handle this?
 

``Need some help changing the base test project. Our product has a requirement to inject the IWebHostEnvironment into CoreModule to conditionally set dependency resolution for an interface. We read the config to say whether to resolve to one type of provider or another. This works well except all the out-of-the-box tests (and new ones) are failing as I am not sure how to proceed.

Source: EditionAppService_Tests.cs line 31 Duration: 1 ms

Message:  Castle.MicroKernel.Handlers.HandlerException : Can't create component 'Project.Test.TestCoreModule' as it has dependencies to be satisfied.

'Project.Test.TestCoreModule' is waiting for the following dependencies:

  • Service 'Microsoft.AspNetCore.Hosting.IWebHostEnvironment' which was not registered.

Stack Trace:  DefaultHandler.AssertNotWaitingForDependency() DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden) DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired) AbstractHandler.Resolve(CreationContext context) DefaultKernel.ResolveComponent(IHandler handler, Type service, Arguments additionalArguments, IReleasePolicy policy, Boolean ignoreParentContext) IKernelInternal.Resolve(Type service, Arguments arguments, IReleasePolicy policy, Boolean ignoreParentContext) DefaultKernel.Resolve(Type service, Arguments arguments) WindsorContainer.Resolve(Type service) IocManager.Resolve(Type type) AbpModuleManager.CreateModules(ICollection1 moduleTypes, List1 plugInModuleTypes) AbpModuleManager.LoadAllModules() AbpModuleManager.Initialize(Type startupModule) AbpBootstrapper.Initialize() AbpIntegratedTestBase1.InitializeAbp() AbpIntegratedTestBase1.ctor(Boolean initializeAbp, IIocManager localIocManager) AppTestBase`1.ctor() line 30 AppTestBase.ctor() EditionAppService_Tests.ctor() line 22 RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)

We are aiming to upgrade our jQuery UI to version 13.1 due to security concerns arising from known vulnerabilities in the previous version. However, we've encountered an obstacle: even with the latest version of blueimp-file-upload (10.32.0), it bundles an older version (1.12) of jQuery Widget. Consequently, this forces our package manager to install an outdated version of jQuery UI. Upon inspecting the source code for blueimp-file-upload, we've found that it's no longer supported. Unfortunately, without this package, the import functionality on the index pages ceases to work. Additionally, I've examined the code for ASP.NET ZERO 13, and it's still reliant on blueimp-file-upload. Could you please advise on the appropriate course of action to resolve this issue?

Hi everyone,

I have enabled ms login succesfully but I need to get a token that can be passed to graph api and other react components I am using. Unfortunately there is no work around at the moment to providing the token and I have not been able to get the token. ExternalLoginInfo just has the isAuthenticated property.

Thanks in advance.

Hi,

Modal manager is not populating the class or id for CreateOrEditModal generated by ASPNET RAD tool. I have to set parent of a select2 to the modal but unable to use class or id as the id is random generated value. I tried passing the id in Index.js which contains the button to load the create or edit modal but still does not work.

Please help!!

Thanks

We have some existing third party functionality written in MVC + React and some projects targeting .net core 2.1 which we want to include in our aspnetzero project.

  • Can we merge the same or do you foresee any challenges?
  • Which AspNetZero template would you recommend for the above scenario?
  • Do we have enough support available if we run down any technical challenge while doing the same?

Hi,

I am implementing contextual chat where users can chat about a particular record instead of system wide chat. Please see attached for design layout.

I don't get any errors but the scripts are not working either. I understand this might be more of a jquery question than the framework but I am stuck so thought will check here. The layout already has all the scripts needed for chat loaded. The renderbody in layout will render my ViewModal page which has,

<div class="tab-pane" id="m_tabs_2_1" role="tabpanel">
                                    @Html.Partial("~/Areas/Petra/Views/Layout/_ChatBar.cshtml")
                                </div>

Any help will be appreciated.

Thanks

Hi,

I am setting up a build pipeline for continuous integration and deployment. I am getting the following errors in Nuget restore step.

`

2018-11-11T23:36:10.4801663Z ##[section]Starting: NuGet restore
D:\a\1\s\src\DemoDeploy.Application.Client\DemoDeploy.Application.Client.csproj
    Package modernhttpclient 2.4.2 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package modernhttpclient 2.4.2 supports:
      - monoandroid (MonoAndroid,Version=v0.0)
      - monotouch (MonoTouch,Version=v0.0)
      - portable-net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile259)
      - xamarinios10 (Xamarin.iOS,Version=v1.0)
    One or more packages are incompatible with .NETStandard,Version=v2.0.

Errors in D:\a\1\s\src\DemoDeploy.Core\DemoDeploy.Core.csproj
    Package Abp.AutoMapper 3.9.0 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.AutoMapper 3.9.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Abp.Zero.Ldap 3.9.0 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.Zero.Ldap 3.9.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Project DemoDeploy.Core.Shared is not compatible with net461 (.NETFramework,Version=v4.6.1). Project DemoDeploy.Core.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Microsoft.Extensions.Configuration.EnvironmentVariables 2.1.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Microsoft.Extensions.Configuration.EnvironmentVariables 2.1.1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Microsoft.Extensions.Configuration.Json 2.1.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Microsoft.Extensions.Configuration.Json 2.1.1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Abp.ZeroCore.IdentityServer4.EntityFrameworkCore 3.9.0 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.ZeroCore.IdentityServer4.EntityFrameworkCore 3.9.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Abp.MailKit 3.9.0 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.MailKit 3.9.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Microsoft.Extensions.Configuration.UserSecrets 2.1.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Microsoft.Extensions.Configuration.UserSecrets 2.1.1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Castle.Windsor.MsDependencyInjection 3.3.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Castle.Windsor.MsDependencyInjection 3.3.1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Abp.ZeroCore 3.8.3 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.ZeroCore 3.8.3 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Abp.Web.Common 3.8.3 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.Web.Common 3.8.3 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    One or more projects are incompatible with .NETFramework,Version=v4.6.1.
    One or more packages are incompatible with .NETFramework,Version=v4.6.1.

This is not the complete log. There are similar errors in all the projects. I could not fit the entire log in here. Please help!

Hi everyone,

I used the RAD tool to generate the pages for an entity in my domain. I am unable to create a new item. The database table was created correctly and all the related files seem to be there but I get the error attached.

[https://1drv.ms/u/s!AipZ--KcXtD_szlBjVOIPN-aNZ1N])

I don't know where I can find a detailed log. Please help!!

Hi,

I am getting an internal error when publishing my application to Azure. You can find the log file here,

[https://1drv.ms/f/s!ArBRDfNptp88hhxfthSGXC3jf6YA])

I don't understand why it is trying to insert null into the table.

Any help will be appreciated. Thanks!

Showing 1 to 10 of 11 entries