Skip to content

Attach to process C#

Hi,

 

I have a new computer and installed visual studio 2017 and the Tools for Visual Studio for PLCnext Technology C# programming. 

I can create a function block and import it to plcnext engineer and it works fine in project and on plc. 

The problem I have is when I try to debug it the eClr does not appear in connection type. I think I have installed and created everything according to instructions in Instructions .

In my previous computer it worked.

What have I missed? 

I am using virtual machine and windows 10 pro 1909.

Best regards Stefan

 

 

 

Comments

  • Hello Stefan,

    do you also deactivated the user authentication of your controller via WBM ?

    Is the PLCnext Controller and PC in the same Subnet, can you ping controller?

    Best Regards

    Eduard

  • Hi Stefan,

    I am not able to reproduce your issue. I have a similar setup and it works fine. Can you please answer me some questions:

    Which version of the Addin are you using? (you can find the exact version including the build number in the details of the setup file)

    PLCnextVSAddin

    Which version of Visual Studio 2017 are you running (Community, Professional...)

    Did you open a solution before attaching to process? Did some time pass since opening the solution (in the bottom left corner of Visual Studio you can find background task information), the Addin can take some time to load.

    Did you already try to restart VS and reinstall the Addin?

    - Marcel

     

  • Hi,

     

    Thanks for reply. 

    I have reinstalled the addin, also installed and reboot pc before opening project. 

    My software versions are in attached files. I think I use the latest tool from phoenix site. 

    br Stefan

     

  • Ok, two more ideas and questions:

    Please run in a console with admin rights the following command (if you installed you VS in the default location):

    "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe" /setup

    PLCnextVSAddin setup

    This will take some time and there is no indication beside the task manager when its finished.

    The second thing is a request for an other information:

    This folder should look similar to the screenshot in your installation and should contain the Ade.Eclr.Vsde.dll. The path and the content would be interesting. Normally the installer for Visual Studio Extentions should do it right. The subfolder 15.0_1e503d03 depends on your version of Visual Studio and the last folder name is some how random.

    PLCnextVSAddin debugging

    - Marcel

  • I have run the command as admin and the folder seems to look the same. But eClr is still missing from drop down list.

    I will try to install visual studio 2015 and see if it works there.

    /Stefan

  • Hi Marcel,

    After installing visual studio 2015 it works, both in 2015 and 2017.

    Strange that the visual studio 2015 installation was needed.

    Best regards Stefan

  • I have exactly the same problem with Visual Studio 2017. There was no option to connect to the eCLR process in the debugger. After installing additional Visual Studio 2015 the option appeared.

  • Hi Konrad,

    which version of the Addin did you install? Please download and install the new Version (it should appear in your Visual Studio Extentions and Updates as Version 3.3). The Update includes some bug fixes, supports Visual Studio 2019 and PLCnext Engineer 2020.0 LTS. I was not able to reproduce this issue. I am running Visual Studio 2017 on my Host system (no VM).

    - Marcel

  • Hi Marcel,

    I've just installed on my other host system (without any other version of MS Visual Sudio) Visual Studio Community 2019 (version 16.4.4), the newest Visual Studio Extentions (version 3.3), PLCnext Engineer 2020 LTS and still there is no eCLR Device available on the list.

    debug

  • Hi Conrad,

    thank you for testing. I will talk to the developers. It looks like an issue with the installer.

    Can you see the "PLCnext Technology Debug Engine" in the Extentions and Updates Settings of Visual Studio?

  • Yes I Can.

    ext

Sign In or Register to comment.