The DataSourceKey [XXX] is not defined.


Author
Message
Keith Chisarik
Keith Chisarik
StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
The full error I am getting is:

   An error occurred while creating a new DataLayer for the business object.

   The DataSourceKey [XXX] is not defined.



This error is generated on the call to:

SFSPreferencesBO.RetrieveSecurityPreferences()



Everything works fine* when I don't add a named datasourcekey but leave the default "" :

SecurityBasics.SecurityDataSourceKey = "XXX"



I tried adding this but it didnt help:

DataLayer.DataSources.Add(New SqlDataSourceItem("XXX", "Data Source=IPADDRESS\SQLNAME;Initial Catalog=DBNAME;Integrated Security=True;Persist Security Info=False;Asynchronous Processing=True"))



I have a security project with a security key that matches.



I have my security tables in the same database as my application files, added via the DDT and deployed to the SQL Server.



I am sure I am doing something dumb, as this is the first chance i have had to implement the security module.



Keith



* when I left the SecurityDataSourceKey = "", I could only see the users within my app, when I called up the SecurityDialog from within VS, I saw no users.




Keith Chisarik
Reply
Keith Chisarik
Keith Chisarik
StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
I thought i could plow on just using "", but I cannot add permission sets from within my app (I assume this is intended) and i cant see my "live" users (created from within the SecuritDialog within my app) from within VS.



This also brings me to another question, are security roles then only available for add/edit at design time, that doesn't seem right?

Keith Chisarik
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search