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 > may 2006

Filter by week: 1 2 3 4 5

ViewState (v1.1) gets corrupted after 978th characters
Posted by Jerry at 5/31/2006 5:52:59 PM
Hi, I've been getting dozens of the same exceptions every week from our web server (running asp.net v1.1). I looked at the viewstate in the exception, all of them shared the same problem: having some extra characters (0x21 0x0d 0x0a 0x20, which is "!\r\n ") inserted after the 978th characte...more >>

Simple readXML which requires authentication
Posted by Albert at 5/31/2006 2:43:48 PM
Hi, I have a web application which gets data from clients via XML. Up to now I used the DataSet.readXML("http://xmlURL.xml") to get and parse xml content into my database. Now one of my clients has placed his XML on a server that requires authentication and has provided the username and passw...more >>

securing an intranet site
Posted by steven scaife at 5/31/2006 3:34:02 AM
I have been tasked with developing a web application that only 2 people and myself for development purposes are allowed to access. I dont think its possible to use the web.config file for this as other members of the IT departement have full administrator access to teh network meaning they co...more >>

NullUser and WindowsIdentity (ImpersonateAnonymousToken) has no groups
Posted by Eric Pearson at 5/30/2006 12:49:10 PM
I create a user token for the windows anonymous user ("NT AUTHORITY\ANONYMOUS LOGON") using ImpersonateAnonymousToken. I successfully create a WindowsIdentity from that token, but the Groups property always reports zero groups, even though I have added the "NT AUTHORITY\ANONYMOUS LOGON" user...more >>

AspCrypt using .NET framework?
Posted by hobbitam NO[at]SPAM gmail.com at 5/30/2006 5:32:41 AM
Hi, Does anyone know how to duplicate AspCrypt's function using .NET framework? I have an existing ASP application that use AspCrypt to encrypt employees' password. Now I'm moving to ASP.NET but need to continue using old data. I don't know actually which encryption algorithm AspCrypt u...more >>

LDAP Login ASP
Posted by nani at 5/30/2006 3:09:45 AM
Hi, I'm using the following code to check the user authentication Set dso = GetObject("LDAP:") Set cont = dso.OpenDSObject(AdsPath,user,password, 34) But I getting the following error error '8007203a' Technology: ASP, IIS 6.0 , ADSI, VBScript Coluld you please tell the solution fo...more >>

how to disable the refresh button
Posted by AVL at 5/30/2006 12:26:02 AM
Hi, I want to disable teh refresh button on my pop window. Whenever I right click, my pop up window, the 'Refresh' button should be disbaled.... Can anyone help me on this.... any javascript functions to be included?...more >>

need help on parser error
Posted by AVL at 5/30/2006 12:22:01 AM
hi, I've a problem in accessing user controls when I deploy the application in the production server.. I'm receiving the following error... Ambiguous match found. Source Error: Line 1: <%@ Control Language="c#" AutoEventWireup="false" Codebehind="CommViewEvents.ascx.cs" Inherits="HydP...more >>



Generating Certificates for assemblies
Posted by SteveM at 5/29/2006 8:21:02 PM
A few questions from someone who hasn't done this before. I run the following commands makecert.exe -n "CN=Certifit" -sv yourkeypair.pvk yourcert.cer cert2spc.exe yourcert.cer yourspc.spc signtool.exe sign /a /s "Trusted Root Certification Authorities" ConflictResolver.dll signtool.e...more >>

Validation of viewstate MAC failed
Posted by Deborggraeve Randy at 5/29/2006 11:52:06 AM
I have some problems with a site project im working on. It should be easy, but im running into an error. My page has a server sided form and client sided (basic html) textboxes, a button and a simple jscript to submit the form to an other page. Currently there are no asp.net controls on the...more >>

website restricted to fixed public IP or to only PC wth predefined configuration
Posted by Kausar Parveen at 5/29/2006 12:00:00 AM
Hello All, I'm working on an ASP.NET application where I need for only a few machines (machines accessing the site will have fixed public IP) to be able to have access to the website. It should check some hardware components of PC to give access to the website. It should also g...more >>

<deny users="*"/>
Posted by Brent Stevenson at 5/28/2006 9:10:21 AM
I use <deny users="*"/> in my web.config file to disable my ASP.Net webs. This works fine on one of my web servers but not on another. Both are 2003 IIS6 web servers. What configuration option could be disabling my ability to use this mehod? ...more >>

