Page 1 of 1

Failed to bind generic arguments for typeRef [SOLVED]

Posted: Thu Nov 19, 2015 4:02 am
by TobiasDonaubauer
I am getting following exception when starting the compiled app:

Error: Failed to bind generic arguments for typeRef 'ref System.Collections.Generic.List`1[ref Infsoft.CSHTML5.Controls.API.Devices.Device]': Error: Could not find the name 'Infsoft' in the namespace '<Infsoft.CSHTML5.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Public Interface>'.

This is just happing in Firefox. In Internet Explorer and Chrome it's working fine. Any idea?

Re: Failed to bind generic arguments for typeRef

Posted: Thu Nov 19, 2015 8:44 am
by JS-Support @Userware
Dear Tobias,

It is strange that the code is trying to find "Infsoft" in the namespace "Infsoft.CSHTML5.Controls".

Maybe you can try replacing List<Infsoft.CSHTML5.Controls.API.Devices.Device> with something like List<global::Infsoft.CSHTML5.Controls.API.Devices.Device> , or temporarily removing the namespace of the code that contains this line to see if it is related to an issue with namespaces.

If you manage to isolate the issue and send us some code to reproduce it, we should be able to fix it relatively quickly.

Alternatively, another hint is to try using the "Pause on Exception" feature of the FireFox Debugging Tools to see if you can find out the cause of this issue. To enable it:
1) Under FireFox, click Menu -> Developer -> Debugger, or press Ctrl+Shift+S. The "Debugger" panel will appear.
2) Click the wheel menu on the right and enable "Pause on Exceptions", as shown in the screenshot below:
FireFox pause on exceptions.png
FireFox pause on exceptions.png (9.59 KiB) Viewed 8935 times

3) Reload your app while keeping the"Debugger" panel open. A breakpoint will happen as soon as the exception takes place. It is likely that the location of the error will not be very telling because it will likely be somewhere in the system classes, but you can use the Call Stack to go back to a method of your own. In FireFox, the Call Stack is located on the left, as shown in the following screenshot:
FireFox Call Stack.png
FireFox Call Stack.png (21.76 KiB) Viewed 8935 times

4) Double-click to places in the call stack until you arrive to an interesting point, and place the pointer over a variable in the code to inspect its value.

Hope it helps.

Regards,
JS-Support

Re: Failed to bind generic arguments for typeRef

Posted: Mon Nov 23, 2015 5:57 am
by TobiasDonaubauer
I have tried everything but I am not able to fix the bug.

I have hosted the project here:


Maybe you can have a look at it. It immediately crashes when opening it with firefox. All other browsers are working fine.

Thanks, Tobias

Re: Failed to bind generic arguments for typeRef

Posted: Mon Nov 23, 2015 12:27 pm
by JS-Support @Userware
Thanks Tobias. We are going to look into it asap.
PS: Your page looks super nice!

Re: Failed to bind generic arguments for typeRef

Posted: Tue Dec 01, 2015 10:59 am
by TobiasDonaubauer
Work's now in Beta 6. Thanks!

Re: Failed to bind generic arguments for typeRef

Posted: Wed Dec 02, 2015 9:18 am
by JS-Support @Userware
Great! Thanks a lot!

Regards,
JS-Support