Quantcast
Channel: Security
Browsing all 4737 articles
Browse latest View live

Authentication

I am new to IIS8 on windows server 2012 R2.   I would like my public site to allow anonymous users to view it without bothering them for credentials.  I would also like to have an Admin subdirectory...

View Article


Could Not Find Part of Path

Need help with a web application I am writing in ASP.NET the code runs fine on LocalHost but bombs with a ‘Could not find part of path’ error when I try to run it on the server (IIS 7.5 on Windows...

View Article


Error when accessing Active directory - Asp.Net web application

Hi All,I'm trying to pull user details/validating credentials against active directory and getting the below error when i run the code in Web application and i'm good with console application.I've...

View Article

Membership/Identity and good old classic asp

Hi everyone.We have a web site still running in Classic ASP and has it's own authentication mechanism.We are building a new web site in MVC 5 C# and planning on using EF, and the ASP.NET Membership and...

View Article

intermittent fail - Exception Details: System.NullReferenceException: Object...

This does not always happen. The error occurs on this line.FormsAuthenticationTicket authTicket = FormsAuthentication.Decrypt(authCookie.Value);At this time the user if filling out a form that can bet...

View Article


Web Authentication using machine or client certificates

We have an ASP.NET web app running in IIS, with about 200 users, some are inside our LAN and other ones are outside our LAN. Every user has a userid account and a password to logon into web app. Not...

View Article

Add Current User to Role

I want to add the currently logged in user into a role if they don't belong to it. How do I get their username?    if(!User.IsInRole("Member"))        {...

View Article

Login Attempt is Invalid

while registering by default identity shows in (Register action method)var user = new ApplicationUser { UserName = model.Email, Email = model.Email }But i changed it tovar user = new ApplicationUser {...

View Article


Failed to generate a user instance of SQL Server due to a failure in...

Hi, I'm working on a school project - a fake online store. I've used some code from the MusicStore example on the Asp.Net website.When I started working on the checkout controller, I encountered a...

View Article


SqlMembershipProvider: requiresQuestionAndAnswer set to false in web.config...

In an ASP.net web application I have defined the following Membership provider in the web.config:<membership><providers><add connectionStringName="MyServer" name="MyServer"...

View Article

How to configure web.config for default user membership page?

Hi,I created a web application from visual studio express and in it, there is this Account folder which has these few files:Register.aspx Login.aspx Manage.aspx Web.config and so on.I have also created...

View Article

PCI: Session-ID should no longer be in the url. How to treat user when...

we have an order-web-application without login. The session-data are stored in a cookie. When user have disabled cookies they will be redirected to the same application in a different folder where only...

View Article

i am geting this error every 2 to 3h please help me. when i recycel the app...

Server Error in '/' Application.A severe error occurred on the current command.  The results, if any, should be discarded.Description:An unhandled exception occurred during the execution of the current...

View Article


Is it possible with ASP.NET Identity to elevate scope?

By elevate scope, I mean to request additional permissions (scope) after the user has logged in?Facebook recommends to request public_profile first, then later to request additional permissions like...

View Article

Table or row level security in ASP.NET MVC 5 and Entity Framework 6

Hi,I've asked this question before, but I was misunderstood. So, let's try again! :) For some reasons, my users should have their database Logins. The only way I can ensure security in this situation...

View Article


Prevent direct access to files in a directory

I have a folder in my website.  Users will be able to upload files into this folder.  I want to be able to prevent anonymous users from downloading the files in this folder.I am using the new ASP...

View Article

create Log class

Hello guys.i have a web application which present the many web services to my users. now i want to create a log class to log the events. i have couple questions:1- i have a text file which all my logs...

View Article


any fix for Open redirection (DOM-based) issue on asp.net webresource.axd file?

When I scanned ASP.NET application using Burp Scanner Tool I got 'Open redirection (DOM-based)' issue in asp.net webresource.axd file. Please let me know if anyone experienced same issue, or if you...

View Article

AppRelativeCurrentExecutionFilePath gives encoded path

After .Net Framework security update kb3037581, Context.Request.AppRelativeCurrentExecutionFilePath is giving encoded path...

View Article

Logging in using facebook token and asp.net web api

We have native iOS and Android apps which interacts with Facebook native app on and gets a token. We want to send that token to the asp.net web api to authenticate and add that user account to db if...

View Article
Browsing all 4737 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>