2016-10-14

I wrote a new script this morning which I can get to run in TenScripting, but when I run in HomeSeer I get…..

Compiling script /usr/share/HomeSeer/scripts/RefreshHouseTimeData.vb: Visual Basic.Net Compiler version 0.0.0.5943 (Mono 3.8 - tarball) Copyright (C) 2004-2010 Rolf Bjarne Kvinge. All rights reserved. /tmp/54fb5062/4b1a7e7a.0.vb (2,16) : warning VBNC40056: Namespace or type specified in the Imports 'System.Core' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. vbnc : Command line : error VBNC99999: Unexpected error: Object reference not set to an instance of an object at vbnc.AssignmentStatement.ResolveStatement (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.CodeBlock.ResolveCode (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.ElseIfStatement.ResolveStatement (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.Statement.ResolveCode (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.BaseObjects`1[vbnc.ElseIfStatement].ResolveCode (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.IfStatement.ResolveStatement (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.CodeBlock.ResolveCode (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.MethodBaseDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.SubDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.BaseObjects`1[vbnc.IMember].ResolveCode (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.TypeDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.ClassDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.AssemblyDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] in :0 at vbnc.Compiler.Compile_Resolve () [0x00000] in :0 at vbnc.Compiler.Compile () [0x00000] in :0 Compilation took 00:00:02.5312950

I get this message whenever I include any of the following VB commands in a new script ….. Select Case, Nested Else If - but not simple If-Then, using Arrays (but not defining through a Dim statement).

What is defeating my troubleshooting is that many of my existing scripts use these commands and they still run / compile just fine.

I hope someone can help

Show more