Archived Months
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > asp.net security > march 2005

Filter by week: 1 2 3 4 5

Doubt in Forms authentication configuration settings
Posted by Naveen Kumar at 3/31/2005 8:31:01 PM
In Asp.net forms authentication. In order to restrict certain files from anonymous users the settings in web.config should be <deny users="?"/> which will not allow anonymous users. My doubt is, Though .NET classes are able to detect the difference between the anonymous users and authenticate...more >>


ASP.NET Application intermittently fails to start
Posted by howard39 NO[at]SPAM nospam.nospam at 3/31/2005 9:53:05 AM
We have deployed an ASP.NET application on 20 servers in different locations, and it is used daily by about 300 users around the country. Every couple of weeks at one location or another, users cannot get into the application. The Default.htm redirection page displays, but then, instead of ...more >>

Windows and Forms Authentication together ???
Posted by (cmrchs NO[at]SPAM yahoo.com) at 3/31/2005 6:56:24 AM
Hi, I am trying to create a site that will be used by both employees and external users, so both types of users trying to access the same pages. In the case of an employee on the intranet, authentication needs to occur via Windows integrated authentication. If the user is NOT on the intra...more >>

Re-Authenticate users after timeout
Posted by Fred Plourde at 3/30/2005 8:11:05 PM
Hi, I'm working on a web application using asp.net, vb.net and SQL 2000. I'm using web form authentication to control the access of the application. I'm trying to force the user to go back to the authentification page after a timeout occurs. The Session seems to expire but the cookie (no...more >>

Cannot open log for source {0} -- again
Posted by craig.wagner NO[at]SPAM gmail.com at 3/30/2005 4:20:59 PM
I've done a ton of searching on this error and have not found any solution that actually solves the problem. My environment is Windows XP Professional with SP2. I'm using VS.NET 2003 and .NET Framework v1.1. I created a brand new ASP.NET application to ensure that some other aspect of my re...more >>

redirecting to main page
Posted by vips at 3/30/2005 3:48:15 PM
I am working on asp.net application what should I do so that if any user directly types the url other than "mainpage.aspx" of my application, he should be directed to "mainpage.aspx". I am managing user access by enabling and disabling the links on the web page depending on the user. cheers...more >>

Number of Users in a role
Posted by Cathie at 3/30/2005 11:35:53 AM
Hi, I am trying to work out how I can find the number of users in a role. So that I can lock the application after a certain number of users are added to that role. Does any one know of decent reference material in dealing with windows users and roles? Cathie ...more >>

Display Windows Login ID on Webpage
Posted by dolphusp at 3/30/2005 1:42:49 AM
I want to display the user's Windows Login ID on the webpage designed in ASP.NET using VB.NET. Can someone give some sample code to do this. I am desperately looking high and low for a solution. With warm regards, Dolphus Pereira -- dolphusp ------------------------------------...more >>



Web Config Error What may be the problem?
Posted by Arif Çimen at 3/29/2005 8:43:26 PM
Hi everybody, I made my first ASP.Net application and deployed it. There came an error on the server: What may be wrong in web.config file , or do I have to put it on to the root of my site. Thanks for any help. Arif Çimen. Server Error in '/' Application. -----------------------...more >>

Configuration Error -- Access is denied
Posted by howard39 NO[at]SPAM nospam.nospam at 3/29/2005 5:07:02 PM
I occasionally get the following message when I try to start up my ASP.NET application on my development system after a rebuild. Rebuilding and then rebooting usually seems to fix the problem. This is in Visual Studio.Net 1.1. The solution includes a main program project that refers to a libr...more >>

Creation of ASPNET user in Active Directory 203
Posted by Gunjan Desai at 3/29/2005 12:35:22 PM
Hello, I unable to see ASPNET user in Active directory 2003. I installed asp.net on windows 2003 & IIS. So please tell me how to create ASPNET user in Active Directory 2003. Thanking you Gunjan Desai ...more >>

Impersonation problem.
Posted by szhang at 3/29/2005 7:29:08 AM
When I enable impersonation in web.config and show User identity in .aspx page, it is the user IIS authenticates. But when I try to access Sql server, I get an access denied error message. It looks like asp.net does not impersonate it at sql server side. I can impersonate a specific user in ...more >>

