Base solution for your next web application

Activities of "TomLeonard"

I am having difficulties in using package manager database migration.
I am using VS20015 RC1 , SQL Express Any help is appreciated. I will try to create the db first and then try again.

  1. in non verbose mode , I see this error PM> Update-Database Exception calling "LoadFrom" with "1" argument(s): "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters." At C:\inetpub\wwwroot\PerfectBI\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:780 char:5
  • $utilityAssembly = [System.Reflection.Assembly]::LoadFrom((Join-P ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : PathTooLongException

You cannot call a method on a null-valued expression. At C:\inetpub\wwwroot\PerfectBI\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:781 char:5

  • $dispatcher = $utilityAssembly.CreateInstance(
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Exception calling "CreateInstanceFrom" with "8" argument(s): "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters." At C:\inetpub\wwwroot\PerfectBI\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:809 char:5

  • $domain.CreateInstanceFrom(
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : PathTooLongException
  1. In verbose mode, I see this....

PM> Update-Database -ConnectionString "Server=DEV04\SQLEXPRESS; Database=PerfectBI; User=sa;Password=*****" -ConnectionProviderName "System.Data.SqlClient" -Verbose -ProjectName "PerfectBI.EntityFramework" Using StartUp project 'PerfectBI.Tests'. Exception calling "LoadFrom" with "1" argument(s): "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters." At C:\inetpub\wwwroot\PerfectBI\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:780 char:5

  • $utilityAssembly = [System.Reflection.Assembly]::LoadFrom((Join-P ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : PathTooLongException

You cannot call a method on a null-valued expression. At C:\inetpub\wwwroot\PerfectBI\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:781 char:5

  • $dispatcher = $utilityAssembly.CreateInstance(
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Exception calling "CreateInstanceFrom" with "8" argument(s): "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters." At C:\inetpub\wwwroot\PerfectBI\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:809 char:5

  • $domain.CreateInstanceFrom(
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : PathTooLongException

Ignore this issue please. I went over to another dev machine and it worked fine. Issue resolved, problem with that VS instance. Thanks !

Question

Hello

could you help with the unit tests issue it works in product and unit tests:

var tags = await _tagRepository.GetAll().ToListAsync();
var tagsDto = ObjectMapper.Map<List<TagDto>>(tags);

but if I want to optimize for projections like this

var tagsDto = await _tagRepository.GetAll().ProjectTo<TagDto>().ToListAsync();

it asks for IConfigurationProvider in unit tests (but ok in product).

Mapper not initialized. Call Initialize with appropriate configuration. If you are trying to use mapper instances through a container or otherwise, make sure you do not have any calls to the static Mapper.Map methods, and if you're using ProjectTo or UseAsDataSource extension methods, make sure you pass in the appropriate IConfigurationProvider instance.

Could you advise how to setup it in tests.

Thanks!

Thanks!

We are using Angular and .NET Core version and would like to integrate Identity Server 4.0. We see in the code ; /* We can not use app.UseIdentityServerAuthentication because IdentityServer4.AccessTokenValidation * is not ported to asp.net core 2.0 yet. See issue: <a class="postlink" href="https://github.com/IdentityServer/IdentityServer4/issues/1055">https://github.com/IdentityServer/Ident ... ssues/1055</a> * Once it's ported, add IdentityServer4.AccessTokenValidation to Web.Core project and enable following lines: */

ID 4 seems to be ported to Core 2.0 . Any timeline or estimate on release for APSNETZero CORE/Angular version to support this ? Thanks in advanced.

Thanks very much for the prompt reply. The link you sent gives me a 404 , but no matter. I will check it out.

Thanks! Could you also specify when or in what version Identity Server IsEnabled will be set to TRUE again? It looks like Identity Server api has changed now and requires additional integration efforts. (I would like to use your implementation in order to minimize the merging in the future)

I have downloaded 4.6.1 Core + Angular a couple of minutes ago. Looks like Web.Host has "IdentityServer": { "IsEnabled": "false",

also app.UseIdentityServerAuthentication is commented.

could you check?

Thanks! Great news.

I see v5.0.0 is avilable. So should I wait for v5.0.1 in this case?

ok, v5.0.2 is available so I will check here. Thanks.

Showing 1 to 10 of 31 entries