Resource errors,

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.
Nick
Posts: 84
Joined: Tue May 30, 2017 9:44 am
Contact:

Resource errors,

Postby Nick » Wed Nov 21, 2018 6:48 pm

Some resources errors,
(I will be upload soon an example, but it is very tricky), application OK work in simulator

Browser Console

he Web Audio autoplay policy will be re-enabled in Chrome 71 (December 2018). Please check that your website is compatible with it. https://goo.gl/7K7WLu
initSoundLoader @ JSIL.Browser.Audio.js?201811220426:612
:!: :!: :!: --------------------------------------------------------------------------------------------------------------------------------------
JSIL.Browser.js?201811220426:199 Public type 'System.Net.CredentialsMode' defined twice: <CSharpXamlForHtml5, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Public Interface> and <CSharpXamlForHtml5.System.dll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Public Interface>
at Object.JSIL.WarningFormat (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:10541:13)
at Object.JSIL.DefineTypeName (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:1121:14)
at Object.JSIL.RegisterName (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:1990:8)
at Object.JSIL.MakeEnum (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:6026:8)
at file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Application/CSharpXamlForHtml5.System.dll.js?201811220426:9:
JSIL.Browser.WarningService.write @ JSIL.Browser.js?201811220426:199
:!: :!: :!: --------------------------------------------------------------------------------------------------------------------------------------
JSIL.Browser.js?201811220426:199 Unhandled exception in static constructor for type AppSections.SectionM1_MainMenu_MainMenu_AreaMenu_Menu:
at Object.JSIL.$InvokeStaticConstructor (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:4562:17)
at Object.JSIL.RunStaticConstructors (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:4595:12)
at JSIL.PreInitMembrane.MaybeRunStaticConstructors [as initializer] (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:6866:12)
at JSIL.PreInitMembrane.maybeInit (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:612:10)
at JSIL.PreInitMembrane.bound_maybeInit [as maybeInit] (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:592:16)
at Object.JSIL.InitializeType (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:4528:39)
at Object.RegisterName_getter (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:1972:14)
at Object.LazyValueProperty_Get [as SectionM1_MainMenu_MainMenu_AreaMenu_Menu] (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:234:26)
at $T0F (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Application/AllInOne.js?201811220426:224:59
JSIL.Browser.WarningService.write @ JSIL.Browser.js?201811220426:199
:!: :!: :!: --------------------------------------------------------------------------------------------------------------------------------------
JSIL.Browser.js?201811220426:199 System.Exception: No resources available for culture 'en-US'.
at Object.JSIL.$InvokeStaticConstructor (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:4563:17)
at Object.JSIL.RunStaticConstructors (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:4595:12)
at JSIL.PreInitMembrane.MaybeRunStaticConstructors [as initializer] (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:6866:12)
at JSIL.PreInitMembrane.maybeInit (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:612:10)
at JSIL.PreInitMembrane.bound_maybeInit [as maybeInit] (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:592:16)
at Object.JSIL.InitializeType (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:4528:39)
at Object.RegisterName_getter (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:1972:14)
at Object.LazyValueProperty_Get [as SectionM1_MainMenu_MainMenu_AreaMenu_Menu] (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Libraries/JSIL.Core.js?201811220426:234:26)
at $T0F (file:///C:/_WCG/TestB4/GeneratedCode/GeneratedJsCode/Application/AllInOne.js?201811220426:224:59
JSIL.Browser.WarningService.write @ JSIL.Browser.js?201811220426:199
:!: :!: :!: --------------------------------------------------------------------------------------------------------------------------------------
AllInOne.js?201811220426:315 Uncaught TypeError: Cannot read property 'set_MenuContainer' of null
at AppSections_SectionM1.BaseSectionM1_SetMenuToContainer (AllInOne.js?201811220426:315)
at AppSections_SectionM1.BaseSectionM1_Theme_SectionEvents (AllInOne.js?201811220426:328)
at AppSections_SectionM1.Delegate_Invoke [as SectionEvents] (JSIL.Core.js?201811220426:9346)
at AppSections_SectionM1.ThemeSection_CallSectionEvent (Tehnolog.js?201811220426:1890)
at JSIL.InterfaceMethod.InterfaceMethod_CallInterface_I417$CallSectionEvent$30$cm411$eqvoid [as Call] (InterfaceMethod.CallInterface_I417$CallSectionEvent$30,411=void:9)
at TestB4_Theme.BaseTheme_SectionCurrentEvent (Tehnolog.js?201811220426:5771)
at TestB4_Theme.BaseTheme_Build (Tehnolog.js?201811220426:5265)
at TestB4_Theme.Theme_AppTheme (TestB4.js?201811220426:741)
at TestB4_Theme.Theme_Execute (TestB4.js?201811220426:750)
at JSIL.InterfaceMethod.InterfaceMethod_CallInterface_I464$Execute$void$eq434 [as Call] (InterfaceMethod.CallInterface_I464$Execute$void=434:9)

Nick
Posts: 84
Joined: Tue May 30, 2017 9:44 am
Contact:

Re: Resource errors,

Postby Nick » Wed Nov 21, 2018 8:05 pm

Attached example produce this errors:

The Web Audio autoplay policy will be re-enabled in Chrome 71 (December 2018). Please check that your website is compatible with it. https://goo.gl/7K7WLu
initSoundLoader @ JSIL.Browser.Audio.js?201811220602:612


JSIL.Browser.js?201811220602:199 Public type 'System.Net.CredentialsMode' defined twice: <CSharpXamlForHtml5, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Public Interface> and <CSharpXamlForHtml5.System.dll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Public Interface>
at Object.JSIL.WarningFormat (file:///E:/New%20folder/cshtml5/Errors/AppRes/AppRes/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?201811220602:10541:13)
at Object.JSIL.DefineTypeName (file:///E:/New%20folder/cshtml5/Errors/AppRes/AppRes/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?201811220602:1121:14)
at Object.JSIL.RegisterName (file:///E:/New%20folder/cshtml5/Errors/AppRes/AppRes/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?201811220602:1990:8)
at Object.JSIL.MakeEnum (file:///E:/New%20folder/cshtml5/Errors/AppRes/AppRes/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?201811220602:6026:8)
at file:///E:/New%20folder/cshtml5/Errors/AppRes/AppRes/bin/Debug/Output/app-cshtml5/app/CSharpXamlForHtml5.System.dll.js?201811220602:9:
JSIL.Browser.WarningService.write @ JSIL.Browser.js?201811220602:199
JSIL.Bootstrap.Resources.js?201811220602:73


Uncaught
Attachments
AppRes.zip
(14.42 KiB) Downloaded 396 times

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

Re: Resource errors,

Postby JS-Support @Userware » Wed Dec 19, 2018 8:24 am

Hi Nick,

it appears that the issue is due to the fact that the reference from the "AppRes" project to the "Resources" project gets lost in JS.

While waiting for the fix in v2.0, you can use the following workaround: just reference the resource from C# somewhere in the code of "AppRes".

For example, I was able to fix the issue by simply adding the follwing line to the constructor of MainPage.xaml.cs (line 19):

Code: Select all

MessageBox.Show(Resource1.UserControl1_Text1);


Thanks.
Regards


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 21 guests

 

 

cron