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

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

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

Postby Sesztak » Sat Aug 06, 2016 1:59 pm

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 !

xidea
Posts: 33
Joined: Thu Jun 30, 2016 7:04 pm

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

Postby xidea » Sat Aug 06, 2016 6:15 pm

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

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

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

Postby Sesztak » Sun Aug 07, 2016 1:53 am

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

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

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

Postby Sesztak » Sun Aug 07, 2016 2:49 am

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

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

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

Postby JS-Support @Userware » Wed Aug 17, 2016 6:54 am

Hi Péter,

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

Regards,
JS-Support

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

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

Postby JS-Support @Userware » Mon Sep 19, 2016 5:51 am

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

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

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

Postby Sesztak » Mon Sep 19, 2016 6:17 am

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 15099 times

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

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

Postby Sesztak » Tue Sep 20, 2016 1:41 pm

Do you need more help or it is enough to reproduce (&analyze) the problem ?
br,
P.

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

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

Postby JS-Support @Userware » Thu Sep 22, 2016 7:37 am

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

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

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

Postby Sesztak » Thu Sep 22, 2016 8:08 am

Hi,

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

Please, keep me updated,

Br,
Péter

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

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

Postby JS-Support @Userware » Sun Nov 06, 2016 7:51 am

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


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 39 guests

 

 

cron