Security permissions for Win32 LogonUser call.
Posted by Ken Varn at 3/28/2005 1:10:28 PM
I am running my ASP.NET page under IIS in Windows 2000 Pro. I need to make a call to the Win32 LogonUser function to get a logon token. How can I get security permission to do this while running under the MACHINE account for ASP.NET? -- ----------------------------------- Ken Varn Senior...more >>

Problem with DirectoryServices Access
Posted by Brian01 at 3/28/2005 12:53:03 PM
I have a Win2K server in a DMZ without domain access. My C# ASP.net page can not see the DirectoryServices namespace. I found a KB article on the security issue with this, but I don't have domain accounts to use from the DMZ, and don't want to set the machine.config properties for all aspx...more >>

why not SQL Authentication?
Posted by Pavlos Kariotellis at 3/28/2005 11:45:50 AM
With Forms authentication and SQL Server, MS recommends creating a User table and storing user names and password hashes to that table. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT03.aspThey go on proposing a Roles table and so on.I wonder why not just ...more >>

Forms Authentication Ticket Reissue
Posted by sleyhane NO[at]SPAM gmail.com at 3/28/2005 9:32:50 AM
When using Forms Authentication with the SlidingExpiration attribute set to 'true', the authentication ticket is reissued sometime after half of the timeout value specified has elapsed. From the documentation: "To prevent compromised performance, and to avoid multiple browser warnings for use...more >>

Newbie: NT Authentication
Posted by Steven K0 at 3/27/2005 11:47:32 AM
Hello, I have been charged with building an ASP.NET website at work. Some of the pages (like head count info) need to to be secured. One of the requirements is that the site use NT Authentication for the login form instead of creating new passwords for everyone. My question is how is the...more >>

Impersonation with Forms Authentication
Posted by Paul Gregory via DotNetMonster.com at 3/25/2005 7:51:07 PM
Can anybody help, I?m pretty new to .NET but followed the instructions for the following. How to authenticate against the Active Directory by using forms authentication and Visual Basic .NET http://support.microsoft.com/default.aspx?scid=kb;en-us;326340 Got the authentication working but ...more >>

Protect file with different extension from .aspx
Posted by Alessandro Zucchi at 3/24/2005 7:21:07 AM
Hi, I'm developing an asp.net application. I'm using form authentication. All runs with page aspx, but when I try to connect to a protected file diverse to an aspx (such as a PDF file) and I'm not authenticated , the application download the file instead of redirect to the predefined login p...more >>

Need the equivalent of CryptGenKey for PUBLIC/PRIVATE pairs
Posted by Roy Chastain at 3/23/2005 1:27:35 PM
I have found the GenerateKey method for SymmerticAlgorithm based CSP classes, but I can not find any way to create a public/private pair for use with AsymmerticAlgorithm classes. In particular I need a key that I can use to sign hashes with. Thanks for a pointer to the right item. ----------...more >>

Cookies question
Posted by Joe Fallon at 3/22/2005 6:21:33 PM
I use forms authentication for my app. After I log in successfully each request by the browser contains 2 cookies. One for the SessionID and one for forms authentication which contains my ticket. Can someone please explain where these cookies are stored? I think it is in memory in the browse...more >>

no write permissions
Posted by Jimmy at 3/22/2005 6:11:28 PM
Hi I trying to create a new directory "newdir" but i get the error: Exception Details: System.UnauthorizedAccessException: Access to the path "c:\inetpub\wwwroot\MakeLab4\newdir" is denied. I think i have to grant the necessary permissions. Where can i do that because in the explorer i c...more >>

ASP.NET file security problem
Posted by Amit Batish via .NET 247 at 3/22/2005 1:13:21 PM
Hi I am developing a site with ASP=2ENET which involves displaying PDf= ifles using acrobat activeX control=2E To avoid a user to directly= open a PDF file using the path of the file I am trying to= implement security for the files using the article "Protecting= Files with ASP=2ENET " post...more >>

Security Application Block
Posted by John Childress at 3/21/2005 3:45:56 PM
Anyone using the Security Application Block from the Enterprise Library? I have a rather embarassing situation where I've setup the database and configured my application to use this block. I have added users to the database using a web form, but I am unable to login using any of the new use...more >>

