Base solution for your next web application

Activities of "rafalpiotrowski"

Can you explain what to do with the License Checker?

FATAL 2017-12-04 12:49:12,015 [3    ] oCore.Licensing.AspNetZeroLicenseChecker - Failed to validate project name. Should not rename a project downloaded from aspnetzero.com. You can contact to [email protected] if you are using a licensed product.
StartIndex cannot be less than zero.
Parameter name: startIndex
System.ArgumentOutOfRangeException: StartIndex cannot be less than zero.
Parameter name: startIndex
   at System.String.Substring(Int32 startIndex, Int32 length)
   at Abp.AspNetZeroCore.Licensing.AspNetZeroLicenseChecker.INCPSWyI6EpS0p68KV(Object , Int32 , Int32 )
   at Abp.AspNetZeroCore.Licensing.AspNetZeroLicenseChecker.GetHashedProjectName()
   at Abp.AspNetZeroCore.Licensing.AspNetZeroLicenseChecker.IsProjectNameValid()
   at Abp.AspNetZeroCore.Licensing.AspNetZeroLicenseChecker.<CheckInternal>d__9.MoveNext()

What is this?

FATAL 2017-12-04 12:49:12,015 [3    ] oCore.Licensing.AspNetZeroLicenseChecker - Failed to validate project name. Should not rename a project downloaded from aspnetzero.com. You can contact to [email protected] if you are using a licensed product.
StartIndex cannot be less than zero.
Parameter name: startIndex
System.ArgumentOutOfRangeException: StartIndex cannot be less than zero.
Parameter name: startIndex
   at System.String.Substring(Int32 startIndex, Int32 length)
   at Abp.AspNetZeroCore.Licensing.AspNetZeroLicenseChecker.INCPSWyI6EpS0p68KV(Object , Int32 , Int32 )
   at Abp.AspNetZeroCore.Licensing.AspNetZeroLicenseChecker.GetHashedProjectName()
   at Abp.AspNetZeroCore.Licensing.AspNetZeroLicenseChecker.IsProjectNameValid()
   at Abp.AspNetZeroCore.Licensing.AspNetZeroLicenseChecker.<CheckInternal>d__9.MoveNext()

Tried! did not solve the problem!!!

other Web project starts in debugging!

It does not show any errors

Sometimes it quits and retuns to normal view, sometimes it hangs on Chrome showing that the applications is starting...

I am doing VS Repair to see if this helps.

Host/Mvc/Public all of them failes to start in debug mode under IISExpress

Any idea why? This happens after upgrading to latest version!

Hi, After merging with the latest version I am no longer able to start Migrator

Castle.MicroKernel.Handlers.HandlerException occurred
  HResult=0x80131500
  Message=Can't create component 'MyCompanyName.AbpZeroTemplate.EntityFrameworkCore.AbpZeroTemplateEntityFrameworkCoreModule' as it has dependencies to be satisfied.

'MyCompanyName.AbpZeroTemplate.EntityFrameworkCore.AbpZeroTemplateEntityFrameworkCoreModule' is waiting for the following dependencies:
- Service 'Microsoft.AspNetCore.Hosting.IHostingEnvironment' which was not registered.

  Source=<Cannot evaluate the exception source>
  StackTrace:
   at Castle.MicroKernel.Handlers.DefaultHandler.AssertNotWaitingForDependency()
   at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden)
   at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired)
   at Castle.MicroKernel.Resolvers.DefaultDependencyResolver.Resolve(CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency)
   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateConstructorArguments(ConstructorCandidate constructor, CreationContext context)
   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(CreationContext context)
   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context)
   at Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context, Burden burden)
   at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.CreateInstance(CreationContext context, Boolean trackedExternally)
   at Castle.MicroKernel.Lifestyle.SingletonLifestyleManager.Resolve(CreationContext context, IReleasePolicy releasePolicy)
   at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden)
   at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired)
   at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments, IReleasePolicy policy)
   at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy)
   at Abp.Modules.AbpModuleManager.CreateModules(ICollection`1 moduleTypes, List`1 plugInModuleTypes)
   at Abp.Modules.AbpModuleManager.LoadAllModules()
   at Abp.AbpBootstrapper.Initialize()
   at MyCompanyName.AbpZeroTemplate.Migrator.Program.Main(String[] args) in C:\GitRepo\aspnet-core\src\MyCompanyName.AbpZeroTemplate.Migrator\Program.cs:line 25

