Form edition .NET5 blocked by group policy - AppLocker blocking DESIGNTOOLSSERVER.EXE from TEMP folder

Charles Lales 1 Reputation point
2021-03-25T11:51:19.12+00:00

Dear support,

I do use current vs2019 v16.9.2

I do have currently an issue when trying to edit a Form of a project targeting .NET5: just get a popup "This program is blocked by group policy...."

Checking log from Event Viewer to see what AppLocker blocks: %OSDRIVE%\TEMP\WINFORMSCACHE\ZDU3FGFN.CIC\DESIGNTOOLSSERVER\DESIGNTOOLSSERVER.EXE was prevented from running.

There is no such error when editing a Form from another project targeting .NET Framwork 4.7.2.

What could be done? Is there a setting for vs2019 to use another temp folder?

Kind regards, Charles

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,448 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
695 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
702 questions
No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,346 Reputation points
    2021-03-26T02:17:22.293+00:00

    Hi CharlesLales,

    It seems that there are some limitation on your environment. You can try to follow these steps to troubleshoot it:

    1. Confirm you can use .NET 5.0 framework in your environment
    2. Try other machines in the same environment
    3. Uninstall and reinstall .NET5.0 framework
    4. Recreate a new Winform project

    If they don't work, please contact your system adimistrator.

    Best Regards, Dylan

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our * *documentation* to enable e-mail notifications if you want to receive the related email notification for this thread.**

    No comments

  2. Charles Lales 1 Reputation point
    2021-03-26T11:04:16.703+00:00

    Hi,

    I can compile and exec .NET 5.0 Form.

    Simply when trying to edit this form, vs2019 try to exec this:
    %OSDRIVE%\TEMP\WINFORMSCACHE\ZDU3FGFN.CIC\DESIGNTOOLSSERVER\DESIGNTOOLSSERVER.EXE

    And %OSDRIVE%\TEMP is blocked by AppLocker for standard user.

    If I run the application with ADM elevation -> working of course.

    So 2 options:

    • A setting in vs2019 let change this tmp location to another folder
    • System Adm create an exception in AppLocker for this particular folder..

    Kind regards,
    Charles


  3. Maksym Zaiarniuk 1 Reputation point
    2022-09-27T09:39:42.23+00:00

    similarissue after vs update maybe;
    why it clone here in temp my project and cache use all space
    WinFormsCache\zac1wwnx.2oe\DesignToolsServer\UserAppData
    and form design not open same for 5.0 and 3.1 core

    No comments