geberit / Revit.TestRunner

Unit Test Runner for Autodesk Revit
MIT License
81 stars 28 forks source link

Revit cannot run external application "Revit.Testrunner" #18

Open sylvesp opened 2 years ago

sylvesp commented 2 years ago

I am trying to install the Revit.Testrunner binaries on my machine. After downloading it, I unzip the package and run the .cmd file from a console that is running in admin mode. The Revit.TestRunner.addin is properly placed in the Revit Addins folder.

When I try to run revit I am getting the following error image

I did disable ALL other revit addins. If I attach a VS debugger then the only problem I see in the output window is: Exception thrown: 'System.IO.FileLoadException' in mscorlib.dll

This happens for all the Revit versions 2019-2022 and both 3.4 and 3.5 versions of the runner

If I download the source and compile it then everything works fine.

Any idea what may be wrong/missing in the binary .zip install packages?

sylvesp commented 2 years ago

It seems that if I compile the source code on my machine and replace the Revit.TestRunner.dll from the zip Install package with the one built on my machine, then everything works. Is it possible that there is a bad Revit.TestRunner.dll in the TestRunner_bin-3.5.zip package?

tobiasfloescher-geberit commented 2 years ago

Hi. I downloaded the package by myself and try. But all works fine. No errors on Revit start, and the logfile tell me that all is working. Maybe you have a too long path name, or it contains some strange characters, witch Revit cannot handle? What is your path to the dll?

sylvesp commented 2 years ago

Hi Tobias,

This is how I've done it

This did happen on the machines of 3 other developers - so that it is not an isolated one that is happening only on my machine. I also understand that this may be tricky to track it down as there is very little debug info available :(

sylvesp commented 2 years ago

Well.. after some more research, seemingly on other machines is NOT enough to replace the dll. You HAVE TO build the dll on that machine. This makes me think that there is something referenced by the Revit.TestRunner.dll that is missing from our machines and is downloaded during the VS build time (?!?)

tobiasfloescher-geberit commented 2 years ago

This is strange. I have installed TestRunner from the zip on a tester machine (no development or visual studio on this machine), no problem to start the addin. some troubles regarding .net core with the app, but that's another story.

Need to investigate more in deep. What path is written in the addin file? Is this path valid? After executing the cmd, do not move or rename the folder.

Kumarravi007 commented 2 years ago

Hi I install the add-in and when I start the Revit, the add-in is not clickable. Please help me to solve this issue.

tobiasfloescher-geberit commented 2 years ago

Hi @Kumarravi007, The button in the Add-ins section is only clickable when no document is loaded.

Kumarravi007 commented 2 years ago

Hi Tobias

Thanks for the quick reply.

I try it again without any project loaded in Revit version 2022.

Please correct me if I am wrong, if possible please share a small video which would be very helpful.

Image for reference. image

Hoping to hear from you soon.

Best

tobiasfloescher-geberit commented 2 years ago

Hi @Kumarravi007. I have moved your issue #25.

Kumarravi007 commented 1 year ago

Hi Tobias

Thanks for the quick reply.

I try it again without any project loaded in Revit version 2022.

Please correct me if I am wrong, if possible please share a small video which would be very helpful.

Image for the reference [image: image.png]

Hoping to hear from you soon.

Best Ravi

On Thu, Apr 7, 2022 at 11:26 AM Tobias Flöscher @.***> wrote:

Hi @Kumarravi007 https://github.com/Kumarravi007, The button in the Add-ins section is only clickable when no document is loaded.

— Reply to this email directly, view it on GitHub https://github.com/geberit/Revit.TestRunner/issues/18#issuecomment-1091109413, or unsubscribe https://github.com/notifications/unsubscribe-auth/APB2GYRXTXKXNEUETGSBD73VDZ2IJANCNFSM5MIAVNQA . You are receiving this because you were mentioned.Message ID: @.***>

tobiasfloescher-geberit commented 1 year ago

Hi @Kumarravi007, please see issue #25.

andrewbutenko80 commented 1 year ago

Hi Tobias Thanks for the quick reply. I try it again without any project loaded in Revit version 2022. Please correct me if I am wrong, if possible please share a small video which would be very helpful. Image for the reference [image: image.png] Hoping to hear from you soon. Best Ravi On Thu, Apr 7, 2022 at 11:26 AM Tobias Flöscher @.> wrote: Hi @Kumarravi007 https://github.com/Kumarravi007, The button in the Add-ins section is only clickable when no document is loaded. — Reply to this email directly, view it on GitHub <#18 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APB2GYRXTXKXNEUETGSBD73VDZ2IJANCNFSM5MIAVNQA . You are receiving this because you were mentioned.Message ID: @.>

I have the same problem. The button is not available.

tobiasfloescher-geberit commented 1 year ago

Hi Tobias Thanks for the quick reply. I try it again without any project loaded in Revit version 2022. Please correct me if I am wrong, if possible please share a small video which would be very helpful. Image for the reference [image: image.png] Hoping to hear from you soon. Best Ravi On Thu, Apr 7, 2022 at 11:26 AM Tobias Flöscher @.**> wrote: Hi @Kumarravi007 https://github.com/Kumarravi007, The button in the Add-ins section is only clickable when no document is loaded. — Reply to this email directly, view it on GitHub <#18 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APB2GYRXTXKXNEUETGSBD73VDZ2IJANCNFSM5MIAVNQA . You are receiving this because you were mentioned.Message ID: @.**>

I have the same problem. The button is not available.

Hi @andrewbutenko80, please see issue #25. Thank you.