Unsolved
This post is more than 5 years old
1 Rookie
•
70 Posts
0
27913
March 9th, 2010 21:00
Error loading FPLibrary from local system
Hi Experts,
I have a custom code which access Centera for getting some data, but getting below error while executing.
Error loading FPLibrary or one of its dependencies(-10027). ( Error occurs on the line of code as below
FPPool.setGlobalOption(FPLibraryConstants.FP_OPTION_OPENSTRATEGY,FPLibraryConstants.FP_LAZY_OPEN);)
I am not having much information about Centera and hence need some guidance if I need to install something to get this working. The same code works fine on my colleagues system and some Centera system is installed on his system.
Does installing Centera Console make it work.
Please help me if already experienced same problem.
Thanks
Prashant Kasbe
gstuartemc
2 Intern
•
417 Posts
1
March 10th, 2010 00:00
Have you installed the full Centera SDK, including all the relevant DLL files? It looks like you are using the Java SDk and you probably don't have the underlying required C SDK libraries installed and on your PATH.
Kasbe_Prashant
1 Rookie
•
70 Posts
0
March 12th, 2010 01:00
Thanks Graham for the post,
I installed "CenteraTools_4_1_WIN.exe" and not the error message has changed to
Failed to authenticate PEA data(-10153)
This is thrown at the following line of code
FPPool thePool = new FPPool(poolAddress);
Could you let me know the reason.
Thanks in advance
Prashant
khanz1
2 Intern
•
136 Posts
0
March 12th, 2010 08:00
Hi Prashant,
This error points to an issue with the PEA file you are using. Please check to make sure you are using a valid PEA profile or are using a valid name/secret combination. Which Centera cluster are you using to test? Did you get the PEA file from this list of available Centera clusters?
Thanks,
Zeeshan
mckeown_paul
409 Posts
0
May 3rd, 2010 06:00
As long as they are on your PATH or in the processes current working directory when it runs, then thats fine
kjward1
5 Posts
0
May 3rd, 2010 06:00
these?
FPCore.dll
FPLibrary.dll
FPLibrary.lib
fpos32.dll
fpparser.dll
FPStreams.dll
FPUtils.dll
FPXML.dll
pai_module.dll
do i need to install anything to get these in the right location, or can i simply copy them to a specific location? would my deployment folder be a suitable place to park them, as long as that folder is in the PATH variable?
thanks paul.
-kevon
mckeown_paul
409 Posts
0
May 3rd, 2010 06:00
Are the DLLs on your PATH on this server?
mckeown_paul
409 Posts
0
May 3rd, 2010 06:00
yes you'll need all the files that are in the lib dir on the SDK download
kjward1
5 Posts
0
May 3rd, 2010 06:00
hi paul-
thanks for the quick response! the only "centera" file that currently resides on that server is the fpsdk dll in my deployment folder. i'm guessing i'll have to install others?
thanks
kjward1
5 Posts
0
May 3rd, 2010 06:00
i copied them over and volia! the sun is shining and the birds are chirping...all is well in centera-land!
thanks ever so much for helping me get this back on track, paul.
cheers
-kevon
kjward1
5 Posts
0
May 3rd, 2010 06:00
good morning graham-
i find myself in a similar quandry. i have developed an extensive centera "dashboard" in visual studio 2008 and c# using the most recent fpsdk (3.2.4.0 nov09). everything is singin' and dancin' on my pc (xp sp3 x86). i have specified in my .net solution to "copy local" the fpsdk dll upon deployment.
now that i have deployed the exe to one of our x64 servers, i get the same "error loading fplibrary" complaint from the server. i surmise there is more to supporting the deployment vis-a-vis the fpsdk than simply copying the dll to the deployment folder? what will i have to do to satisfy the seemingly persnickity server?
thanks graham.
-kevon
kjward1
5 Posts
0
February 16th, 2011 12:00
here are my notes to myself once I got it all up and running...hope it helps:
Centera Setup/Requirements
There are a number of prerequisites that must be satisfied prior to a successful deployment of any Centera C# project:
1) Perl
Some suitable incarnation (ActivePerl, etc.) must be installed on the box where development is done.
The install must include adding the location of the Perl components to the PATH system variable.
2) Centera SDK (v3.2.705 as of Dec2009)
Extract the following files from the latest version of the SDK into the DEBUG folder of the VS project:
FPLibrary.dll
Fpos32.dll
Fpparser.dll
Pai_module.dll
3) PEA Files (Pool Entry Authorization)
These files are created and distributed by the local Centera administrator, and should be placed in a location on the dev/prod box which is known to the deployed code.
4) .NET Interface API library ( FPSDK.dll =>“.NET Wrapper”)
This dll needs to be a reference in the VS project. It is obtained from SourceForge (FPApi.NET.zip) and will need to be opened and compiled from VS.
The resulting dll can then be copied to a known location to resolve any project references.
cheers
krossa
1 Message
1
February 16th, 2011 12:00
I'm having the same issue, and it doesn't seem to matter where I put the FPLibrary.dll file, I still get this error. Can you give me some specifics about the PATH and current working directory that you refer to. I'm learning as I go, working with a sample project, Adrd Project Centera 1, and have the following files in the Visual Studio 2010\Projects\AdrdProjectCentera1\bin\Debug directory.
AdrdProjectCentera1.exe
AdrdProjectCentera1.pdb
AdrdProjectCentera1.vshost.exe
AdrdProjectCentera1.vshost.exe.manifest
FPLibrary.dll
fpos32.dll
fpparser.dll
FPSDK.dll
FPSDK.pdb
pai_module.dll
us1_profile1_rwqe.pea
us1_profile2_rwqedp.pea
us1_profile3_rwqedpD.pea
us2_profile1_rqecw.pea
us2_profile2_rdqecw.pea
us2_profile3_rdqeDcw.pea
us3_profile1_rqecw.pea
us3_profile2_rdqecw.pea
us3_profile3_rdqeDcw.pea
us4_profile1_rwqec.pea
us4_profile2_rwqecd.pea
us4_profile3_rwqecdD.pea
us5_profile1_rwqec.pea
us5_profile2_rwqecd.pea
us5_profile3_rwqecdD.pea
For the PRSDK.dll, I copied the project to my machine, built it, then copied the FPSDK.dll and FPSDK.pbd to this directory. Then added it to the sample project.
I'm new to Centera development, so any help is really appreciated.
Thanks
gstuartemc
2 Intern
•
417 Posts
0
April 6th, 2011 08:00
In kjward's earlier post he states you need Perl - you don't for the latest versions of the .NET wrapper. In earlier versions, there were issues with runtime signatures that required patching of the IL, which was done by Perl scripts. In the later versions, this is handled by attributes that became available in later version of the .NET Framework.
Also - you should never put unmanaged DLLs (i.e. DLLs that are not .NET assemblies) in the same directory as your deployed .NET application and any additional assemblies it uses (in this case, FPSDK.DLL - which, ideally, should be added to the GAC and included there).
The native Windows DLLs (in this case the underlying Centera SDK DLLs) should be put in a directory on your Windows search PATH.
gstuartemc
2 Intern
•
417 Posts
0
April 6th, 2011 08:00
Looks like you have a space in your PEA file path. If that is the case, you need to "escape" that as well.
Are you running on Vista? Note that this this is not officially supported and you may hit problems!!
NRushefsky
4 Posts
0
April 6th, 2011 08:00
Graham,
I removed the space in the file path.
I still get the same error when running this line.
Are there any other things I should be looking for?
Currently my development machine is Window 7 Professional with SP1.
My very simple code is as follows:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using EMC.Centera.SDK;
namespace Centera_Test
{
public partial class Form1 : Form
{
const String CENTERA_PEA_LOCATION = "C:\\Users\\nrushefsky.VISTASG\\Documents\\PEAFiles\\emea3profile1_rdqeDcw.pea";
public Form1()
{
InitializeComponent();
}
private void btnConnect_Click(object sender, EventArgs e)
{
try
{
FPPool.OpenStrategy = FPMisc.LAZY_OPEN;
EMC.Centera.SDK.FPPool thePool = new FPPool(CENTERA_PEA_LOCATION);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
}