gajanan
gajanan

Reputation: 11

Connection in .NET

I got

System.Data.Datarow.Datarow(System.Data.Datarowbuilder) is inaccessible due to its protection level.

while connecting to SQL-Server. What does it mean?

Upvotes: 1

Views: 454

Answers (1)

Hans Olsson
Hans Olsson

Reputation: 55009

Difficult to say without some code, but are you doing something like new DataRow in your code? If so then that's probably the problem, the constructor is not public so you'd have to create your DataRows in some other way (for example by calling DataTable.NewRow if you're using a DataTable).

Upvotes: 3

Related Questions