StackTrace:

at Castle.MicroKernel.Handlers.DefaultHandler.AssertNotWaitingForDependency()
   at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden)
   at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired)
   at Castle.MicroKernel.Resolvers.DefaultDependencyResolver.Resolve(CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency)
   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateConstructorArguments(ConstructorCandidate constructor, CreationContext context)
   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(CreationContext context)
   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context)
   at Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context, Burden burden)
   at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.CreateInstance(CreationContext context, Boolean trackedExternally)
   at Castle.MicroKernel.Lifestyle.SingletonLifestyleManager.Resolve(CreationContext context, IReleasePolicy releasePolicy)
   at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden)
   at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired)
   at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments, IReleasePolicy policy)
   at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy)
   at Abp.Modules.AbpModuleManager.CreateModules(ICollection`1 moduleTypes, List`1 plugInModuleTypes) in D:\Github\aspnetboilerplate\src\Abp\Modules\AbpModuleManager.cs:line 103
   at Abp.Modules.AbpModuleManager.LoadAllModules() in D:\Github\aspnetboilerplate\src\Abp\Modules\AbpModuleManager.cs:line 74
   at Abp.AbpBootstrapper.Initialize() in D:\Github\aspnetboilerplate\src\Abp\AbpBootstrapper.cs:line 152
   at MyCompanyName.AbpZeroTemplate.Migrator.Program.Main(String[] args) in C:\GitRepo\aspnet-core\src\MyCompanyName.AbpZeroTemplate.Migrator\Program.cs:line 25

I added this code

bootstrapper.IocManager.IocContainer.Kernel.DependencyResolving += (componentModel, dependencyModel, dependency) => 
                {
                    Console.WriteLine("dependency: " + dependency?.ToString());
                };

in

Program.cs of MyCompanyName.AbpZeroTemplate.Migrator project

from this I gatther that it fails when trying to resolve dependency: {log4net.Repository.Hierarchy.DefaultLoggerFactory+LoggerImpl} dependency Model: {Dependency 'Logger' type 'Castle.Core.Logging.ILogger'}

looking into the project dependencies I can see NuGet packages with Castle Log4Net itp

Any idea?

got it fixed

indeed missing import of LoginService

In which module???

Where can I find more details on the error?

I merged my working version with latest dev repo and there was no merging conflicts

Hi, I donwloaded latest version of 'dev' from git building solution works running IISExpress works npm start works without errors

but when I run <a class="postlink" href="http://localhost:4200">http://localhost:4200</a>

I receive the following error ERROR Error: Uncaught (in promise): Error: No provider for LoginService! Error: No provider for LoginService! at ReflectiveInjector_.prototype._throwOrNull (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:140837:13">http://localhost:4200/vendor.bundle.js:140837:13</a>) ... at createViewNodes (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:150393:17">http://localhost:4200/vendor.bundle.js:150393:17</a>)

Any idea what is wrong?

Hi, I am trying to add migration but it failes. Where should I look for more detailed information on the reason why it failes. All solution builds sucessfully!!!

PM> Add-Migration XXXXXXX -Verbose -Debug Using project 'src\MyCompanyName.AbpZeroTemplate.EntityFrameworkCore'. Using startup project 'src\MyCompanyName.AbpZeroTemplate.Web.Host'. Build started... Build failed. PM>

Showing 51 to 60 of 78 entries