Stealth Posted November 29, 2006 Share Posted November 29, 2006 I get this error when i execute my tcascript file: Error: An exception occured while executing the script Exception has been thrown by the target of an invocation. Object reference not set to an instance of an object. The script im using is one LFA posted here: http://clientforums.tcadmin.com/showthread.php?t=317 <tcascript> <language name="VB" /> <waitForUserAction value="True"/> <scriptCode><![CDATA[ Imports System Public Class CreatUser Public Shared Sub Main() Dim newuser as new TCAdminSDK.Objects.User newuser.userID = "test" newuser.password = "password" newuser.FirstName = "test" newuser.LastName = "user" newuser.Email1 = "testing@clanplanet.co.uk" newuser.Type = TCAdminSDK.Objects.UserType.User newuser.Save() End Sub End Class ]]></scriptCode> </tcascript> I cant figure out what's wrong with it! Any ideas? Link to comment Share on other sites More sharing options...
Stealth Posted December 1, 2006 Author Share Posted December 1, 2006 le bump? Link to comment Share on other sites More sharing options...
ECF Posted December 1, 2006 Share Posted December 1, 2006 You may want to put in a ticket and ask Luis directly. He doesn't browse the forums as often as he used to. Link to comment Share on other sites More sharing options...
Stealth Posted December 1, 2006 Author Share Posted December 1, 2006 Ah i see! thanks Kev Link to comment Share on other sites More sharing options...
LFA Posted January 12, 2007 Share Posted January 12, 2007 Change: Dim newuser as TCAdminSDK.Objects.User to: Dim newuser as new TCAdminSDK.Objects.User Link to comment Share on other sites More sharing options...
kalyse Posted January 13, 2007 Share Posted January 13, 2007 Did that work for you? I just insert the information manually into the database. I do this when someone creates an accont on my actual website. Simple SQL Link to comment Share on other sites More sharing options...
Stealth Posted June 11, 2007 Author Share Posted June 11, 2007 the script emails, and leads up to auto-setup of servers when modernbill isnt quite appropriate Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.