Writing a text file to the file system
Posted by cwbp at 3/21/2005 3:11:09 PM
Using Visual Studio C# When I ran the following code: System.IO; private void Button1_Click(object sender, System.EventArgs e) { //FileStream fs = File.Create(Server.MapPath("test.txt")); FileStream fs = File.Create("C:\\MYSAVEDFILES\\test.txt"); StreamWriter sw = new StreamWriter(fs)...more >>

Forms auth / Location element
Posted by Mark Teague at 3/21/2005 2:43:59 PM
Greetings! I am attempting to secure the root of an IIS virtual directory and an = Admin subdirectory separately from one another. At first, I attempted = to create an additional Web.Config in the /Admin folder to direct = unauthenticated access attempts to URLs within this directory to a = ...more >>

ASP.NET User.Identity.Name returns wrong value?
Posted by JohnH. at 3/18/2005 1:01:44 PM
When I got Visual Studio setup and configured to remotely debug c# ASP.NET applications on a development IIS server I apparently changed something on one of my .config files. (1) When I login into my workstation using my domain account and connect to our development IIS server User.Identi...more >>

authentication and access control (.NET socket connection)
Posted by Dan at 3/18/2005 10:15:09 AM
Hi, Can someone point me in the right direction on a really simple access control issue? Here is the situation: 1. an app on a client computer connected to internet and executes this kind of code: acceptor = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); ...more >>

