Hi all
I get the following error:
'A first chance exception of type 'System.InvalidOperationException'
occurred in system.dll
Additional information: The requested Performance Counter is not a custom
counter, it has to be initialized as ReadOnly.'
My code c#:
using Microsoft.Practices.EnterpriseLibrary.Data;
....
private DataSet ds;
private Database db;
db = DatabaseFactory.CreateDatabase();
string sqlCommand = "Select...";
DBCommandWrapper dbCommandWrapper = db.GetSqlStringCommandWrapper(sqlCommand);
ds = db.ExecuteDataSet(dbCommandWrapper);
Any ideas??? Thank you in advance.