Page 1 of 1

[SOLVED] irrevocable build error after upgrading to .NET 4.6.2

Posted: Sat Aug 06, 2016 1:59 pm
by Sesztak
Dear JS-Support,

urgent help needed: irrevocable build error get after upgrading .NET 4.6.1 to .NET 4.6.2.

(background: we updated .NET framework from 4.6.1 to .NET 4.6.2, and CSHTML5 project):

We got irrevocable build error (even if we put back the project build properties to .NET 4.6.1 !!!!):

The whole CSHTML5 project is broken, new builds not possible:

The method "Array.Empty" is not yet supported error message

Severity Code Description Project File Line Suppression State
Error The method "Array.Empty" is not yet supported. You can see the list of supported methods at: http://www.cshtml5.com/links/what-is-supported.aspx - Please vote for this method at http://cshtml5.uservoice.com, or request it by posting on the forums at http://forums.cshtml5.com or by sending an email to support@cshtml5.com


Waiting for your urgent help / workaround,
Thanks in advance,
Really - really waiting for your quick reply,
Best Regards,
Péter
P.S.: to All Other Developers : NEVER Upgrade to .NET 4.6.2. till CSHTML5 support team can handle the problem !

Re: irrevocable build error after upgrading .NET 4.6.1 to .NET 4.6.2

Posted: Sat Aug 06, 2016 6:15 pm
by xidea
Péter,

did you already try to start a fresh project and copy the code files in it?

For a singular coincidence, I'm reading your post just after reading the release notes for 4.6.2 :-o


Regards,

Flavio

Re: irrevocable build error after upgrading .NET 4.6.1 to .NET 4.6.2

Posted: Sun Aug 07, 2016 1:53 am
by Sesztak
Dear Flavio,
Thanks for your kind help:
unfortunately it's should take a half day !:
-our project is very complex (huge number of source files: mixed cs, xaml, js: with lot of subfolders),
-our CSHTML5 project is in a Solution with a WCF server project (and wired with lot of other projects, like unit test, WCF self hosting for testing, etc ):
-the whole solution in under source control (TFS).

So, it's quite not as easy :(

It's better to wait JS-Support help :)

Thanks again,
Br,
Péter

Re: irrevocable build error after upgrading .NET 4.6.1 to .NET 4.6.2

Posted: Sun Aug 07, 2016 2:49 am
by Sesztak
We checked more carefully again:
result for CSHTML5 beta 9.0 build /errors:

.NET 4.5: ok, works as expected
.NET 4.5.1: ok, works as expected
.NET 4.5.2: ok, works as expected

.NET 4.6: error: method "Array.Empty" is not yet supported
.NET 4.6.1: error: method "Array.Empty" is not yet supported
.NET 4.6.2: error: method "Array.Empty" is not yet supported

Probably I made a mistake in my first message : we are not upgraded from .NET 4.6.1, but we upgraded from .NET 4.5.1.

The good news: we should revitalize of broken projects by set it back to .NET 4.5.2. ! :)

Anyway, the problem exist, (even if we change WCF collection settings manually/advanced mode from Array to ObservableCollection both Server and Client side): max. 4.5.2 , if you want any 4.6.X : you got "Array.Empty" build errors.

So, any official help/statement from CSHTML5 side?

Thanks in advance,
br,
Péter

Re: irrevocable build error after upgrading .NET 4.6.1 to .NET 4.6.2

Posted: Wed Aug 17, 2016 6:54 am
by JS-Support @Userware
Hi Péter,

Thanks for the report. We are investigating this issue. I will keep you updated asap.

Regards,
JS-Support

Re: irrevocable build error after upgrading .NET 4.6.1 to .NET 4.6.2

Posted: Mon Sep 19, 2016 5:51 am
by JS-Support @Userware
Hi Péter,

Glad to know that you have been able to work around the issue by reverting to the initial .NET version in the Project Properties.

At the same time, I am trying to reproduce the issue under 4.6.x. However, I have been unable to reproduce the compilation error. I have tried upgrading the sample Showcase application to 4.6.1, but it still works fine. I guess there is something in the code in your project that triggers the compiler error: could you please send us the class that you think could be related with the "Array.Empty" error? (even though you don't see any "Array.Empty" in your code, it may be generated by the 4.6.x compiler under the hoods). If we can see a piece of code that is responsible for the error, we can more easily fix it.

Thanks a lot.
Regards,
JS-Support

Re: irrevocable build error after upgrading .NET 4.6.1 to .NET 4.6.2

Posted: Mon Sep 19, 2016 6:17 am
by Sesztak
Hi JS-Support,
the problem localized at the line:

ServiceReference1.ServiceKasszaClient _kliens = new ServiceReference1.ServiceKasszaClient(
new System.ServiceModel.BasicHttpBinding(),
new System.ServiceModel.EndpointAddress(
new Uri(loginHezAdatok.strct_WCFServiceConnectionURI)));

Collection type: Observable Collection, anyway nothing special.

See: WCF service configuration attached picture /client side.

Best Regards,
Péter
ConfigureServiceReference.JPG
ConfigureServiceReference.JPG (63.36 KiB) Viewed 15115 times

Re: irrevocable build error after upgrading .NET 4.6.1 to .NET 4.6.2

Posted: Tue Sep 20, 2016 1:41 pm
by Sesztak
Do you need more help or it is enough to reproduce (&analyze) the problem ?
br,
P.

Re: irrevocable build error after upgrading .NET 4.6.1 to .NET 4.6.2

Posted: Thu Sep 22, 2016 7:37 am
by JS-Support @Userware
Sesztak wrote:Do you need more help or it is enough to reproduce (&analyze) the problem ?


Would you mind please sending us the file "Reference.cs" that is located inside the "Service References" folder? (you can remove any URL if you want to anonymize it)

Thanks a lot.
Regards,
JS-Support

Re: irrevocable build error after upgrading .NET 4.6.1 to .NET 4.6.2

Posted: Thu Sep 22, 2016 8:08 am
by Sesztak
Hi,

the requested file is sent to support@cshtml5.com
(request (272))

Please, keep me updated,

Br,
Péter

Re: irrevocable build error after upgrading .NET 4.6.1 to .NET 4.6.2

Posted: Sun Nov 06, 2016 7:51 am
by JS-Support @Userware
The issue has been fixed in Beta 10.3, available at:

http://forums.cshtml5.com/viewforum.php?f=6

Thanks a lot.
Regards,
JS-Support