Generation error: Could not load file cor assembly 'Techtalk.SpecFlow, Version=1.0.0.0, Culture=neutral,...

Ask general questions here.
varsha07
Posts: 1
Joined: Tue Jun 25, 2019 6:18 am

Generation error: Could not load file cor assembly 'Techtalk.SpecFlow, Version=1.0.0.0, Culture=neutral,...

Post by varsha07 » Tue Jun 25, 2019 6:31 am

Hello Team,

Following the tutorial steps from URL: 'https://www.ranorex.com/blog/how-to-use ... d-process/', same was performed on my machine.

I have already integrated visual studio and ranorex.
I have taken the sdaddin file from specflow folder and placed on ranorex installation folder 'addins/misc'.
I was also able to create the specflow feature file from ranorex studio but on the .feature.cs file, a generation error was seen as below:

#error Generation error: Could not load file cor assembly 'Techtalk.SpecFlow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41' or one of its dependencies. The system cannot find the file specified.

Can you please advise how to fix this?

Thanks,
Varsha

User avatar
qwertzu
Posts: 284
Joined: Wed Jan 25, 2017 11:08 am

Re: Generation error: Could not load file cor assembly 'Techtalk.SpecFlow, Version=1.0.0.0, Culture=neutral,...

Post by qwertzu » Thu Jun 27, 2019 1:00 pm

hi,

have you added the specflow package via the package management console as described under the link you mentioned?

add_package.png
add_package.png (9.75 KiB) Viewed 412 times
your error states that the specflow assembly is missing.

regards, qwertzu

ramanaramidi
Posts: 28
Joined: Wed Feb 26, 2020 6:51 am

Re: Generation error: Could not load file cor assembly 'Techtalk.SpecFlow, Version=1.0.0.0, Culture=neutral,...

Post by ramanaramidi » Fri Feb 28, 2020 7:51 am

Hi,

We don't have the package management console in View -> Tools in Ranorex 9.2.1

I have used Project -> Mange Packages option to install the required packages.

Please letme know if this is fine


Regards,
Ramana

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6360
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Generation error: Could not load file cor assembly 'Techtalk.SpecFlow, Version=1.0.0.0, Culture=neutral,...

Post by odklizec » Fri Feb 28, 2020 8:43 am

Hi,

There should definitely be Package Management Console under View >> Tools menu. Just check it again.
PackageManagementConsole.png
PackageManagementConsole.png (31.29 KiB) Viewed 236 times
Anyway, all is OK after installing required packages via Project -> Manage Packages?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration