CheckValidationResult for ICertificatePolicy
Can anyone point me to documentation on what CheckValidationResult does, if you don’t write your own? I want to add code that will dump out some information about the certificate, service point, and...
View ArticlePage access for different Roles using Custom role provider
Hi All,In my project we should allow the page depend upon the roles. We are having 4 different roles 1.Admin 2.Manager 3.Supervisor 4.Accountant .The accountant is having access for only 4 pages . All...
View ArticleConfirm user is logged in?
Hi all,I want to confirm that a user is the logged in user before submission of sensitive data.So, the user has already logged in (using membership/ roles) and when they click a button I want them to...
View ArticleReset Password
Hi,I am developing an SPA with Durandal, ASP.NET MVC 5, Web API 2, with bearer authentication, access token etc.I have a problem with the "Forgot Password". All the user security manipulation occurs in...
View ArticleWindowsIdentity.GetCurrent().Name versus...
I have set up an admin site in our intranet using Active Directory. On my test box, WindowsIdentity.GetCurrent().Name but on my new prod box HttpContext.Current.User.Identity.Name w/Windows...
View ArticleAntivirus block outgoing email in Winform
I have an winform application in c#.net that is capturing all errors and then it sends out an email. So developers can fix those errors.However my problem is that Symentic is blocking outgoing email....
View ArticleOWIN and Authorization Code Grant Flow - Always Bad Request (Invalid Grant)
I've set up the following in Startup.Auth.cs: public partial class Startup { public void ConfigureAuth(IAppBuilder app) { // Enable the Application Sign In Cookie. app.UseCookieAuthentication(new...
View ArticleLoginView control and switching templates based on identity type
Hi Folks,I have a web application (asp.net 4 Forms application) - the site is configured with both Windows and Forms authentication enabled, and anonymous access disabled. If the user is logged into...
View ArticleDeactivate Account and .set Identity.IsAuthenticated to false?
I need to know how to .set Identity.IsAuthenticated to false when i deactivate account?I have a stored procedure that deactivates an accountthe is that i have on the page loadthe following Protected...
View ArticleOAuth controller never being invoked on ASP.NET MVC web site?
I have an ASP.NET web site that I am trying to get working with Twitter OAuth using the Microsoft OWin package. I did not use the main ASP.NET project wizard to start the site because I wanted to take...
View Articlesecurity trimming when using asp.net Identity
Note I'm not using form authentication because I'm using the new security model that is called asp.net Identity.Now to my question I have used security trimming before when I used forms authentication...
View ArticleStrange error: membershipCreateStatus is ambiguous in 'system.web.security'
I'm getting a strange error. I am reconstructing my site on my local PC after a virus, and when I compile, I get the message:membershipCreateStatus is ambiguous in 'system.web.security'I did notice as...
View ArticleWriteSessionTokenToCookie
ClaimsIdentityCollection identities = new ClaimsIdentityCollection(); identities.Add(new ClaimsIdentity(claims, "Forms")); var principal = new ClaimsPrincipal(identities); var token = new...
View Articleaspnetdb configuration problem
I'm having trouble using the CreateUserWizard. In my SQL Serverv 2012 Express, aspnetdb is created by running aspnet_regsql utility, but Website Administration Tool gives this error:Provider Management...
View ArticleSQL Server Instance Problem
After clicking the submit button on CreateUserWizard, I get this error message:Server Error in '/' Application. -------------------------------------------------------------------------------- A...
View Articlehow to restrict user from accessing page through url
hi friendsi made login page with two page Success.aspx and Fail.aspxi am successfully login in success.aspx through login but when i write success.aspx in my browser directly, so its opening the page....
View ArticleMembership Provider 2.0 How can I check user trial period is end?
Hello I need to achieve set trial period for every new user and change they roles automatically when trial period is finished.How can i do this?Thanks in advance
View ArticleCan i call a remote vbscript or C# console application from asp.net
Hi , My requirement here is to extract the emails from a client machine using outlook interop api and return as dataset to asp.net application. Earlier i tried by using outlook interop api...
View ArticleCreating more complex bitmaps with c#
HelloCreating simple bitmap for my captcha.Need more complex pictures. How can i do this?Response.Clear(); int height = 50; int width = 130; Bitmap bmp = new Bitmap(width, height); RectangleF rectf =...
View ArticleHow can I handle this error
Object reference not set to an instance of an object for WebSecurity.CreateUserAndAccount(email, pass, null, false);
View Article