Home

Fails to find WindowsImpersonationContext within the System.Security.Principal namespace

I am connected to an Oracle database and when I do a simple Table.Take(100) on the a table, I get the error:

CS0234 The type or namespace name 'WindowsImpersonationContext' does not exist in the namespace 'System.Security.Principal' (are you missing an assembly reference?)

I have tried adding the System.Security.dll and System.Security.Principal.dll directly from the Windows\Microsoft.NET\Framework64 folder as well as the Framework and assembly\GAC_MSIL\System.Security*\v4.0_4.0.0.0__b03f5f7f11d50a3a folders. None of which allowed me to get past the problem.

I just want to be able to write queries against this lousy Oracle database. I can hit it in Oracle SQL Developer but since I do all of my queries using LINQ I'd prefer to use LINQPad.

Anyone have any suggestions?

Mike

Comments

Sign In or Register to comment.