Registry - Writing to ..Security / Auth problems
Posted by Neal Rogers via .NET 247 at 3/18/2005 1:49:58 AM
Hi All Using VB.Net I have tried unsuccessfully (firstly with a Web App.. and IUSER_MachineName permissions ) to write to the registry. So , now I've tried from a windows application, and same result ie key.SetValue("pwd", sValIn) ' = ERROR: cannot write to the registry key ("Run-time ex...more >>

Error while trying to debug
Posted by Guest at 3/17/2005 11:05:33 AM
Hello, When I was trying to open one of my ASP projects somewhere else, I got the following error message: Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged. They suggest to click the Help button. When I do that I ge...more >>

ASP, Error message
Posted by Guest at 3/17/2005 10:42:20 AM
I'm making a project for school. In school everything worked, but now that I've took it Home. I get following error message if I want to run it: "Error while trying to run project: Unable to start debugging on the web server. the project is not configured to be debugged." When I look to the we...more >>

Trouble Accessing Active Directory Domain Controller
Posted by webbertsolutions NO[at]SPAM newsgroups.nospam at 3/17/2005 9:49:31 AM
I am having troubles accessing a different Domain Controller than the one I am currently in. Any help would be appreciated. Dave ================================================= Access DC_1 Access DC_2 Machine_1 in Domain_1 Works Exception Machine_2...more >>

Newbie: Data transfer security problem
Posted by clsmith66 at 3/16/2005 3:53:02 PM
I am building a reservation system for a client using ASP.NET and VB.NET. They want the ability to create customers and invoices in the application and then export them into QuickBooks. No problems there. My problem is QuickBooks is stored on one server and the application will be run from ...more >>

ASP.NET Security/Authentication question
Posted by Terry at 3/16/2005 9:03:09 AM
I am a newbie on ASP.NET. I am creating an asp.net application (with C#) which will have a number of screens. The backend database for this app is SQL Server. The user is required to login and we have to be able to control which users have access to which screens and if they have read only or u...more >>

Web form w/ Access DB Security
Posted by wwcoop at 3/16/2005 6:25:03 AM
I am deploying a web form developed in VB.NET using an OleDB connection to an Access DB. I am able to deploy the app with the DB residing in the same folder to the web server and get it running. I now want to change the configuration so that the the DB does NOT reside anhywhere in the web d...more >>

Forms Authentication for only selected webforms? How to do this
Posted by Rich at 3/16/2005 5:21:22 AM
Hi, I might have missed this perhaps, but here's my query: I am presently designing a site that is for public use in general. However, several forms (pages) I need authentication from members. For example: default.aspx is allowed for everyone, but members.aspx isn't (and so are various ...more >>

Re: Retrieve User Name in C#.net
Posted by Dominick Baier [DevelopMentor] at 3/15/2005 11:54:13 PM
So - i guess your backend store is AD ?? If yes use the classes found in System.DirectoryService to query for the name - or wait till Joe Kaplan jumps on the thread :) --- Dominick Baier - DevelopMentor http://www.leastprivilege.com nntp://news.microsoft.com/microsoft.public.dotne...more >>

Question about a long session timeout (somewhat long)
Posted by Stupid48 at 3/15/2005 8:46:29 PM
I've been told by my developers to increase the asp.net session timeout to 72 hours. Being a server guy, it concerns me because of the obvious potential for denial of service due to resource consumption. Basically, it is an asp.net application that runs ssl and may take some personal informatio...more >>

path for DirectoryEntry
Posted by
at 3/15/2005 4:41:11 PM
Hi All I have a directory server hosting multiple OUs, and I found that all the users I created under each OU will not appear under "Users" folder, which looks fine to me until now. I am working on an ASP.NET application which would allow a selected user from each OU to login and to update pr...more >>

Retrieve User Name in C#.net
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 3/15/2005 2:43:07 PM
Hi All, I am trying to find how to retrieve the user name using .Net. I know how to retrieve the user login using HttpContext.Current.User.Identity.Name but I ned to retrieve the name and not the login. Thanks In Advance....more >>

Web forms authentication, should I use it?
Posted by Vlad at 3/15/2005 8:27:54 AM
Hello, people! I’m presently trying to choose an appropriate user authentication solution for online banking system implemented in ASP.NET, and as far as I understood the best practice of what Mcrosoft has to offer (with the exception of Windows integrated) is WEB forms authentication. So my ...more >>

SSL Connection
Posted by Praveena at 3/14/2005 10:53:05 AM
Hello I have a ASP.NET application. On the login page I see the scure lock symbol but as soon as I login the SSL lock disappers. The Autentication mode on the application is set to "windows". Can anyone please help. -- Praveena...more >>

Does not Posts Back the form on ImagebUtton click asp.net
Posted by KhurramAtk at 3/14/2005 10:49:04 AM
Hi, I have reinstalled the win 2000 advance server with .net framework and with all the updates from MS site. After when i ran,my already running site, on login page it is not posting back my form to server. I am using ImnageButton to post the entered infromation for simple Form Authenticai...more >>

Encryption question
Posted by Steve Kallal at 3/14/2005 10:38:41 AM
I need to find a form of encryption that always encrypts a given plain text string to the exact same encrypted string every time. I want to use a form of output caching in my ASP.NET application that will use a cached version of a web page if the query string parameters are exact each time. If...more >>

IsInRole Performance Issue
Posted by David Nicholson - SP/A Shaw Cablesystems at 3/14/2005 10:38:27 AM
Hi, We have a very large AD here and I am noticing that the WindowsPrinciple IsInRole function is taking upwards of 1 second to respond with just a single user. I am assuming that this function re-queries the AD everytime. When it reaches about 50 users each query is taking > 10 seconds. Is t...more >>

Directory Listing Denied
Posted by kylin at 3/14/2005 9:43:45 AM
when I configure the sample of the .net framework, the browser list this message .,? Directory Listing Denied This Virtual Directory does not allow contents to be listed. ...more >>

Web form to reset password on both mainframe and windows environment using LDAP
Posted by Mike Mahon at 3/14/2005 5:02:57 AM
The LDAP is located on the mainframe. I can successfully select records using some ASP (Classic) script. I choose to use ASP classic because there are very few examples I could find of using the directory services other than the MS AD. Anywho, as I said I can select the LDAP record usin...more >>

MD5 problems
Posted by Rudy at 3/13/2005 7:35:02 PM
Hello all! I'm working with the following code.. Function DBAuthenticate(ByVal strUsername As String, ByVal strPassword As String) As Integer Dim conLogin As SqlConnection Dim cmdSelect As SqlCommand Dim parmReturnValue As SqlParameter Dim intResult As In...more >>

Size of Entropy with Dpapi Encrypted Connection String
Posted by Phil C. at 3/11/2005 7:00:33 PM
Hi. I'm using the dpapi to encrypt a sql server connection string. Strictly speaking how many bytes of entropy am I supposed to use?? Phil Czapla Boston, Massachusetts ...more >>

I need to figue out the count of the sessions.
Posted by Michael Tkachev at 3/11/2005 6:02:12 PM
He everybody, I have a question. I would like to know the following question: How can I find out how many users were loginned to my web project. I need to get the count of the sessions in the project because and I need to get datas from the different sessions. Who knows what I can do? Thank...more >>


DevelopmentNow Blog