Bug 58900 - System.Web.Extensions.dll in the GAC does not contain System.Web.UI.ScriptResourceMapping
Summary: System.Web.Extensions.dll in the GAC does not contain System.Web.UI.ScriptRes...
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Web (show other bugs)
Version: 5.4 (2017-06)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-08-19 02:19 UTC by ryanbaxendell
Modified: 2017-08-19 02:23 UTC (History)
1 user (show)

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


Attachments
grep command (551.99 KB, image/png)
2017-08-19 02:19 UTC, ryanbaxendell
Details


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 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 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:
NEW

Description ryanbaxendell 2017-08-19 02:19:00 UTC
Created attachment 24314 [details]
grep command

At runtime, in an ASP.NET MVC application, on a Mac using Mono 5.4.0, I'm getting the following exception:

System.TypeLoadException
Could not resolve type with token 01000014 (from typeref, class/assembly System.Web.UI.ScriptResourceMapping, System.Web.Extensions, Version=4.0.0.0, 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.

I'm using:
Mac OS Sierra 10.12.6
Visual Studio 2017 Professional
Mono Framework Version 5.4.0.135
ASP.NET Version: 4.0.30319.42000
Comment 1 ryanbaxendell 2017-08-19 02:23:09 UTC
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