R
R.A.M.
Hello,
I have created ASP.NET application with aspnetdb database. In the following
codeI have an error:
System.Security.Principal.IPrincipal user = HttpContext.Current.User;
if (user.IsInRole("Manager")) // HERE ERROR
The error is:
Generating user instances in SQL Server is disabled. Use sp_configure 'user
instances enabled' to generate user instances.
Executing
sp_configure 'user instances enabled'
on aspnetdb database doesn't help (still the same error).
Here is connection string to aspnetdb:
<add name="SqlServices" connectionString="Data
Source=.\SQLEXPRESS;AttachDBFileName=|DataDirectory|\aspnetdb.mdf;Integrated
Security=True" providerName="System.Data.SqlClient"/>
Please help. I have little experience.
/RAM/
I have created ASP.NET application with aspnetdb database. In the following
codeI have an error:
System.Security.Principal.IPrincipal user = HttpContext.Current.User;
if (user.IsInRole("Manager")) // HERE ERROR
The error is:
Generating user instances in SQL Server is disabled. Use sp_configure 'user
instances enabled' to generate user instances.
Executing
sp_configure 'user instances enabled'
on aspnetdb database doesn't help (still the same error).
Here is connection string to aspnetdb:
<add name="SqlServices" connectionString="Data
Source=.\SQLEXPRESS;AttachDBFileName=|DataDirectory|\aspnetdb.mdf;Integrated
Security=True" providerName="System.Data.SqlClient"/>
Please help. I have little experience.
/RAM/