question

CharlesLales-4924 avatar image
0 Votes"
CharlesLales-4924 asked CharlesLales-4924 commented

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

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

vs-generalvs-debuggingvs-setup
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DylanZhu-MSFT avatar image
0 Votes"
DylanZhu-MSFT answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CharlesLales-4924 avatar image
0 Votes"
CharlesLales-4924 answered CharlesLales-4924 commented

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

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @CharlesLales-4924 , as far as I know, there aren't these options for visual studio. And you can try to follow this document to troubleshoot it, if it doesn't work, we suggest you report it on developer community: https://developercommunity.visualstudio.com/report?space=8&entry=problem

0 Votes 0 ·

Hi,

Done, issue report submitted.

Kind regards,

Charles

0 Votes 0 ·