Hi,
I have a BRE policy whic access a .net component for performing some actions. The C# Component has two different functions.. one is simple, to get the current date, and the second one access the database to get some information.
When I test the policy, I can execute the GetCurrentDate function from the .net component without any problems. But when I call my second method, which access a SQL database, it fails with a generic error (Given below). I tried to call this method from a small test windows application and it works fine..
Can anyone please tell me is there any restriction in accessing a .net component which access database..?
ERROR:
An exception occurred when invoking class member MyClass.MyDBAccessFunction in assembly MyBusinessRules, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8c3fec8e866b74b1.
Exception has been thrown by the target of an invocation.
Object reference not set to an instance of an object.
——————————————————————————–