Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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 58900 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
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
Created attachment 24314 [details]
At runtime, in an ASP.NET MVC application, on a Mac using Mono 5.4.0, I'm getting the following exception:
Could not resolve type with token 01000014 (from typeref, class/assembly System.Web.UI.ScriptResourceMapping, System.Web.Extensions, Version=220.127.116.11, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
However, running the exact same application on a Windows Machine using the .NET framework, there is no issue.
Upon doing a "grep", I can see that the System.Web.Extensions.dll in the GAC does NOT contain System.Web.UI.ScriptResourceMapping. However, the System.Web.Extenion.dll's in other directories (e.g. 4.5-api/ ) DO contain System.Web.UI.ScriptResourceMapping (see attached screenshot)
I've confirmed that System.Web.Extensions.dll from the GAC is being loaded at runtime when the error occurs. Because of these findings, I believe the System.Web.Extensions.dll in the GAC is built wrong and/or does not contain the proper classes/methods.
Mac OS Sierra 10.12.6
Visual Studio 2017 Professional
Mono Framework Version 18.104.22.168
ASP.NET Version: 4.0.30319.42000
Also, I forgot to mention....As you can see in the grep command, "ScriptResourceMapping" is actually in System.Web.dll (not 'Extensions') in the GAC. The appears completely wrong. As you can see in Microsoft's documentation ( https://msdn.microsoft.com/en-us/library/system.web.ui.scriptresourcemapping(v=vs.110).aspx ), ScriptResourceMapping is supposed to be in System.Web.Extensions.dll