question

Flavio Oliveira_de_brito avatar image
0 Likes"
Flavio Oliveira_de_brito asked Phil BoBo commented

OptQuest Error -1

Hi,

The OptQuest Error is happening when I try to run it. According to debug, the errorCode = -1.

I tried this license in other pc and it worked well.

No exceptions is showed and this same model ran in other pc, even a simple model don't run.

Thanks,

Flavio Brito.

FlexSim 17.1.2
optquest error
capture.png (46.5 KiB)
capture2.png (53.0 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
2 Likes"
Phil BoBo answered Phil BoBo commented

That error happens when the Optquest DLL wasn't correctly registered by the installer.

Perhaps you are missing the version of .NET framework version that is being used to register the Optquest DLL?

Trying doing the following to register the OptQuest DLL manually:

Open a Command Prompt (Admin) by running command prompt as an administrator. Then execute the following two commands:

cd "C:\Program Files\FlexSim 2017 Update 1\program"
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\regasm.exe .\comoptquest.dll
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Flavio Oliveira_de_brito avatar image Flavio Oliveira_de_brito commented ·

Hi Phil,

Now it's ok, but I had to change the command "cd "C:\Program Files\FlexSim 2017 Update 1\program"" to "cd "C:\Program Files\FlexSim17.1\program"", because the Installer.exe is different of .msi (in this case I used .msi x64 to install). Is a good idea to fix it in next release.

Obs: The image below is from the previous version as told with @Ralf Gruber

Thanks.

3 Likes 3 ·
Phil BoBo avatar image Phil BoBo ♦♦ Flavio Oliveira_de_brito commented ·

The problem might be that the exe installer is registering optquest, but the msi installer is not. I'll make a note on the dev list to look into that.

Thanks for the additional information.

0 Likes 0 ·