How to encrypt a conn string in web.config?
Posted by slycat NO[at]SPAM consultant.com at 5/26/2006 1:11:08 PM
The line in web.config looks like this: <appSettings> <add key="abc" value="Data Source=SQLSERVER3;Initial Catalog=Venues;Persist Security Info=True;User ID=sqluser123;password=sqluser123pass" /> </appSettings> As you can see the username and pass are in the web.config in plain text...how...more >>

Retrive Autogenerated machinekey
Posted by james_blake NO[at]SPAM hotmail.com at 5/26/2006 9:32:15 AM
Hi We currently use FormsAuthentication functions to encrypt and decrypt our cookies. Unfortunatly when this was first implemented (not by me honest!!) the machinekey was left to Autogenerate. We now need to role out a second server to work with NLB. I know that we need to specify a key to ...more >>

host a windows user control File access
Posted by gabedog NO[at]SPAM gmail.com at 5/26/2006 8:12:27 AM
I have an internal app that is complex enough that I'd like to user either create a windows app or use a windows user control in an aps.net web page. The windows version uses the fileOpen component. I've modified the program to be a user control and access the data for the controls via a web ...more >>

ASP.net 2.0 profile provider. Turn on personalization
Posted by Nandu at 5/26/2006 7:15:01 AM
Hello, I am using membership and profile providers in my asp.net 2.0 website. Our client uses a pre-compiled content management site and my code is added to the site as user controls. When i uploaded the new registration (createuserwizard) and login controls along with web.config, I get the ...more >>

Possible to run an ASP.NET page as ANONYMOUS LOGON?
Posted by Michael D'Angelo at 5/25/2006 12:47:02 PM
This is related to my other post. I'm trying to impersonate NT AUTHORITY\ANONYMOUS LOGON when a user is not authenticated, rather than having it impersonate the IUSR account. I seem to be able to assume the id using ImpersonateAnonymousToken, but I get access denied to machine.config when ...more >>

URL Authorization does not override File Authorization?
Posted by SeanRW at 5/24/2006 4:32:44 PM
Hello, I have a question as to how URL Authorization and File Authorization work together. In particular, how can one supercede the other. In our setup, the impersonated user has an ACL on the resource (File Authorization would be successful). Yet, the URL Authorization rules are written s...more >>

Calling NetUserGetInfo from ASP.NET app
Posted by Michael D'Angelo at 5/24/2006 4:02:01 PM
I have an ASP.NET 2.0 app with windows authentication and impersonation enabled. The application pool is running as local system. I'm trying to call NetUserGetInfo to retrieve the full name of a user account. The code works when run from a console application. When I execute it from the ...more >>

Profile provider question
Posted by Saumin at 5/24/2006 12:41:02 PM
I had a question regarding ProfileProviders. Here is our situation. I have a custom MembershipProvider which is using ADAM. The reason that I have custom provider is because, we have client companies who have people with overlapping usernames. In other words, one client company, Company A has ...more >>

Create Secure Application
Posted by JP SIngh at 5/24/2006 12:12:24 PM
We are looking to create a web based application developed in ASP.Net but the security on the site has to be very tight and we do not want any to access the data on the site. Can someone please point out what are the various methods to secure your ..Net Applications. SSL, Client Certific...more >>

FormView and DropDownList
Posted by Maciejka at 5/24/2006 12:04:20 AM
I have a problem with formviews and DropDownLists in ASP.NET 2.0. I'm using a formview to insert an order into a database. Part of the order is a Driver's name. Currently, I have a dropdownlist bound to a database that simply selects all drivers from a database table. After inserting the data, t...more >>

Membership Management - problem reading users from SQL 2005
Posted by Pieter S at 5/23/2006 7:01:40 AM
Hello, I've configured SQL server 2005 as my back-end data store via aspnet_regsql.exe. I presume it was succesvol. Creating users en roles programmatically is no problem. When I start the Web Site Administration Tool I can see the created users and roles. But when I want to show them by code...more >>

Active Directory and Roles
Posted by Kenneth Keeley at 5/23/2006 12:00:00 AM
Hi, I have seen and used an example of a login page that uses ASP.Net 1.1 and Active Directory. I have recently updated the code to work with ASP.Net 2.0 and all is working. I have now been trying to ad roles to my Web site. I would like to see a sample where a user could be authenicated again...more >>

ASPNET Select permission denied...
Posted by Donald Adams at 5/23/2006 12:00:00 AM
I programmed my web using VS.Net 2005 with the a website as a file system and Database as system wide(as in not using the dynamic attach method) SQL 2005 DB. I had no problem during development. Finally, I published my web and I get the following error: SELECT permission denied on object ...more >>

How do I retreive Password, Secret Question and its answer from the Memberhisp API?
Posted by Learner at 5/22/2006 11:17:46 AM
Hi there, Our business doesn' t allow the anonymous users to create an account on our website. Only web admin creates user account. So using createuserWizard we are able to create users. But once we create the user we need to be able to send his UserID , password and Secret Question and also ...more >>

Styling CreateUserWizardStep Buttons?
Posted by clintonG at 5/21/2006 10:02:55 PM
Styling CreateUserWizardStep Buttons? I thought I had all aspects of the CreateUserWizard templated and all of my Previous and Next buttons use the style of the Button control as declared in the Skin file but the CreateUserWizardStep wires up its Previous and Next buttons some way I don't u...more >>

Single sign on across domain
Posted by Purushottam Khandebharad at 5/20/2006 6:21:45 AM
Hi, I have to implement single sign on between 2 web application, 1st is asp.net2.0 web app and 2nd is asp.net 1.1 web app, domains of both the applications are diff. I have already configured forms authentication for both the applications and <<<its working if both the applications are on ...more >>

Membership provider extension?
Posted by Fabrizio at 5/20/2006 3:10:02 AM
Hello, Ask advice for the better way in ASP.NET 2.0 to use the memebership provider but extended with the capability to lookup tuned access right from a DB. eg. Role = SalesManager then lookup for which Region(s) in a Database. Consider that this is just a sample, being the number of occurre...more >>

WBSERVICE : cannot see INVOKE from remote PC
Posted by Peter Stojkovic at 5/19/2006 4:54:03 PM
"Server" :Windows XP SP2 Professional IIS User: Windows XP SP2 professional I have a WEB-Service an a server . When I call the service locally inside IEXPLORER I can see a INVOKE-Button When I call the service from a remote compueter with IEXPLORER I CANNOT see a...more >>

Use RunAs command with NT Authority\Network account for DPAPI
Posted by Berry at JSO at 5/19/2006 3:03:02 PM
Using the DPAPI techniques described in http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/PAGHT000005.asp, I'd like to encrypt a connection string in the user store for a certain 3rd-party web app. Unfortunately, the 3rd-party web app company doesn't specify an al...more >>

.NET 2.0 Trust issue on Hosted Server
Posted by Cindy Lee at 5/19/2006 11:47:25 AM
I'm using a .net 2.0 Hosted server, IIS has trust level I think I medium, which I can't over-ride. I'm working off the Personal Website wizard. I get this security issue usually after I log in and come back. Sometimes I get it, and sometimes I don't. I can't repeat it all the time. How should...more >>

Password Validation
Posted by Ron at 5/18/2006 7:55:01 PM
Hi, I need a regular expression for a login control i am using. It needs to validate a minimum password length of 8. Must consist of 1 upper case character and 1 numeric character and no non-alphanumeric characters. Can some one please show me an example. I tried the following but have had...more >>

Confusion about Password Recovery
Posted by news.sbcglobal.net at 5/18/2006 6:49:39 PM
If I understand correctly, by default, ASP.NET 2.0 hashes the user password and this hashed password is unintelligible to the user (and unusable) when it is sent by the Password Recovery control. By default, this control resets the user's password to something random but I've never been able ...more >>

Lock a User/MembershipProvider/Login control
Posted by ulrich schumacher at 5/17/2006 4:30:01 AM
Hi experts, i wrote a custom MembershipProvider and when i come to implement the method "UnlockUser" i wonder that there is no method "LockUser". The member "IsLockedOut" of a MembershipUser is readony. So, how do I lock a user? I extend my custom provider class with a Method "LockUser". I...more >>

How can I set the HMACSHA1 key to hex?
Posted by RedEye at 5/16/2006 6:41:25 PM
I have tested the output against a hash calculation application. Every thing works fine but the only problem is that in order for the hash to match the ap's hash the HMACSHA1.Key needs to be set to HEX. Is there a different encoding type I should be using? Any help would be appreciated. ...more >>

advapi32.dll / LogonUser
Posted by C at 5/16/2006 11:02:01 AM
Hi, When I make a call to this API it works fine on my PC but not on another development PC. We both have the same OS and we both have local admin rights. I get no error. The LogonUser call returns false each time. Anyone have a similar problem? Thanks. ...more >>

2.0 security
Posted by CSharpguy at 5/16/2006 8:19:01 AM
On my web app I need to have a login screen, I've been reading about the Role and MembershipAPI that 2.0 offers and the login control as well. My web app is using Forms Auth, my question is, is it possible to use the Login Control, the MemberShipAPI, etc, BUT validate the user against my exisi...more >>

Roles and Memberships
Posted by Ron at 5/16/2006 7:59:03 AM
Hi, I need to retrieve only users and there information in the aspnet_Membership table that are associated with certain roles and then populate a GridView with only those users found that belong to those roles. I have searched through all the class associated to try and find some method that...more >>

.NET RSACryptoServiceProvider Class
Posted by C at 5/15/2006 3:33:01 AM
Hi, I am using the RSACryptoServiceProvider Class for all my encryption requirements. I have looked at various websites which detail this class. I am finding it hard to get any information in relation to the Public & Private Keys it uses and where the Keys are stored / distributed. When...more >>

Help hooking into 2.0 membership w/existing users, roles
Posted by dw at 5/13/2006 4:20:01 PM
Hello - We have an existing ASP.NET 1.0 web site that already has a set of tables for Users (user id and password plus many other attributes), Roles, etc. We are trying to migrate to ASP.NET 2.0 and we're hoping to hook into or extend the memberhsip and security features that are part of...more >>

Hooking into the membership model
Posted by Torben Frandsen at 5/12/2006 1:10:50 PM
Hi I'm building a new website where I'd like to use the built in membership model and the controls that come with it. I'd like to do a bit more than usual with it, so I'm hoping someone here can give me a few hints. 1) I'd like to register some additional information about the users of the...more >>

Extension of Role based security
Posted by Richard Cannock at 5/12/2006 8:31:02 AM
Hi. I am developing a sports based administration site where a user adminsters sports leagues .e.g. a soccer league. As i understand it, the current role based security is based on a user being in one to many global roles for the whole web application. In my application, a user may regi...more >>

Authentication between ASP.net 1.1 and 2.0
Posted by srinivas at 5/11/2006 4:18:01 PM
Hi, I'm having two ASP.net applications.One in asp.net 1.1 and another in 2.0 In the first application i'm using forms authentication where i'm storing the username details in the ticket. Now i'm invoking the second application from the first using a hyper link. Here i'm not getting the logge...more >>

Forms Authentication and remember me (1.1 framework)
Posted by seal at 5/10/2006 11:56:02 AM
I have successfully been using Forms Auth and remember me but I just found that I was not using forms auth signout. So for my login I was doing this .... if (HttpContext.Current.User.Identity.IsAuthenticated) { FormsIdentity id = HttpContext.Current.User.Identity as FormsIdentity; } Whe...more >>

DPAPI (Machine Store) Access Denied Problem.
Posted by Sachin Chavan at 5/10/2006 5:58:02 AM
Hi, I am using DPAPI for encrypting and decrypting my connection string. What i hv did is created a dll assembly which calls win32 API's CryptProtectData & CryptUnprotectData and in turn windows app and web app calls this dll assembly for encrypting and decrypting data respectively. Now...more >>

How to get file size in Client Machine using scripts?
Posted by Nabanit Barooah at 5/10/2006 5:25:01 AM
Hi, We are working on a Web Application (in ASP.NET). The application basically deals with uploads from the client machine. We need to check the size of the file that will be uploaded. The size must be known in the client - side of the application, so that proper validations can be done bef...more >>

Visual Studio 2005, SSL, Certificate validation
Posted by romiko2000 NO[at]SPAM yahoo.co.uk at 5/10/2006 2:09:52 AM
Hi Folks, I am having a problem, I am not sure how to attach an event to my code, so that the validate certificate routine runs when the HttpWebRequest.Create is called. Please can someone just advise me on how to do this, I would like to read the target server certificate when I connect to...more >>

asp.net 2.0 menu control shows restricted item
Posted by sparkyborder-softwareengineerorg NO[at]SPAM yahoo.com at 5/10/2006 1:23:38 AM
I've setup the app to disallow the user from clicking to or seeing the admin functions. The forced-login works on the click-to-the-restricted-pages, but I can still see the menu items even when not in the appropriate group. I have an Administrators role. web.config restricts both the admi...more >>

Service Unavailable error for IIS application pool
Posted by SpamAndEggs at 5/9/2006 5:13:01 PM
I have successfully used a domain account to serve as the identify for a "Windows Authentication Only" ASP.Net web application on one Windows 20003 server, but cannot get it to work on another Windows 2003 server. The error on the second server is "Service Unavailable". If I switch the c...more >>


DevelopmentNow Blog