System.MissingMethodException occurred when ASP.net core web application calls stateless service fabric

0
  • Web Application written in asp.net core(Web API)
    (Please note: Have not used service fabric 'ASP.net core stateless' for UI development)

  • Stateless service fabric is written for backend logic

  • Common Class library project is refereed in both web application as well as in stateless service which hold Method Interface.

  • Using 'Microsoft.ServiceFabric.Services.Remoting.Client' for remote calling:

    var serviceUri = new Uri(@"fabric:/FeedbackPortal/EntityService");
    var service = ServiceProxy.Create(entityServiceUri);

But I am getting an exception when I am trying to consume Stateless Service Fabric in web application at second line:

**System.MissingMethodException** occurred
  HResult=0x80131513
  Message=Method not found: 'System.Reflection.Emit.ModuleBuilder System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule(System.String, System.String, Boolean)'.
  Source=<Cannot evaluate the exception source>

I am new to service fabric. Any help is highly appreciated.

visual-studio-2017
asp.net-core-webapi
service-fabric-stateless
asked on Stack Overflow Jan 5, 2018 by nehagupta03 • edited Jan 5, 2018 by Cookie Monster

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0