Download Blaze Trial
Follow FICO
LinkedIn   Twitter   Youtube
Close To access this section, please choose the Community Neighborhood in which you have the most interest.

» Business Rules Management
» Collections & Recovery
» Fraud Management
» Risk Management
» Scoring
Close To access this section, please choose the Community Neighborhood in which you have the most interest.

» Business Rules Management
» Collections & Recovery
» Fraud Management
» Risk Management
» Scoring
Reply
Regular Visitor
Posts: 6
Registered: ‎12-06-2008
Accepted Solution

Receiving errors While connecting to File based repository using C# code

[ Edited ]

All,

 

I am able to connect to the Repository (non-versioned) on my machine and when I tried to copy the same Respoitory to other machine which has Blaze Installed on it, I am receving the errors. Find the errors pasted at the end of the message.

 

   Here is the connection snippet code:


            NdFileRepositoryConnection connection = new NdFileRepositoryConnection();

            connection.setRepositoryFolder("C:\\CODEBASE\\RULES REPOSITORY\\MYRepository" );

            NdRomConnectionManager connectionMgr = null;
            try
            {
                connectionMgr = NdRomFactory.newRepositoryConnectionManager(connection);
            }
            catch (Exception ex)
            {
             
            } 

 

{"Cannot find com/blazesoft/template/engine/NdProductInfo.properties"}

   at com.blazesoft.repository.file.NdFileRepository.getRepositoryConfig()
   at com.blazesoft.repository.local._NdA..ctor(NdWorkspace A_0, NdRepository A_1)
   at com.blazesoft.repository.local.NdLocalRepository..ctor(NdRepository repository)
   at com.blazesoft.repository.base.NdRepositoryFactory.newWorkspace(NdWorkspaceConnection repConnection)
   at com.blazesoft.template.repository.NdRomFactory.newRepositoryConnectionManager(NdWorkspaceConnection workspaceConnection)
   at USBank.PowerTrack.Services.ApprovalPolicy.DataAccess.Blaze.Provider.BlazeRepositoryProvider.GetRepositoryConnection() in C:\CODEBASE\\Services\Resource Access\Blaze\Provider\BlazeRepositoryProvider.cs:line 170


Failed loading repository configuration from 'C:\CODEBASE\RULES REPOSITORY\MYRepository\com_blazesoft_repository_config.cfg'.

 

any help greatly appreciated.

 

Thanks!

Message Edited by Preeti on 03-04-2009 05:15 PM
Regular Visitor
Posts: 6
Registered: ‎11-05-2008

Re: Receiving errors While connecting to File based repository using C# code

Preeti,

 

Export the project residing on current machine [using Export utility] and import the same into new machine [again using utility]. This is a good way to transfer repositories across machines. [even though conventional COPY/PASTE would also work]

 

On a different note, it seems from the code that the repository is using Custom Providers. [C:\CODEBASE\\Services\Resource Access\Blaze\Provider\BlazeRepositoryProvider.cs:line 170]

Once you have moved the repository to a new machine, ensure that all required DLL's are also transferred [if not then manually copy them]. Then try opening the repository.

 

Its a good practice to copy all required DLL's to C:\Blaze\Advisor 6.5 NET\bin\applications.

 

Hope your problem gets rectified. 

 

Regards,

Siva

Regular Visitor
Posts: 6
Registered: ‎12-06-2008

Re: Receiving errors While connecting to File based repository using C# code

I am copying the repository from Dev environment to QA enviroment. In Dev env machine we have Dev and deployment of Blaze and where as for QA env machine we have only deployment verion of Blaze.So, It is not possible for me to open the repository.

 

Also, I am not using CustomProviders. Here is where "BlazeRepositoryProvider" we are calling the GetConnection method...

 

Please help me to sort out this problem...

 

This is VERY CRITICAL..URGENT..

 

I appreaciate your help...

 

Thanks

Regular Visitor
Posts: 6
Registered: ‎12-06-2008

Re: Receiving errors While connecting to File based repository using C# code

PLEASE HELP ME!!! THIS IS URGENT!!

 

I APPRECIATE YOUR HELP!!

 

THANKS IN ADVANCE!!

 

Preeti.

Valued Contributor
Posts: 169
Registered: ‎03-12-2009

Re: Receiving errors While connecting to File based repository using C# code

Preeti,

     Two things, the first is have you looked at the code in the folders that were created when you generated the rule service?  And, did you follow the procedure for generating the ADB file (because this will greatly increase the runtime speed)? 

 

     In the folders with the generated rule service are sample classes for accessing the system.

 

     Another question this brings up is did you follow the release procedure (so that business users and developers are working in different parts of the repository?

 

     These will help you with properly setting up your code

 

     Tom