Summary

Title:License Server Installer Error
Category:Install/Uninstall
Status:Open
Posted By:shawnolson ( Shawn Olson )
Date Created:18 November 2015

Problem

Description:

I upgraded to OX4 last night and while installing the license onto my server machine, I was prompted with a Windows message saying something like the program might not have installed correctly and would you like to run the program again with the recommended settings. I chose yes.

When doing that, I kept getting a Pop-Up error dialog. I'm pasting the complete message here:

Acces to the path C:\users...Local\Ephere\__temp is denied

 

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Users\Shawn\AppData\Local\Ephere\__temp' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
   at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
   at System.IO.Directory.CreateDirectory(String path)
   at #=qXnYlfJsDZzTSCvBeAvf66ZCDjZzvaNlTwCHfvZcmxZf6vApau9IQwqQ6GzRGFeiS.#=q7AIkhS_4OCNdaTjydBxrhxFhmcaG6ZYbQjPOwOuzmtQ=(#=qCQiF6URnXxF92DWfblsJhdU1BPHAxYqid6jv__mEH3$Pp0EQL809dPzsiiJujjyZ #=qDKNcCXFaNRmudP0IF0oSuw==, String #=q1rhxzbuAolHwgjq6hfd6_A==, String #=qil49tsQq5qtwS5DXMBuCvg==, Int32 #=qljx_vY8p1_RsNlKE1jAqnA==)
   at #=qsmyBEKi3L7vkL_6WzGt$imsSiDX46m28j9EIVEuks0vWJ$bDdXBEFJ96GiaKVtcM.#=qilkUvzop0SnYHktdtxEUFrNeJT0rX0fALyS99mgMyIvc64l2skHl8mgJVqAgFE2K(Object #=qYGRdznG77mKbCzpQG$dpiA==, EventArgs #=qetiTCfxOlGQuVxyJEQs1Lg==)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

So I then ran the Installer again as Administrator. This time it brought up the License Server activation dialog. It ran but didn't say anything like "Success" when complete. Instead, it said something like the action returned exit code 1. (Sorry I didn't write that one down). It wasn't until I installed and launched on other machines that I knew it installed and worked.

So all is good. Just sharing information as I was a little confused during the process.

 

 

Steps to Reproduce:

Thank you for the write up Shawn, we will look at this.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Just a follow up on this. When I installed the OX license on my license server, the Zookeeper license was deactivated. I had to reinstall ZK on the LS after the install.

 

Max & Maya USD Product Owner @ Autodesk

Developer of Wall Worm

 

Digging this up as it's related.

I just grabbed OX5 and installed the OX5 license on my license server. I encountered same issue as above (forgetting to run as admin initially). After running as admin and the license installer downloading a file from ephere.com, here was License Installer info (with actual license file info removed):

LicenseAssigner revision 10060
Stopping license server...
Please wait, licensing in progress...
Downloading https://ephere.com/################################`Microsoft Windows NT 6.2.9200.0.1.zip
Installing license server
Error: Process returned exit code 1
Press Enter to exit

But when I run the Licenense Server Manager on the server machine, OX5 license isn't showing. However, the OX5 download page seems to think all went well as it now has a link for downloading the OX5 license for the previously licensed computer.

Any help would be appreciated :)

 

Max & Maya USD Product Owner @ Autodesk

Developer of Wall Worm

 

Hi Shawn,

If am I understanding correctly, you have Ornatrix licensed to anoher computer, in this case you have to reset your hardware lock and reinstall Ornatrix in your new computer. 

You can use this link to reset your hardware lock: https://ephere.com/plugins/autodesk/max/ornatrix/licensing.html

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

That would be very odd since I just downloaded OX5 for the first time onto my License Server machine. I had never installed OX5 (or OX5 license) until I just bought it. After purchase, I downloaded the license installer from the OX download page and ran it from the license server machine.

 

Max & Maya USD Product Owner @ Autodesk

Developer of Wall Worm

 

Alright, I will send this to Ivan, he might be able to help you with this. Sorry for the inconvenience. 

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

Much appreciated :)

 

Max & Maya USD Product Owner @ Autodesk

Developer of Wall Worm

 

I figured out a method to get this to install.

After reading the original post from last time I upgraded (to OX4) and trying the license installer several times, I did some tinkering. As mentioned in OP, there was an error about permission denied for:

System.UnauthorizedAccessException: Access to the path 'C:\Users\Shawn\AppData\Local\Ephere\__temp' is denied.

I ended up adding the Users Group to have all permission to this folder:

C:\Users\Shawn\AppData\Local\Ephere

Now the intaller worked!

Hopefully the helps anyone else having this issue. For reference, the license server is running Windows 10 Professional.

 

Max & Maya USD Product Owner @ Autodesk

Developer of Wall Worm

 

Hi Shawn. I'm afraid I can't help much in this case (Marsel is the ultimate authority on licensing), but this error about denied access to __temp looks very strange to me. I don't see how it can happen, the installer requests administrator rights to run (I suppose Windows asks you for admin permissions, as long as you haven't disabled UAC?), so the only way for __temp to be inaccessible is that another instance of the installer is already running and has locked that directory. I'd have suggested that you simply restarted the machine and retried.

OTOH, if giving permissions to the User Group over the ...\Local\Ephere folder did trick, it sounds as if the installer never ran with admin rights for you (and the permissions you added allowed it to do its job without admin rights).

Ivan Kolev (Software Developer, EPHERE Inc.)

E-mail: ivan.kolev at ephere dot com

Discord: ikolev

That's the odd thing. Before changing permission, here are all the steps I took (in various combinations) to try and get it to work:

 

  • No Admin: Double-click installer... which brings up the UAC elevated permission prompt. This failed.
  • Explicitly Run as Admin (with right-click... run as..) This failed.
  • Open a CMD prompt and browse to install file. This failed.
  • Open a CMD prompt with Explicit Run as Admin to execute installer. This failed.

It was only after changing the folder permission that it worked... which was really just a last-ditch effort at grasping at straws. Why the others failed, I have no idea. But at least it's up and running now :)

 

Maybe it's some new Windows 10 Voodoo that came as a feature in a Windows Update. Already twice in last year a Windows Update has broken visual studio and later magically broken projects by changing the Windows SDK... so that's my current working assumption :P

 

Max & Maya USD Product Owner @ Autodesk

Developer of Wall Worm

 

I realized that giving yourself (or the Users group) permissions to anything under C:\Users\<your-username> is rather strange, because this is your own home directory. Well, unless the object was created by a process running as a different user. What were the permissions of the Ephere folder before you added the Users group? Could it be that you had installed the license server in the past under a different username?

I tried re-authorizing Ox/3dsmax here after stopping the Ephere license service and deleting the whole C:\Users\<username>\AppData\Local\Ephere directory. A new Ephere directory got created with full permissions to SYSTEM, Administrators, and my user; and authorization succeeded. I'm on Windows 10 too, with latest updates.

Ivan Kolev (Software Developer, EPHERE Inc.)

E-mail: ivan.kolev at ephere dot com

Discord: ikolev