Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > having an issue with iis5 when I move code from iis6

Reply
Thread Tools

having an issue with iis5 when I move code from iis6

 
 
=?Utf-8?B?Q2hyaXM=?=
Guest
Posts: n/a
 
      10-11-2004
Ok, I have the below function in my web app.

public void advalue_set_tbs_m (DirectoryEntry ad_user, string field, TextBox
tb)

{ //adds value to AD if value is > 0, if not, sets it to null

if (tb.Text.Length > 0)
{
ad_user.Properties[field].Clear();
ad_user.Properties[field].Add(tb.Text);
}
else
{
ad_user.Properties[field].Clear();
}
}

It works fine on my IIS 6 web server. I upgraded my IIS5 server to ASP.Net,
then moved the app over.

I am now getting the below error

System.InvalidOperationException: Operation is not valid due to the current
state of the object

on this line

ad_user.Properties[field].Add(tb.Text);

anyone have any idea whats going on ??

Chris
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IIS6.0 vs IIS5.1 - Integrated Windows Authentication Issue Luwk ASP .Net 1 11-22-2006 08:39 AM
ASP and ASPNET on IIS5 and IIS6 Dariusz Tomon ASP .Net 0 03-16-2006 08:51 PM
IIS5 > IIS6 Aspx pages with MSAccess dbs no longer working Mark B ASP .Net 8 07-28-2005 10:08 PM
X-Post: Cannot set Application object in IIS6.0, but could in IIS5 =?Utf-8?B?QWw=?= ASP .Net 4 08-26-2004 10:35 PM
Writing ASP.NET on IIS6 and publishing to IIS5 Brian Henry ASP .Net 1 06-25-2003 08:52 PM



Advertisments