For any query. (except for authorization) an error
"An unhandled exception of type "System.NullReferenceException" in SteamAuth.dll
For more information: Object reference not set to an instance of the object."
*Get the latest version from the hub
This error appears on the functions:
RefreshSession()
FetchConfirmations()
then could not check
code:
static void Main(string[] args)
{
Console.WriteLine("Имя аккаунта:");
string account = Console.ReadLine();
string guardFile = System.IO.File.ReadAllText(account + ".maFile");
SteamGuardAccount guard = JsonConvert.DeserializeObject(guardFile);
Console.WriteLine("Тип запуска(code,trades):");
string type = Console.ReadLine();
Console.Clear();
switch (type)
{
case "code":
{
while (true)
{
string code = guard.GenerateSteamGuardCode();
Console.WriteLine("{0}", code);
System.Threading.Thread.Sleep(30000);
}
}
case "trades":
{
while (true)
{
if (guard != null)
guard.RefreshSession();
Confirmation[] tradeRequests = guard.FetchConfirmations();
foreach (Confirmation conf in tradeRequests)
{
guard.AcceptConfirmation(conf);
}
System.Threading.Thread.Sleep(20000);
}
}
}
}
For any query. (except for authorization) an error
"An unhandled exception of type "System.NullReferenceException" in SteamAuth.dll For more information: Object reference not set to an instance of the object."
*Get the latest version from the hub
This error appears on the functions: RefreshSession() FetchConfirmations() then could not check code: static void Main(string[] args) { Console.WriteLine("Имя аккаунта:"); string account = Console.ReadLine(); string guardFile = System.IO.File.ReadAllText(account + ".maFile"); SteamGuardAccount guard = JsonConvert.DeserializeObject(guardFile);
Console.WriteLine("Тип запуска(code,trades):");
string type = Console.ReadLine();
Console.Clear();
switch (type)
{
case "code":
{
while (true)
{
string code = guard.GenerateSteamGuardCode();
Console.WriteLine("{0}", code);
System.Threading.Thread.Sleep(30000);
}
}
case "trades":
{
while (true)
{
if (guard != null)
guard.RefreshSession();
Confirmation[] tradeRequests = guard.FetchConfirmations();
foreach (Confirmation conf in tradeRequests)
{
guard.AcceptConfirmation(conf);
}
System.Threading.Thread.Sleep(20000);
}
}
}
}