- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Receiving errors While connecting to File based repository using C# code
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-04-2009 05:14 PM - edited 03-04-2009 05:15 PM
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.proper
at com.blazesoft.repository.file.NdFileRepository.get
at com.blazesoft.repository.local._NdA..ctor(NdWorksp
at com.blazesoft.repository.local.NdLocalRepository..
at com.blazesoft.repository.base.NdRepositoryFactory.
at com.blazesoft.template.repository.NdRomFactory.new
at USBank.PowerTrack.Services.ApprovalPolicy.DataAcce
Failed loading repository configuration from 'C:\CODEBASE\RULES REPOSITORY\MYRepository\com_blazesoft_repository_c
any help greatly appreciated.
Thanks!
Solved! Go to Solution.
Re: Receiving errors While connecting to File based repository using C# code
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Not the Solution
- Email to a Friend
- Report Inappropriate Content
03-06-2009 11:03 PM
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:l
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
Re: Receiving errors While connecting to File based repository using C# code
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Not the Solution
- Email to a Friend
- Report Inappropriate Content
04-02-2009 12:07 PM
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
Re: Receiving errors While connecting to File based repository using C# code
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Not the Solution
- Email to a Friend
- Report Inappropriate Content
04-14-2009 03:29 PM
PLEASE HELP ME!!! THIS IS URGENT!!
I APPRECIATE YOUR HELP!!
THANKS IN ADVANCE!!
Preeti.
Re: Receiving errors While connecting to File based repository using C# code
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Not the Solution
- Email to a Friend
- Report Inappropriate Content
04-14-2009 05:07 PM
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

