We had the same problem, and not related to 'dynamic' keyword:
background info:
we have a cshtml5 webpage:
http://188.142.254.194:14460/we have a very basic test WCF service:
http://188.142.254.194:14460/wcf/Service1.svc(both hosted under IIS, tested and worked perfectly)
When we try to call WCF service from cshtml5 webpage code, we have got the following exception:
JSIL.Core.js?20166271622:10477 Uncaught Error: Type 'System.Runtime.CompilerServices.CallSite`1' has not been defined.
just for your kind information the related client code:
ServiceReference1.Service1Client _soapClient =
new ServiceReference1.Service1Client(
new System.ServiceModel.BasicHttpBinding(),
new System.ServiceModel.EndpointAddress(
new Uri("http://188.142.254.194:14460/wcf/Service1.svc")));
TextBlock2.Text= _soapClient.GetData(7);
We use CSHTML5 8.2 beta.
Any idea, any help?
Thanks for your kind help in advance,
best regards,
Péter