I am trying to write a simple ASP.NET application to send out a newsletter, using data from a SQL Server database. To access the database I created a tableadaptor in object Group.xss. This .xss (data designer) window looks as I would expect. I have tested this table adaptor from this window. it is connected to the (remote) database and returns exactly the three records that it is supposed to in my initial test.
I then returned to my ASP.NET page and tried to define the table adaptor with my usual template of defining the Table Adaptor, Table, and Row with statements like this
Dim taGroupAdmin As New GroupTableAdaptors.GroupAdminsTableAdapter ' Used for Test emails
Dim tbGroupadmin As Group.GroupAdminsDataTable = Nothing
Dim trGroupAdmin As Group.GroupAdminsRow
intending to use later code to fill the table and process its rows. However I can't get past the definition of taGroupAdmin. With the other two statements commented out leaving only Dim taGroupAdmin ... The Dim statement gives error: -
GroupTableAdaptors.GroupAdminsTableAdapter' is not defined
and there is also a message from Group.xss (line 1): -
Custom tool error: The source was not found, but some or all event logs could not be searched. To create the source, you need permission to read all event logs to make sure that the new source name is unique. Inaccessible logs: Security
This is on my own PC, for which I am the admin.
I tried to find the answer from the internet, the examples talked of setting a registry key setting for "MyApp". Would my equivalent of MyApp be the name of my program ("Default"), the name of the .xss object ("Group"), or something else.
I'm using Visual Studio 2019, and SQL Server 15.0.2000.
Thank you, Robert Barnes