This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to resolve server-level access rights permission on building VAF Application

Hello,

I am trying to build a sample VAF application.
In my solution I have :

  • appdef.xml (always copy true)

  • MFVaultApplicationInstaller.exe (copy if newer)



in the Post Build I execute the following script :
start "Installing Vault Application" /D "$(TargetDir)" "MFVaultApplicationInstaller.exe" "Some Vault Name"


When I build the application, I get the following error :

You do not have the server-level access rights required by this operation

To compensate this :

  • The logged in user has Admin level permissions

  • I execute visual studio in Administrator mode

  • Also If executed in command prompt I make sure it runs in Administrator mode



Is there something I am missing?

Regards,
Shoeb

  • Hi Shoeb,

    Firstly: you seem to be using the VAF 1.0 template. This is quite old now and, assuming you aren't targeting old versions of M-Files, I would highly recommend that you use the VAF 2.0 or VAF 2.1 templates and runtimes.

    Secondly: this error is because your current Windows user (the one executing the installation) is not marked as a server administrator in M-Files. You need to create them a user, assign them a licence, and ensure that they have the "Server Administrator" role.

    Regards,

    Craig.
  • Hey Craig,

    Thanks for the prompt response.
    Yes I got the applications from the SamplesAndLibraries Github repository. I am using VAF 2.1 but the I couldn't find much details regarding building or at-least executing the first sample application.

    Can you please let me know if there's a Github repository with VAF 2.1 applications ?

    Regards,
    Shoeb
  • The sample applications use the VAF 2.1 runtime already (or should - I checked this for you before), but they use the older installer. My mistake: I read that you had created this from a template.

    Regards,

    Craig.
  • Hi Craig,

    I didn't use the template. I just created a Class Library with .Net 4.8 and used M-Files Nuget Packages. I am able to resolve this one. I did give "Administrator rights" from M-Files to the user.

    Regards,
    Shoeb
  • Hi Shoeb,

    My strong recommendation is to use the templates available, as these automate some of the compilation/deployment steps. These are within the Partner Portal (search for "VSIX"). If you are not a partner then you will need to request these via your partner or M-Files Account Manager.

    Regards,

    Craig.