DEV Community

Discussion on: Help with some C#.Net

Collapse
 
jramey profile image
Jordan Ramey • Edited

This usually means that the assemblies from the error message are not present in the project's bin folder or they are not referenced in the project.

Make sure you have an using for System.Web.Security;

Collapse
 
dev-i-am profile image
Derek

Thanks Jordan. It is there, you can see it in the image, but it is greyed out so it is not referenced.
Files are in Bin folder as well.

thepracticaldev.s3.amazonaws.com/i...

Collapse
 
jramey profile image
Jordan Ramey

May want to try the fully qualified namespace.

docs.microsoft.com/en-us/dotnet/cs...

Thread Thread
 
dev-i-am profile image
Derek

Tried some things. C# frustrates me.
All these have warnings on them. It says to switch the context, I don't know why there is of the same, but when I do, nothing changes.

thepracticaldev.s3.amazonaws.com/i...