SpecFlow Activation Invalid activation token Error After Getting Microsoft Account Updated

469 views
Skip to first unread message

Bitaseme Mboe

unread,
Aug 3, 2020, 4:01:20 PM8/3/20
to SpecFlow
I had my Microsoft account updated (company account. It was [firstinitial][lastname]@xyz.com to [firstname].[lastname]@xyz.com. That was a few weeks ago. I tried running SpecFlow tests today and I am seeing Invalid Activation token in the Tests Output pane. Seeing as SpecFlow uses a Microsoft account to do activation i am sure the changes to the Microsoft account are the culprit. What do i need to do here? Anyway to reset or get a new activation license or something? I'm on VS 2017 Enterprise btw. I've already tried signing out of the Microsoft account in Visual Studio restarting Visual studio, and trying to run tests to see if the activation would trigger but it did not.

Bitaseme Mboe

unread,
Aug 3, 2020, 4:03:24 PM8/3/20
to SpecFlow
I'm on SpecFlow v3.1.97 btw.

Bitaseme Mboe

unread,
Aug 3, 2020, 4:27:32 PM8/3/20
to SpecFlow
Tried another project with latest SpecFlow (Created new project). here is output
[8/3/2020 4:20:55 PM Informational] SpecFlow+Runner execution started
[8/3/2020 4:20:55 PM Informational] SpecFlow+Runner 3.3.41 in Framework clr40 in x86 mode execution started
[8/3/2020 4:20:55 PM Informational] TestAdapter Location: C:\Users\auser\source\repos\Specflow\SpecFlow.Specs\bin\Debug\TechTalk.SpecRun.VisualStudio.TestAdapter.dll
[8/3/2020 4:20:55 PM Informational] Current UserName: 'another.user', MachineName: 'CloudMachine'
[8/3/2020 4:20:55 PM Informational] SpecRun: running tests in C:\Users\auser\source\repos\Specflow\SpecFlow.Specs\bin\Debug\SpecFlow.Specs.dll
[8/3/2020 4:20:55 PM Informational] Output folder configured to "C:\Users\auser\source\repos\Specflow\TestResults" (default)
[8/3/2020 4:20:55 PM Informational] Profile:
[8/3/2020 4:20:55 PM Informational] Log file path: C:\Users\auser\source\repos\Specflow\TestResults\Unnamed project__2020-08-03T162055.log
[8/3/2020 4:20:55 PM Informational] Checking activation
[8/3/2020 4:20:57 PM Error] ProductInstanceId does not match.
[8/3/2020 4:20:57 PM Informational] UserName: '', MachineName: ''
[8/3/2020 4:20:57 PM Error] Invalid activation token.
[8/3/2020 4:20:57 PM Error] No tests executed (activation needed)
[8/3/2020 4:20:57 PM Informational] Result: tests executed with warnings
[8/3/2020 4:20:57 PM Informational]   Total: 0
  Succeeded: 0
  Ignored: 0
  Pending: 0
  Skipped: 0
  Failed: 0

  Execution Time: 00:00:00
[8/3/2020 4:20:57 PM Informational] Adding attachments to VSTest
[8/3/2020 4:20:57 PM Informational] Log file: file:///C:/Users/auser/source/repos/Specflow/TestResults/Unnamed%20project__2020-08-03T162055.log
[8/3/2020 4:20:57 PM Informational] SpecFlow+Runner execution finished
[8/3/2020 4:20:57 PM Informational] ========== Run test finished: 0 run (0:00:01.9070359) ==========

On Monday, August 3, 2020 at 4:01:20 PM UTC-4, Bitaseme Mboe wrote:

Andreas Willich

unread,
Aug 7, 2020, 5:57:20 AM8/7/20
to SpecFlow
I repeat my support answer to Bitaseme here if somebody else has this problem and finds this post:

---------------------------------------------------------------------------------------------------------------------------------------------------------------------

Hi Bitaseme,

In your case you have to reset the product activation flow on your machine, with the following steps:

You should locate the following file and delete it:

%localappdata%\SpecFlow\.specflowrunner

This should reset your SpecFlow+Runner environment and you should see a different activation link in the test run output.
You can use now this new activation link and connect the product to your Microsoft account.

Please let me know if you have any further questions.

Kind regards,
Andreas

---------------------------------------------------------------------------------------------------------------------------------------------------------------------

--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/specflow/f3b6d37e-8274-4591-94b5-9181c7eaad95o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages