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 > april 2004

Filter by week: 1 2 3 4 5

Integrated windows authentication and NetworkCredential
Posted by sorpor at 4/30/2004 5:41:38 PM
Hi, I have my asp.net webpage configured to use the integrated windows authentication in IIS. I need to use NetworkCredential object to get access to a webservice and I want to retrieve the authenticated user information to create it so user doesn't have to re-enter password. How can I do that...more >>


Cookie Problems
Posted by Rossen Hristov at 4/30/2004 2:17:30 PM
Hello, I have the following problem. I am building a ASP.NET application with Forms Authentication. Just for testing purposes I have set the Session timeout to 3 minutes: <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source...more >>

ASP.NET and client certificates
Posted by Craig Humphrey at 4/30/2004 1:19:17 PM
Hi People, I know in IIS Admin you can tick the box to request a client certificate (over an SSL connection), but does anyone know of a way, programmatically, to force this to happen for a particular page for a particular user? Basically I've got a site that uses a common code base to run, h...more >>

testing SSL
Posted by A.M at 4/30/2004 11:03:48 AM
Hi, I need to test our site before we publish our public website. The problem is our site uses SSL and I can not test SSL before I use our public www.OurCompany.com address. and www.OurCompany.com is mapped to our public address. We use internal IP/computer name during testing. Is there any...more >>

Please advise: ASP.Net and HTTPS
Posted by paulsmith5 NO[at]SPAM hotmail.com at 4/30/2004 10:28:34 AM
Hi, I am beginning a new asp.net application that is to be hosted on a https server. Are there any unique design issues I should be aware of before I begin, i.e. those that are different than if hosting on a normal http server. I've developed apps before that use forms authentication, roles e...more >>

impersonation works on local xp not on web server
Posted by smyers NO[at]SPAM quilogy.com at 4/29/2004 2:42:21 PM
The program I have written to change a password by impersonating an admin has worked successfully on my local XP, but when transferred to the Windows 2000 server the impersonation fails. I have tried everything I can think of even to the extent of making sure the W2k box has the SE_TCB_NAME priv...more >>

ASP.Net Session State Problem with IIS6
Posted by JK at 4/29/2004 1:26:02 PM
We recently installed our web application on Windows 2003 and found that our ASPX pages are not coming up correctly. We are using sessionstate=StateServer and cookieless=true for Web.config. Applications run perfectly in Windows2000 or XP but in Windows2003 under IIS6 we do not see any of our ima...more >>

question on windows auth
Posted by chris at 4/29/2004 9:41:06 AM
Hi I am working on an intranet application. I am using windows integrated authentication. Now since the authentication is done by active directory can I use a specified user name and password in my connection string and not SSPI? You see I created a user/login in sql server with minimum privledges ...more >>



How long is the formsauthentication ticket valid
Posted by swatisahasrabudhe NO[at]SPAM yahoo.com at 4/29/2004 4:59:47 AM
Hello These questions may seem stupid but I am confused about the formsauthentication ticket stuff. From what I know till now it is a cookie/session variable ( I am still not sure which of the two). 1. When I use a FormsAuthentication.SetAuthCookie method I do not specify a timeout. So how lo...more >>

ASP.NET Client Certificate Authentication Problem
Posted by EagleRed NO[at]SPAM HighFlyingBirds.com at 4/29/2004 4:31:05 AM
I am implementing an ASP.NET Web application that requires client certificates. I have a standalone certificate server (Windows 2000, SP4). I used it to generate a server certificate and a client certificate. The client certificate is installed in the Trusted Publishers-Enterprise store. I could...more >>

Configuring Windows Auth & Forms Auth in Asp.Net
Posted by Chris Mohan at 4/28/2004 11:11:04 AM
Configuring Windows Auth & Forms Auth in Asp.Ne Hi, I've configured a web app to use windows authentication and also set up two separate subdirectories to use forms authentication. It appears to work fine but I have never seen a sample that demonstrates both in the same web.config and I don't like ...more >>

Impersonation of forms-authenticated Active Directory user
Posted by mikeswift NO[at]SPAM mailinator.com at 4/28/2004 6:52:00 AM
Hello all I wonder if the great and the good of this esteemed forum might shed some light on a problem of mine... Three servers in a domain: one Active Directory server, one SQL Server and one IIS. IIS hosts an ASP.NET Web Application which requires that users log on through a web form, are...more >>

Similar issue with .NET Security
Posted by Ed Hastings via .NET 247 at 4/27/2004 5:42:50 PM
Hello; having similar ASP=2ENET security issues=2E Upgrading a number of ASP classic apps to =2ENET and have= everything done but cant figure out how to get the security to= work correctly=2E Under the ASP Classic implementations security was NT Groups= based=2E Various Groups were crea...more >>

secret key string visible in dll
Posted by Tim Mackey at 4/27/2004 4:06:02 PM
hi, i am using 3des encryption with a secret key to send information between 2 aspnet applications. they both know the key, which is a hard-coded string. i have read about using aspnet-setreg to securely store such a value in the registry, but i have a different query. if i open the dll in note...more >>

Custumizing Pages based on security status
Posted by Devin at 4/26/2004 4:16:04 PM
I am trying to create pages that are viewable without a login, but if a person does login I want certian pages to display customized content. For example, I have a calendar page that loads up to anyone. But on the same page I want to restrict showing the hyperlink to "Adding a calendar Event" to so...more >>

Automaticall Signout after no activity...
Posted by Jonathan wax at 4/26/2004 4:16:02 PM
Hi I am looking for a way to ensure that an asp.net site (using forms authentication) performs a sign out automaticall after a period of time where there has been no activity by the user Any ideas would be appreciated Jonathan....more >>

anonymous logon
Posted by manos papaoikonomou via .NET 247 at 4/26/2004 5:22:18 AM
I have aproblem. I develop my asp.net site at my pc (named PCMANOS)(running IIS) and I have the SQL Server at another pc (named ATHDC). I've already created an IUSR_PCMANOS user account at ATHDC and I've given the appropriate priviledges to read and write from the database. When I test the site f...more >>

change password in active directory by webapplication (vb.net)
Posted by raf60ir NO[at]SPAM aut.ac.ir at 4/25/2004 8:16:48 AM
Dear Sir, I want to change password of users in active directory by asp.net form.this is my code, but i recieve error could anyone help me to solve it. thanks Protected WithEvents newpass As System.Web.UI.WebControls.TextBox Protected WithEvents btn1 As System.Web.UI.WebControls.Butto...more >>

Please Help - Encryption Problems
Posted by Jamie Sutherland at 4/23/2004 2:45:38 PM
Hi, I have a problem in that I have 2 applications writing to the same Database. One App is web based and the other is windows/forms based. Both have the same job in that they can reset a users password in the database. Both are using SHA1 encryption however they both ghive different results wh...more >>

Can I force 401 error when user not authenticated?
Posted by Bigtoga at 4/23/2004 2:30:57 PM
Currently I have succesfully implemented role-based folder security using roles and web.config in each folder. This works great - if a user is not authenticated or a member of an allowed role, that user cannot access the resource (woohoo!). When the disallowed user tries to access the resource, ...more >>

Exclude Files from HttpForbiddenHandler
Posted by Dan Ackermann at 4/23/2004 10:14:24 AM
Hi all, By default .cs files are protected from downloading by adding ".cs" to the HttpForbiddenHandler in machine.config. How to ALLOW (exclude from HttpForbiddenHandler) a specifig file (myfile.cs) to download ??? TIA Dan Ackermann ...more >>

Writing to a network share
Posted by Tyler Davey at 4/23/2004 6:51:02 AM
I posted this message in dotnet.framework.security, and was told to repost it her Alright, I've been trying to figure out the solution to this problem for a few days and I'm officially stumped. My web app server, Machine A, needs the ability to create a file(xml) on my db server, Machine B. The...more >>

Sessions & SSL
Posted by John Hamilton via .NET 247 at 4/23/2004 5:13:07 AM
Hello=2E Here's my problem=2E I have an e-commerce site with a= login & checkout pages needing to be secure=2E To enforce these= pages to be ssl I simply put in the page load: If Not Request=2EIsSecureConnection Then Response=2ERedirect(Request=2EURL=2EAbsoluteUri=2EReplace("http:",= ...more >>

Forms Auth Problems.
Posted by Ed Staffin at 4/23/2004 5:12:05 AM
Hi, I am using the fairly standard code below to do my forms authentication ticket and redirect, however, I am finding that once successfully logged in, I don't get another log after I close the browser. Is there something I need to do to let it know that if the browser closes they should ...more >>

Exception Handling declarative security
Posted by pveechoud NO[at]SPAM vxcompany.com at 4/23/2004 12:34:01 AM
I'm reading myself into security and ASP.Net. I have written some demo code and now I'm wondering how you deal with exception handling when you use declarative security I have a method with the following attribute [PrincipalPermissionAttribute(SecurityAction.Demand, Name="Patrick")] priva...more >>

I have the same problem
Posted by jarod tupak via .NET 247 at 4/22/2004 9:55:51 PM
(Type your message here) I have the same problem when executing the code below. It returns me a "126" error from kernel32. Dim sContainer as String = "sample_example_key" Dim sProvider as String = "myprovider" If Not (CryptAcquireContext(lHCryptprov, sContainer, sProvider, PROV_RSA_FULL, 0))...more >>

Create Directory
Posted by John at 4/22/2004 9:58:19 AM
Hello, I am having a permissions problem when creating a directory. The relevant bits of my code look like this: // impersonate current user: WindowsIdentity ident = (WindowsIdentity) HttpContext.Current.User.Identity; _context = ident.Impersonate(); _name = ident.Name; _isauth...more >>

WebServices and getting FileNotFoundException
Posted by Tim Mavers at 4/21/2004 4:15:55 PM
From googling my problem before posting, I learned that this seems to be a very common problem with Web Services and dotnet. I read through countless articles and suggestions but still could only find one way to fix my problem, which IMHO, is not acceptable. First let me explain what's happen...more >>

help with connection
Posted by chris at 4/21/2004 3:56:02 PM
hi i created a user in sql server under login then i went to the database and under users i added the user and them gave the user permissions to select from the tables and execute the stored procedures but when i try to pass the user in my connection string i ge Access to the remote server is ...more >>

Forms authentication / cookies
Posted by Nils Magnus Englund at 4/21/2004 11:19:16 AM
Hi! I'm just curious about the use of cookies in forms authentication. The username and roles are stored in the encrypted cookie, but if a user manages to crack this cookie - will he be able to modify his own username and roles? Why doesn't ASP.NET simply use an ordinary session, with nothing ...more >>

Timing (forms) authenticated sessions out.
Posted by Paul at 4/21/2004 1:28:50 AM
Hi, I'm experimenting with forms authentication which I've got working (it's based on some technet stuff.) One thing however, is confusing me. A cookie is created based on the authentication ticket and there seem to be a number of expiry/expiration values. There's one in web.config in ...more >>

Disallowing HTML Tags (JScripts) from being entered
Posted by Henry at 4/21/2004 1:08:12 AM
Hi guys, I was wondering if anyone knows if the .NET framework has a library or methods that I can use to diallow users from entering HTML tags and more importantly JavaScript into textboxes and being stored in the database. Thank you in advance. Henry ...more >>

images folder access
Posted by at 4/20/2004 3:52:57 PM
I created a simple aspnet application which contains an imagebutton object. The imagebutton's ImageUrl property is set to : images/myimage.gif (the myimage.gif file is present in the /image subdir of the application folder) The ntfs permissons on the application folder as well as on /image ...more >>

2 sites - 1 authentication method
Posted by Chris at 4/20/2004 2:36:05 PM
We have developed two sites that both use forms authentication and have objects with custom principle interfaces and identity interfaces. I would like to use the same principals for both sites and load behind the scenes I have tried the following scenario 1) Create a web service that automtical...more >>

Password Change Prompt breaks ASP.NET pages
Posted by Rob Edwards at 4/20/2004 8:10:23 AM
Our network policy is that passwords must be changed every 90 days... so 14 days before the password expires the user begins to get prompted to change their password....once this prompt begins, most of the web applications I have written in Visual Studio .NET begin to break. On some of them, ...more >>

Cache Dependent Key/Encryption
Posted by A. Elamiri at 4/19/2004 10:22:34 AM
I would like to store some Role Information in a cookie since I cannot use Session in the AuthenticateRequest method. I thought of encrypting the cookie using Rijndael Algo. for provider. I would generate a 16 character key store it as a Cached object and replace it every 20-30 minutes, if the...more >>

trying to post to aspx anonyomously is blocked?
Posted by Larry at 4/19/2004 9:16:43 AM
I have written a webform page to respond to a users post on the web site. This worked on the test site which had anonymous turned off. I then moved it to the regular web site (copied the files, reinstalled the FP extension) and chaged the setting for anonymous use. but when I try to post the form...more >>

Error loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Config\machine.config
Posted by google NO[at]SPAM easiesttoremember.com at 4/18/2004 7:04:23 PM
I had many ASP.NET web applications that I created before I had to rebuild my machine. After a fresh install of XP Pro, VS.NET 2003, etc, I now get the following when running them. Note that I've already added the following to the web.config file just before the <appsettings> section: ...more >>

