Questions tagged [dependency-resolver]
71 questions
0
votes
1 answer
ArgumentException: Implementation type 'UserService' can't be converted to service type 'IUserService'
I am facing this error message while running the application.
4 System.AggregateException HResult=0x80131500 Message=Some services are not able to be constructed (Error while validating the
service descriptor…

Baseer Bhat
- 33
- 4
0
votes
1 answer
What is the point in one type argument in Register instead of two argument types Register?
In dependency injection I understand why we need Register() with 2 type arguments.
myContainer.Register();
From now on, parameters of type I1, in ctors, will get the instance of A.
It's great. We don't need to deal with the creation and the…

S Itzik
- 494
- 3
- 12
0
votes
0 answers
Web API Dependency Injection with Unity error - System.StackOverflowException: 'Exception of type 'System.StackOverflowException' was thrown.'
I am trying to implement the dependency injection in ASP.Net web API with unity container and have implemented the exactly with below 2…

Nadeem Shaikh
- 117
- 14
0
votes
1 answer
C# Assembly ressolver doesn't start when instantiating variable but from function it does
Hi I have simple client to write value to UA server. I am using OpcLabs libraries in VS2017, Win10 NetFr 4.8. Libraries are loaded from other folder than executable. When dlls are in the same folder both methods below works, when resolver should be…

Mimoa
- 50
- 4
0
votes
1 answer
Unity settings has platform dependent collision with GIT
I'm using Unity 2019.1.14f1, Play Services Resolver 1.2.124 and git on Windows and MacOS.
Some *.aar files and ProjectSettings/AndroidResolverDependencies.xml contains different slash symbols for different operation systems so I can't commit or…

orion_tvv
- 1,681
- 4
- 17
- 29
0
votes
1 answer
UnsupportedOperationException: No format processor for org.jboss...MavenResolvedArtifact was found
I'm creating an application to automatically generate resources for a launcher, this requires automatically resolving maven dependencies, but I'm getting an UnsupportedOperationException while running JBoss Shrinkwrap Resolver
I'm running this…

Kirby Gaming
- 67
- 5
0
votes
1 answer
How to register all services at once using Unity.Mvc5
please help me to register all services and repositories at once using Unity.Mvc5.
I'm using below scenario now. but in this I have to register every single service and repository to unity container.
Is there any way to register all services and…

Hardik
- 3,038
- 2
- 19
- 31
0
votes
1 answer
references to Component functionality within innerHTML not working
Trying to get ngbTooltip to work within the secure confines of innerHTML. At first I thought this doesn't work cause the data to be inserted is retrieved a-synchronously and view rendering + strapping ngB-functionality is already done, so…

San Jay Falcon
- 993
- 1
- 9
- 20
0
votes
1 answer
UI Router resolve not working with component-based states
Background:
On an app I am working on, we have a component that is being used in two places. In one place it's being called from the Material Design bottomSheet system. In another, we are using the component directly via the ui-router state…

Andrew Gray
- 3,756
- 3
- 39
- 75
0
votes
1 answer
AngularJS 'unknown provider' after minification (ng-strict-di being activated)
I first concatenate all my js files via grunt-contrib-concat grunt task. With this one everything worked fine (no minification).
I'm trying to switch to Google's Closure Compiler so I can minify it and add source maps, to start I'm using this…

Bancarel Valentin
- 511
- 5
- 21
0
votes
1 answer
.NET assembly resolving with complexe architecture
hope someone can answer this question.
I have an application with this architecture:
ApiLibrary (class library)
UsedLibrary version 2 (class library referenced by ApiLibrary)
Then, My ApiLibrary has a third parties plugins system.
Developpers can…

PP_RhuM
- 81
- 8
0
votes
1 answer
Swinject: generate instances of any object (for not registered object, ViewModel, etc...)
is possible to resolve/ create a new instace of object thats are not registered in Swinject container? In Unity dependency injection for c# (from Microsoft) is it.
I Want to resolve viewModel class, that have dependence for some protocols.
For…

Puty
- 100
- 1
- 13
0
votes
1 answer
How to resolve all forms using unity container
I use unity container in my WinForms application and register interfaces and classes. but when open other forms it's not working for fetching data. It's just working for form1.
How to resolve all forms?
static class Program
{
[STAThread]
…

Jamal Kaksouri
- 1,684
- 15
- 22
0
votes
1 answer
asp.net webapi generic repository and dependency injection using resolver gives error
I am new to design pattern and dependency injection. I used this tutorial for implementing my project.
Enterprise Level Application Architecture with Web APIs using Entity Framework, Generic Repository Pattern and Unit of Work
Solution implementing…

devvab
- 109
- 15
0
votes
1 answer
Custom Webpack resolver for SystemJS style imports ! with-loader
I have a project that is using SystemJS - this cannot change. We are also using StoryBooks, which uses WebPack - this too cannot change. So far the two play very nicely with each other. However, I have a module which loads files as plain text and…

Ryan Wheale
- 26,022
- 8
- 76
- 96