Bug 60876 - Implement System.ServiceModel.Channels.ReceiveContext and System.ServiceModel.Channels.IReceiveContextSettings
Summary: Implement System.ServiceModel.Channels.ReceiveContext and System.ServiceModel...
Status: CONFIRMED
Alias: None
Product: Class Libraries
Classification: Mono
Component: WCF assemblies (show other bugs)
Version: master
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-11-27 21:04 UTC by Douglas Ludlow
Modified: 2017-11-29 11:19 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 60876 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Douglas Ludlow 2017-11-27 21:04:47 UTC
I'm attempting to port an ASP.NET application. It's building just fine, but when I run the site in xsp and I'm seeing the following error:

System.Reflection.ReflectionTypeLoadException
Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
    at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
    at System.Reflection.Assembly.GetTypes () [0x00000] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/Assembly.cs:410
    at System.Reflection.Assembly+<get_DefinedTypes>d__150.MoveNext () [0x0001e] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/Assembly.cs:1019
    at System.Linq.Enumerable+SelectEnumerableIterator`2[TSource,TResult].MoveNext () [0x00029] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/external/corefx/src/System.Linq/src/System/Linq/Select.cs:133
    at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () [0x0006f] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/external/corefx/src/System.Linq/src/System/Linq/SelectMany.cs:209
    at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () [0x0004e] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/external/corefx/src/System.Linq/src/System/Linq/Where.cs:146
    at Autofac.Features.Scanning.ScanningRegistrationExtensions.ScanTypes (System.Collections.Generic.IEnumerable`1[T] types, Autofac.Core.IComponentRegistry cr, Autofac.Builder.IRegistrationBuilder`3[TLimit,TActivatorData,TRegistrationStyle] rb) [0x00133] in <d2e21a4947d7428dab6692e67eb66c09>:0
    at Autofac.Features.Scanning.ScanningRegistrationExtensions.ScanAssemblies (System.Collections.Generic.IEnumerable`1[T] assemblies, Autofac.Core.IComponentRegistry cr, Autofac.Builder.IRegistrationBuilder`3[TLimit,TActivatorData,TRegistrationStyle] rb) [0x00025] in <d2e21a4947d7428dab6692e67eb66c09>:0
    at Autofac.Features.Scanning.ScanningRegistrationExtensions+<>c__DisplayClass0_0.<RegisterAssemblyTypes>b__0 (Autofac.Core.IComponentRegistry cr) [0x00000] in <d2e21a4947d7428dab6692e67eb66c09>:0
    at Autofac.ContainerBuilder.Build (Autofac.Core.IComponentRegistry componentRegistry, System.Boolean excludeDefaultModules) [0x00046] in <d2e21a4947d7428dab6692e67eb66c09>:0
    at Autofac.ContainerBuilder.Build (Autofac.Builder.ContainerBuildOptions options) [0x00013] in <d2e21a4947d7428dab6692e67eb66c09>:0
    at Inofile.Kno2.Web.AutofacConfig.Bootstrap () [0x00a7d] in /path/to/app/App_Start/AutofacConfig.cs:418
    at Inofile.Kno2.Web.Startup.Configuration (Owin.IAppBuilder app) [0x00043] in /path/to/app/App_Start/Startup.cs:34
    at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
    at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305 

From what I can tell, when Autofac attempts to resolve the below assemblies, it fails because they are not yet implemented in mono yet.

"Could not resolve type with token 010001d3 (from typeref, class/assembly System.ServiceModel.Channels.IReceiveContextSettings, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)"

"Could not resolve type with token 010001f3 (from typeref, class/assembly System.ServiceModel.Channels.ReceiveContext, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)"

I'm guessing this is where they would be found if implemented: https://github.com/mono/mono/tree/master/mcs/class/System.ServiceModel/System.ServiceModel.Channels
 
What does it take to implement missing types like this? Is this something I could do?
Comment 1 Douglas Ludlow 2017-11-27 21:11:08 UTC
*when Autofac attempts to resolve the below types... not assemblies
Comment 2 Marek Safar 2017-11-29 11:19:17 UTC
That's correct we are missing an implementation for them in the location you pointed out.