Jump to content

Trying to autocreate users


Stealth

Recommended Posts

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

  • 1 month later...
  • 4 months later...

Archived

This topic is now archived and is closed to further replies.

  • Who's Online   0 Members, 0 Anonymous, 17 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use