i can't execute program in visual studio without administrator account after changing the assembly name

광효 이 0 Reputation points
2025-06-17T01:28:27.9066667+00:00

Hi,

after windows updates,

I can't execute program on visual studio (Debug/Release) without administrator account

after changing assembly name.

changing version name of assembly name is able to execute program without administrator account.

ex) Device Manager - Ver 1.2.1---> Device Manager - Ver 1.0.0

but changing all name of assambly name is not able to execute program without administrator account.

ex0 Device Manager - Ver 1.2.1--> Device FW Update Manager - Ver 1.0.0

User's image

why is it?

Thank you,

leegwanghyo

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 1,465 Reputation points Microsoft External Staff
    2025-08-05T10:11:28.26+00:00

    The issue is happening because changing the full assembly name (like product name or title) can cause Windows User Account Control (UAC) to treat the program as a new or unknown application.

    Below steps can be followed

    1. Right-click your Visual Studio shortcut → Run as Administrator.

    This gives full permission for testing the new assembly name.

     2. Check your project’s manifest file: Go to your .csproj or project properties → Application tab → Manifest. Set it to "asInvoker" if it's set to "requireAdministrator".

    This prevents asking for admin rights every time.

    3.Changing small version parts (e.g., Ver 1.2.1 → 1.3) ,changing the whole name (e.g., Device Manager → Device FW Update Manager) can trigger UAC.

    1. After changing assembly name, do clean Solution and rebuild Solution

    If still blocked, use Windows Defender → Allow app through controlled folder access.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.