06-25-2014 08:53 AM
Hi, i followed the instructions shown HERE to create a custom security wrapper.. but i get and error.
When i do the "slxproviderplugin.exe -m SLXDemo.xml --udl new.udl" It allways says that COM CLASS VBSecurityBroker IS NOT IMPLEMENTED.. and dont get why...
On the XML file (wich is very poorly indicated on this document) i've written this:
<?xml version="1.0" encoding="utf-8" ?>
<slxplugin name="WRAPPER" file="ProjectName.dll" uid="SYST00000001">
<securityobject coclass="VBSecurityBroker" uid="SYST00000002" enabled="true" continueonfail="True"/>
That line of the XML : "<securityobject coclass="VBSecurityBroker" is the one that gives me the error...
Anyone has passed trough this before?
I think all is related to the way the DLL is compiled... but i did make sure that its COM+ VISIBLE on the Assembly options....
Thanks and regards!!
Solved! Go to Solution.
06-26-2014 01:10 AM - edited 06-26-2014 01:13 AM
Yes: Target CPU = x86, Framework used = 3.5
Still getting the same error.... any more ideas or a working example around there?...
On the page i mentioned before is extrange that no "manifest" has been created.. i've tested it creting one myslef with same results..
Also i've tested it using ANY CPU... but the same... something is missing.. and i dont get what...
09-30-2014 04:36 AM
Finally passed that compilation step, now I run these two instructions:
SLXPluginBuilder.exe -n CustomSecurity.dll
SLXProviderPlugin.exe -m CustomSecurity.xml --udl UDLSecurity.udl
(having created and tested that the UDL is correct and checked the SAVE PASSWORD) and it says that everything is ok...successfully installed bundle
BUT, when I get into SLX (with other user than ADMIN, which over-passes security), I get an error saying "unhandled win32 exception occurred in Saleslogix.exe "
Now, I'm sure that something is wrong with the compilation options..
The only thing that seems with a little "thing" on it is on the code of the VBQuerySecurity.vb when I use this :
under this piece of code:
Function AddCustomSecurityTable(stmt As Object) As Boolean
Dim cond As String
For Each join As SQLJoin In stmt.SQLFrom.SQLJoins
If join.Name = "ACCOUNT" Then
which underscores it, saying: "late bound resolution, implicit conversion from 'Object' to 'System.Collections.IEnumerable', runtime errors could occur"
Could anyone, please, tell me what I'm doing wrong?... compilation options are ANY CPU, using FRAMEWORK 3.5... no clues at all about what's happening..
Thanks for the replies in advance...
10-09-2014 09:37 AM
GOT IT!! problem was the definition of STMT as OBJECT instead of :
Function AddCustomSecurityTable(ByVal stmt As SelectStmt) As Boolean
That solves all...