Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > january 2005

Filter by week: 1 2 3 4 5

Strong Name a dll (module)
Posted by Ammar at 1/31/2005 9:51:02 PM
hi, I want to strong name a Microsoft module (Microsoft.Web.UI.WebControls) as rest of my assemblies are Strong Named. I have tried al.exe and even tried to re-compile its IL file but to no use. Can someone tell me how to do this?...more >>

AD Change Password issue
Posted by Sathya Gomathi via DotNetMonster.com at 1/31/2005 9:28:32 PM
Hi, I trying to change password of an account in AD. This the code iam using string adspath = "LDAP://SYST.ctc.edu/CN="+username+",OU=Users,OU=Seattle District (060 - SCCD),OU=Washington Colleges,DC=SYST,DC=ctc,DC=edu"; DirectoryEntry entry1 = new DirectoryEntry (adspath, @"domain\username", ...more >>

Client/server application and Windows Integrated Auth
Posted by Joubert at 1/31/2005 3:39:04 PM
Hi, I have a .NET WinForms application that needs to identify the user and authenticate this against a datastore (could be Access, SQL Server, or Oracle). Currently, our login process is forms based so whatever login the user enters, together with the password, are matched against a table i...more >>

how to protect web server against SQL Injection ?
Posted by hoz at 1/31/2005 12:08:00 PM
i didnt find any information where to start . please write something ...more >>

Server Application Unavailable when moving Domains
Posted by Gravy at 1/28/2005 11:31:10 AM
Hi, I have a client that we have written an intranet asp.net application for. They installed it and configured it on some new hardware. The hardware was configured as a real domain with new client machines. Everything was working fine until... The new hardware was then moved to a new off...more >>

Seamless Login Page with ASP Dotnet
Posted by Joe Rigley at 1/28/2005 9:25:35 AM
Hi, I'm a little new to ASP Dotnet, but have been coding in classic ASP for over 5 years... I'd appreciate some suggestions/guidance in writing an Intranet login page that authenticates domain users to AD on a Win2003 server. Is it possible to code an .aspx page that will "automatically ob...more >>

RE: DPAPI failing with user store (revisited)
Posted by Dominick Baier at 1/28/2005 2:10:17 AM
no..but this is the usual workaround - COM+ does load User Profiles... In whidbey we have the remoting IPC channel which is a nice alternative to Enterprise Services... Dominick - DevelopMentor http://www.leastprivilege.com nntp://news.microsoft.com/microsoft.public.dotnet.framework....more >>

calling ADSI objects from WebApplication
Posted by johnny at 1/28/2005 1:15:03 AM
Hello, I got this weird problem. I have an intranet application that needs to communicate with Active directory. Authentication to Web application is done by means of active directory accounts. Now I have this code: DirectoryEntry objDomain = new DirectoryEntry("LDAP://rootDse"); string d...more >>



Security/Permission issue with OWC 11.0 on a Windows 2003 server
Posted by Nick Palmer at 1/27/2005 1:50:17 PM
Hi all, I've got what I think is a security/permission issue related to using the OWC 11 components on a Windows 2003 server. My web app has a client side Excel grid, and it also creates an server side OWC Excel component to do some formatting. This app all runs just fine and dandy on a Wind...more >>

DPAPI failing with user store (revisited)
Posted by Dominick Baier at 1/27/2005 2:58:01 AM
you can't use UserStore in an ASP.NET application - the DPAPI key for users is stored in the users' profile. ASP.NET does not load the userprofile for performance reasons (there is a LoadProfile win32 API - but it requires SYSTEM privs). so - you have to use the MachineStore. Dominick Baier ...more >>

Image doesn't load and security on folder is the cause??
Posted by Filip De Backer at 1/27/2005 12:07:02 AM
hi everyone, On the webserver, all the websites are in folders on the d-drive. eg: my test website is 'd:\dir1\dir2\websites\asptest'. The IIS is configurated that all th esite sare in the d:\...\websites\ directory I want to show a picture in the Image control. The images are in 'd:\dir1...more >>

Cookie not persisted w/o call to GetRedirectUrl()
Posted by Jim Foye at 1/26/2005 9:24:52 PM
I am using forms authentication. I do not have default.aspx nor do I want one as I am using multiple roles and I want to redirect the user after logging in based on his role. Here's the pertinent section from web.config: <authentication mode="Forms"> <forms name="MMAuth" loginUrl=...more >>

Impersonation
Posted by sgelfmann NO[at]SPAM yahoo.com at 1/26/2005 12:32:15 PM
I am a little confused about the difference between two ways of implementing impersonation. Some sources say that if one needs to run application under a specific account, he should use this <identity impersonate="true" username="username" password="password" /> Others state that the impers...more >>

SHA256 C# vs FIPS 180
Posted by Ravi Singh (UCSD) at 1/26/2005 11:58:59 AM
Hello all I am using the SHA 256 function call in C# using the input "jonny". I get the output 0fae56d5786cade88b348cf55a9e4a217406ff5359e517cddf9fea2bb686ea6f and I am expecting the output 7a29dc9b52b3e44eef25e0441853324c97489f5e626fc1aa97e4ede646b50a45 this is from the implementation...more >>

Custom Error pages
Posted by Rich at 1/26/2005 8:01:51 AM
Hi All, I have a windows authenticated web site - a sub directory has been secured by denying various roles. When access is denied the default error page for 401.2 is displayed - How can I customise my own access denied page? I have tried custom error tags in the web.config but that does...more >>

ASP.NET / certificat
Posted by Jerome at 1/26/2005 5:25:01 AM
Hi all I'm trying to access to a virtual directory (web server is a IIS 6.0 on Windows 2003 server) which requires client certificate with HttpWebRequest class. Simplified function code looks like this: HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(url); httpWebReque...more >>

Forms Authentication and requireSSL, what's the recommended best practice
Posted by mikemad at 1/26/2005 12:53:44 AM
I have an ASP.NET 1.1 Web app and am now implementing SSL. It used forms authentication. Everything works fine but I get unexpected(by me) behavior when I set the requireSSL in the config file. My scenario is, I want to login securely in a secure directory and then redirect to the home page of...more >>

LogonUser from ASP.NET
Posted by laimis at 1/25/2005 10:37:39 AM
Hello everybody, this is rather complicated, but intriguing problem that I have been having. What I want to do is: after user connects to my asp.net application, I want to elevate the thread's user from ASPNET to let's say administrator so that priviledged operation could be performed. I don't...more >>

forms based authentication in mixed asp / asp.net environment
Posted by tparks69 at 1/25/2005 8:09:03 AM
Is is possible to use forms based authentication in a mixed asp / asp.net environment? If so, can someone give me some ideas what I would have to do in my classic .asp pages to get them to function with forms-based authentication? Code examples would be greatly appreciated. Tom...more >>

Access Authentication
Posted by Shaker at 1/25/2005 2:35:04 AM
Hi, I have an ASP.Net Application, This application is accessed based on user identiy authorization. This application is hosed on server locted on NT domain (based On AD) groups. This application is also accessed from another workgroup (not defined on main NT domain). I could control the ...more >>

Use Dpapi with Shared Asp.Net Web Host?
Posted by Dominick Baier [DevelopMentor] at 1/24/2005 12:12:08 PM
i wrote a couple of DPAPI tools (extended the ms impl, a command line tool .. and a ASP.NET frontend) - just upload the single aspx file to the server and you can encrypt whatever strings you like with DPAPI...don't forget to secure that page (or better delete it when you are finished) download:...more >>

Serviced Component runs under ASPNET, not specified account
Posted by giatorta NO[at]SPAM gmail.com at 1/24/2005 11:04:54 AM
Cross posting since I had no reply yet from microsoft.public.dotnet.framework.component_services Hi all, I have an ASP.NET app and a Serviced Component that runs within a COM+ app the Serviced Component is intended to access a remote database with an identity that is NOT <MACHINE>\ASPNET...more >>

Use Dpapi with Shared Asp.Net Web Host?
Posted by Phil C. at 1/24/2005 2:57:19 AM
Hi. I'd like to use an encrypted database connection string. I'd also like use an encrypted set of customer tables with a symmetric algorithm (and a secure symmetric key) generated by .Net in my sql server database from asp.net code stored on a shared host asp.net server. I've downloa...more >>

window authentication against ADAM users
Posted by Ann at 1/23/2005 5:25:06 PM
Hi, Has anyone know how to do window authentication against ADAM users? Thanks for any reply Ann ...more >>

Help me! How I could make user in active directory
Posted by Sara Rafiee via .NET 247 at 1/23/2005 9:35:48 AM
hello can anyone help me making user in active directory , I wrote a code, but it could't work, could anyone correct it. thanks in advance. Sub example() 'Put user code to initialize the page here 'Try Dim AD As DirectoryEntry = _ New DirectoryEntry("LDAP://m...more >>

GUID question
Posted by Rob at 1/22/2005 7:17:47 AM
Hi, What is a GUID exactly. Is it a unique identifier that the environment assigns you or does it take your password and encrypt it? Does it correspond with a value in the database for validation (such as a password field)? Thanks Rob *** Sent via Developersdex http://www.developersdex.co...more >>

customizing validation script-injection error page.
Posted by EO at 1/21/2005 10:13:38 AM
I think i've googled to the end of the internet, but just can't find any resources to tell me how to customize the glorious error message that says: Server Error in '/Code' Application. A potentially dangerous request.form value was detected from the client....... How do I post a us...more >>

redirecting to specific webpage after logging in - ASP.NET 2.0
Posted by Devante at 1/20/2005 5:09:04 PM
Hi, I am new to ASP.NET and have been developing a database driven website, which until now has been painless. The one roadblock I am encountering is using the login control. What I would like to do is have a login page where a user enters their login and password and when they authentic...more >>

Access remote xml file using Credentials
Posted by Ianb at 1/20/2005 12:27:03 PM
Hi I'm trying to access an xml document outside my site root to do some manipulation and I'm getting an error (on the while statement): The remote server returned an error: (401) Unauthorized. I guess this is because I don't have permissions on the file but I've been trying to set cr...more >>

Calling a webservice using Kerberos
Posted by ALI-R at 1/20/2005 10:55:41 AM
I'm writing a webpart which is supposed to connect to a Webserice in our interanet.I am using "RSService.Credentials = System.Net.CredentialCache.DefaultCredentials;"to Authenticate to the webservice.but it dosn't work.why? I think SharePoint which hosts my webpart authenticate the user requ...more >>

InteropServices.COMException: Access is denied
Posted by Stephane at 1/20/2005 10:21:04 AM
Hi, I want to create a virtual directory when a user has filled a form on an ASP.net page. It works well on my dev server, but when I try it on my production server, it fails. I got this error: System.Runtime.InteropServices.COMException (0x80070005): Access is denied at System.Directo...more >>

Users login: Nested groups.
Posted by Tomas Martinez at 1/20/2005 7:37:15 AM
Hi there! If anyone could help me... thanks! My problem is this: our application controls the users login with Active Directory. It checks that the user is in the groups we allow, but if one of these groups has a nested group in it, the user isn't checked in this last group (or oth...more >>

Cannot open log for source
Posted by John at 1/19/2005 4:44:47 PM
System.InvalidOperationException: Cannot open log for source {0}. You may not have write access. ---> System.ComponentModel.Win32Exception: Access is denied I am getting the following error when writing to the event log (Application) from my asp.net app. Even when I use an identity setting I s...more >>

Wininet Authentication Problem
Posted by jeff NO[at]SPAM cumpsty.co.uk at 1/19/2005 6:32:25 AM
Can anyone help? We have an internal web application which uses a proxy to handle user authentication. Sessions, and Authentication are handles by a client side cookie. I have a requirement to download files from the server to the client and process them with data (they are word documents...more >>

Unable to create Users using Directory services in Windows 2003 Se
Posted by Sivaraman.S at 1/19/2005 6:21:04 AM
I am unable to create new users using directory services in Windows 2003 server. But it is possible to create users with ASP.NET applications in windows 2000. I am getting "Permission Denied" and the "General access denied error " error. Can you please some code samples or solution for...more >>

Frontpage Server Extension a security problem?
Posted by Arne at 1/19/2005 5:37:07 AM
Some years ago we were told by Microsoft that Frontpage Server Extension outside the firewall could be a possible security hole. Maybe some has invented a password guessing program that use Frontpage Server Extension. Is Frontpage Server Extension still a security problem?...more >>

redirecting from another page besides the login page
Posted by WhiskyRomeo at 1/18/2005 1:19:03 PM
We have forms authentication working on a website. A user is presented the login page where he can login or press a button to go to the Registration page. In the Registration page, he puts in his data and submits it. If successful, he is taken to the login page to reenter is his username,...more >>

Roles in encrypted cookie, security problem?
Posted by Per Salmi at 1/18/2005 9:37:40 AM
Hi, I was just looking over a few samples of role based security in combination with forms based authentication. The samples I find seem to store an encrypted list of roles in a cookie like this: (Code snippet taken from Code Project article by Heath Stewart) // Create a new...more >>

Kerberos delegation trauma
Posted by Mandy at 1/18/2005 8:37:04 AM
Hi, I have a .NET web application (C#) which calls a command line tool (using Process object). This tool in turn invokes another tool on another server by passing that servers IP address as an argument, however, an errors occurs when the tool on my machine tries to access the server. I ha...more >>

FormsAuthentication.RedirectFromLoginPage And Frames
Posted by Johan Karlsson at 1/18/2005 8:20:09 AM
Hi! I have a page called Login.aspx that handles login (takes username, pass and compares to a database). If the user is authenticated, FormsAuthentication.RedirectFromLoginPage is called and the page returns to the returnUrl. Everything works fine! BUT, (theres always a but) if I for so...more >>

Checking IsAuthenticated for new ASP.NET session
Posted by Richard at 1/18/2005 7:48:49 AM
How can I check to see if a user has previously been authenticated with FormsAuthentication on a page that is defined as viewable by everyone in web.config? For example, index.aspx and login.aspx allows everyone to see it via web.config entries: <authorization> <allow users="*" /> </authori...more >>

HIGHLY URGENT: Does Passport authentication pass on to web service
Posted by Lopamudra at 1/18/2005 5:05:02 AM
I have 2 webservers, one running a web application and the other a web service. The web application calls a web method of the web service internally to get some data. This web application is a passport enabled site, hence when the user logs on, it requests the user to log in with passport. ...more >>

Problem in Forms Authentication
Posted by rasika NO[at]SPAM tatatechnologies.com at 1/18/2005 12:18:04 AM
Hi Daniel, Thank u very much for ur reply... but that doesn't work either. My login page's name is "login.aspx" & thats why i hv specified the same in loginurl. What else can be the problem? I m still getting same error. Thanks & Regards, Rasika....more >>

Encrypted Data
Posted by Arne at 1/17/2005 4:03:02 PM
I need to create a sql column with Encrypted Credit Card. Fortunately .Net has a crypto API. Where would be a good place to store the key? Supposedly windows has a crypto store somewhere....more >>

Windows authentication for web application
Posted by Rujuta Gandhi at 1/17/2005 12:56:08 PM
Hi All, I want to do authentication based on the windows user accounts for my web application. I want to confirm the windows user account existance from my web application. I am having user name and password in my application. Or If u suggest to use the automatic authentication IIS perfo...more >>

IE to Support LDAP\UPN or just NTLM?
Posted by Lawnmower Gangster at 1/17/2005 11:07:04 AM
Hey all- Working on a new project and need IE to pass the LDAP\UPN instead of NTLM. Anyone know of a way for to make this happen? Anyone know if this will change in IE in the near future? With the big push to go LDAP you would think this is an option. Is this a crazy question? I am havin...more >>

Win XP event log: Access denied
Posted by Stephane at 1/17/2005 11:05:04 AM
Hi, I have an ASP.NET web site using event log to log errors. My home server used to be Win 2000 and it has always worked fine. Few days ago, I installed Win XP and since then, I have security problems... Here's the error I get: System.Web.Services.Protocols.SoapException: Server was unabl...more >>

Problem in forms authentication
Posted by rasika NO[at]SPAM tatatechnologies.com at 1/17/2005 12:18:48 AM
Hi friends, We have an web application which contains several folders & we are trying to implement forms authentication. Login page for the application is residing in root directory. When I try to access any of aspx page in a subfolder, authentication is done properly but it does not redir...more >>

Can't persist the cookie
Posted by JimFoye at 1/14/2005 3:35:02 PM
ticket is an instance of FormsAuthenticationTicket; HttpCookie cookie = new HttpCookie(FormsAuthentication.FormsCookieName, FormsAuthentication.Encrypt(ticket)); if (ticket.IsPersistent) cookie.Expires = DateTime.Now.AddYears(1); Response.Cookies.Add(cookie); I added the 2 lines t...more >>

Executing a background process
Posted by Kurtis Carlson at 1/14/2005 2:37:03 PM
I’m writing a web page that allows users to reset their own Terminal Services session. The app needs to execute a program in the background (on the web server) and queries sessions on another server. The program is running on an Intranet so, please, no comments about executing programs fro...more >>


DevelopmentNow Blog