I am trying to get data here :
public IEnumerable<customer> Get()
{
using (ICustomers services= FacadeFactory.Instance.GetCustomersService()) // here I get error
{
var customers = services.GetAll();
}
return customers ;
}
I get this error :
System.MissingMethodException
HResult=0x80131513
Message=Method not found: 'System.Object System.Activator.GetObject(System.Type, System.String)'.
Source=Sales.Common
StackTrace:
at Sales.Common.FacadeFactory.GetCustomersService() in D:\Radan\Radan_SVN\Radan_SourceCode\SMS\Sales.Common\FacadeFactory.cs:line 179
at SalesContractTest.Controllers.WeatherForecastController.Get() in C:\Users\ali eshghi\source\repos\SalesContractTest\SalesContractTest\Controllers\WeatherForecastController.cs:line 31
at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<<InvokeActionMethodAsync>g__Logged|12_1>d.MoveNext()
I was wondering if someone can help me here, method existed there but I don't get why I get this error
User contributions licensed under CC BY-SA 3.0