Bug 53422 - WebForm.js is out of date
Summary: WebForm.js is out of date
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Web (show other bugs)
Version: 4.8.0 (C9)
Hardware: Other Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-03-16 22:34 UTC by John Radley
Modified: 2017-09-08 23:18 UTC (History)
2 users (show)

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


Attachments
Windows Version (22.52 KB, text/x-matlab)
2017-03-16 22:34 UTC, John Radley
Details
Mono Version (12.88 KB, text/x-csrc)
2017-03-16 22:35 UTC, John Radley
Details

Description John Radley 2017-03-16 22:34:48 UTC
Created attachment 20396 [details]
Windows Version

Project System.Web-plainweb-net_4_x AND System.Web-net_4_x
./mcs/class/System.Web/resources/webform.js

The content of this file I suspect is old.

If I run exactly the same WebForms ASP.NET project on Windows 10 (VS 2015) and Mono (4.8) and MonoDevelop (6.2.0.485) the  running website shows different contents for WebResource.axd?d=<guid>

The Mono version, here, starts with author and copyright comments, followed by 
function WebForm_Initialize(webForm)

The Windows version starts with
function WebForm_PostBackOptions

The Source I'm trying is BlogEngine.NET 3.3.5.0.
It works find except for posting comments. That's because the Mono version of WebResource.axd does not have a copy of 
WebForm_ExecuteCallback

I've attached the Windows version.

(Suggest search of this Bugzilla using "webform" search term, as those issues could be related)

Please can you suggest a workaround.
-- Can you advise how to turn off. I've not been able to find a method to turn off the virtual WebResource.axd file. If I could, I could then add the right webform.js as a static file.
-- Can you advise whether you agree. Changing this could break a lot of current users of Mono!
-- If you are going to fix, can you advise an ETA
-- If you are not going to fix, suggest you add comment to your documentation (sorry if I've missed same). Took a day to find this difference!!
-- I guess I could Fork the whole of Mono for my own use! But that seems overkill!


Thanks.
BlogEngine, Fastcgi-Mono-Server, Hyperfastcgi, MonoDevelop and BlogEngine all work very well on Ubuntu 16.04
I'm really impressed.
Comment 1 John Radley 2017-03-16 22:35:38 UTC
Created attachment 20397 [details]
Mono Version

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