Want to Reboot server from ASPX page
Posted by Terry at 4/18/2004 11:56:02 AM
I am developing a asp.net web based service application for our product I am trying to trigger a reboot of the server based on a user request I believe I have all the appropriate code for AdjustingTokens etc an all those calls seem to succeed, however, the final call to ExitWindowsE is failing w...more >>

using HttpContext Class
Posted by Riham via .NET 247 at 4/18/2004 5:09:42 AM
I'm trying to get the PathInfo propert for the current URL request in a class file, but I can't get it to work. Here's what I've tried so far: using System.Web; String PathInfo; PathInfo = HttpContext.Current.Request.PathInfo(); I've also tried "using System.Web.HttpContext;" It gives ...more >>

Role-Based Authorization
Posted by PTB at 4/16/2004 5:01:01 PM
I am using ASP.NET and Access as the database. I would like to use role-based authorization for the login page. Can anyone help me?...more >>

App can't write to EventLog on Windows Server 2003
Posted by Scott Zabolotzky at 4/16/2004 2:19:23 PM
I have an app that writes to a custom event log (which is created at install time with a custom installer DLL). My app writes just fine to this custom log when running on Windows 2000 Server but when I try to run it on Windows 2003 Server I get "Access denied" errors. I'm using impersonation ...more >>

Possible IE 6 Bug - Differences Between Windows Explorer And IE
Posted by mrkwatkins NO[at]SPAM hotmail.com at 4/16/2004 10:43:23 AM
Hi, Apologies for cross posting like this, but I wasn't sure on the best group to post to and I didn't receive much of a response to my original email in microsoft.public.dotnet.framework.aspnet.security. My application currently has a rather large security hole in it which I need help with a...more >>

Advice: Authentication
Posted by PK at 4/16/2004 10:23:47 AM
Hi folks, I hope to get some of your advice on an authentication question that came up during the planning of web app. I'm a bit new to asp.net, so if you can offer some experience, I'd greatly appreciate it! I like form-based authentication because the usernames and passwords can be store...more >>

I've problem with Rijndael PKCS7
Posted by acquargento NO[at]SPAM yahoo.it at 4/16/2004 6:11:39 AM
I've tried with a simple program in vb.net but when i'm going to decript in my messagebox appears this message: PKCS7 padding is invalid and cannot be removed. I've found this few lines of codes in this site: http://www.dotnethell.it/articles/article.aspx?ArticleID=93 I've trasform in vb.ne...more >>

Logon API on Windows 2000 with ASP.NET 1.1
Posted by Rupreet Singh at 4/16/2004 4:46:02 AM
Hi Everyone I’m working Windows 2000 Professional with IIS 5.0 and Framework 1.1. In my current project, I had to use Windows Authentication. The problem is that even if I use right credentials, the LogonUser Function (P/Invoke) always return false. But if I uninstall ASP.NET 1.1 and then try ...more >>

aspnet userrights - where?
Posted by Mike Schwarz at 4/15/2004 11:32:21 PM
hi all i just set up a new win 2003 server with framework 1.1 (on old server 2000, all worked fine) i gave the following rights to the following users: e:\wwwroot aspnet read, execute, listing e:\wwwroot\web aspnet read, execute, listing i didnt touched the rights automatically...more >>

A potentially dangerous querystring ... [ValidateRequest]
Posted by benboris78 NO[at]SPAM yahoo.com at 4/15/2004 9:20:04 PM
All, When i use .net FRamework 1.1, for my web application, i get an error saying "A potentially dangerous querystring was detected from the client...." I have read the posts related to this and it seems this is due to some SECURITY FEATURE in 1.1!!! My code used to work in 1.0!!! now when t...more >>

HMAC-MD5
Posted by RM at 4/15/2004 9:16:04 AM
Hello all Is HMAC-MD5 supported on the .NET 1.1 framework? Some of the information that I have come across seems like it indicates that it is not supported What I am trying to do is to generate a trust_key based on this TRUST_KEY = HMAC("MD5",Secret_key,user_id), I am not sure how to implement t...more >>

Forms Authentication - Cookie not being generated...
Posted by Nugs at 4/15/2004 12:39:43 AM
Hi there everyone, I'm new to this newsgroup so I hope you don't mind me just asking a question, but it has been working me for way to long now and I need some help. I'm fairly new to ASP.NET and VB.NET but have been cramming for weeks now and hit a snag.It has to do with forms authentication in ...more >>


DevelopmentNow Blog