You must Sign In to post a response.
  • Category: Windows

    How to reference/store assemblies from relative path

    I am working on windows application . Please find below the probing of private path in appconfig

    <probing privatePath="%PROGRAMFILES%\Temp\"/>

    I want the dll's to be referenced to \Users\xxxx\AppData instead of probing.

    How can i changes this logic to store/reference the dll's from relative path.

    . I am new to dotnet & windows application .

    The above application will be installed in client machine in Windows 10 OS & the dll's will be copied to program files application path , Since users have permission issues for storing the dll's with this path. We want to change the location of dll's to appdata path( \User\xxxx\AppData ) so that with normal account application can be installed.

    Can it be possible to have logic which is generic & to reference the assembly from generic path & not to hard code the path of the assembly in app config .

    Please let me know your suggestion.

    Thanks in advance.
  • #769438
    Hi TechSavvy,

    In this case , you have user permission issues, to solve this problem you need to add Admin permission when install the software .

    In Application manifest file you edit this line ,
    <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>

    thats all. i hope your UAC issue will be solved.


  • Sign In to post your comments