R
R.A.M.
Hello,
I have started programming ASP.NET application using SQL Server 2005 Express
Edition. The problem is that when C# code tries to access aspnetdb database,
for example:
System.Security.Principal.IPrincipal user = HttpContext.Current.User;
if (user.IsInRole("Kierownik")) // HERE PROBLEM
....then the following run-time error occurs:
SqlException was unhandled by user code
Generating user instances in SQL Server is disabled. Use sp_configure 'user
instances enabled' to generate user instances.
Unfortunately executing sp_configure 'user instances enabled' on aspnetdb
database doesn't help (still the same error).
Please help.
/RAM/
I have started programming ASP.NET application using SQL Server 2005 Express
Edition. The problem is that when C# code tries to access aspnetdb database,
for example:
System.Security.Principal.IPrincipal user = HttpContext.Current.User;
if (user.IsInRole("Kierownik")) // HERE PROBLEM
....then the following run-time error occurs:
SqlException was unhandled by user code
Generating user instances in SQL Server is disabled. Use sp_configure 'user
instances enabled' to generate user instances.
Unfortunately executing sp_configure 'user instances enabled' on aspnetdb
database doesn't help (still the same error).
Please help.
/RAM/