Skip to content

[Bug]: Installer does not check for .NET "core" runtime #2730

@Maxumer72

Description

@Maxumer72

✈ Pre-Flight checks

  • I don't have SentinelOne antivirus installed (see above for the solution)
  • I have searched in the issues (open and closed) but couldn't find a similar issue
  • I have searched in the pyRevit Forum for similar issues
  • I already followed the installation troubleshooting guide thoroughly
  • I am using the latest pyRevit Version

🐞 Describe the bug

After installing pyRevit it does not show up in the Revit toolbar and does not prompt to load when opening revit for the first time after installation.

⌨ Error/Debug Message

Nothing

♻️ To Reproduce

  1. Install the latest version (5.2.0.25181 at the moment)
  2. Launch Revit to check the plugin
  3. Do not see the window asking about loading the plugin
  4. Search for a solution to the problem

⏲️ Expected behavior

I expected the plugin to start

🖥️ Hardware and Software Setup (please complete the following information)

C:\Windows\system32>pyrevit env
You must install .NET to run this application.

App: C:\Program Files\pyRevit-Master\bin\pyrevit.exe
Architecture: x64
App host version: 8.0.17
.NET location: Not found

Learn more:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=win-x64&os=win10&apphost_version=8.0.17

Additional context

OC: Windows Server 2022 21H2 20348.2849

My problem is SOLVED, solution below!
_

I don't speak English very well and this text was written using Google Translate,
I apologize in advance for any inaccuracies or misunderstandings.

_
Hello to the developers and other applicants for this problem.
I am an IT specialist, with some knowledge of githab and how to search for errors in certain problems. I hope that this ticket will help someone in the future quickly fix the same problem as me.

SOLUTION:
As you can see above, when I ran the pyrevit env command in cmd as administrator, it told me that I do not have .NET application installed. I solved it like this:

  1. Removed all installed versions of pyRevit
  2. Downloaded the latest version of .NET from the official Microsoft website:
    https://dotnet.microsoft.com/en-us/download/dotnet/8.0
  3. Reinstalled pyRevit, version Admin / All Users
    After that, I ran pyrevit env and this is what I got:
Image

Initially, I thought that this plugin in principle does not work well with Windows Server, but after installing it on another server, everything worked out the first time and everything works fine
(as far as I can judge by the work in principle, but not its correct operation, I do not know from the designer's side how it should work):
cmd => pyrevit env from another server:

Image

Then, I started looking for similar problems in GitHub and on the forum and did not find anything similar. Therefore, I began to figure out how my servers are different.
I guess I just needed to update .NET Framework, not .NET, but now everything works, and as they say: "If it works, don't touch it".

I hope this solution helps someone in the future!

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBug that stops user from using the tool or a major portion of pyRevit functionality [class]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions