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)

See Also:
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

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

Note You need to log in before you can comment on or make changes to this bug.