Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Commerce Server Userprofile management > Invalid index e...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 189 of 267
Post > Topic >>

Invalid index error when attempting to read custom ProfileProperty

by =?Utf-8?B?cGFzdG9yaXVz?= <pastorius@[EMAIL PROTECTED] > Oct 11, 2005 at 09:00 AM

I am extending an existing Commerce Server 2002 UserObject profile
definition 
to include an additional property. I added a column to the relevant
database 
table, created a new data member corresponding to that column, then
created 
the property in my profile definition and mapped it to the new data
member. 
The issue I'm having is as follows:

My app is a provisioning .NET 1.1 web service. Since I don't want my web 
service class tightly-coupled to Commerce Server, I've pushed that code as

far down the class hierarchy as possible. I have two sets of tests for 
creating profiles: one using the middle-tier class directly (1), and one 
which uses a .NET web service proxy class to call the web method, which in

turn calls the middle-tier class (2). Now, when I run Test 1, all
properties, 
new and old, are set as expected. When I run Test 2, however, all
properties 
are set correctly EXCEPT for my new property, which throws a COMException 
including the message, "Invalid index." To clarify, I am using the string 
indexer for the ProfilePropertyCollection. This behavior would seem to 
indicate to me some kind of access security violation, except that only
the 
new property seems to have a problem.

Does anyone have any ideas as to what could be causing this? I've run
out...

Thanks.
 




 4 Posts in Topic:
Invalid index error when attempting to read custom ProfileProper
=?Utf-8?B?cGFzdG9yaXVz?=   2005-10-11 09:00:02 
RE: Invalid index error when attempting to read custom ProfilePr
=?Utf-8?B?cGFzdG9yaXVz?=   2005-10-14 10:35:03 
Re: Invalid index error when attempting to read custom ProfilePr
"Zoe Hart [MVP]"  2005-10-17 08:06:39 
Re: Invalid index error when attempting to read custom ProfilePr
=?Utf-8?B?cGFzdG9yaXVz?=   2005-10-17 08:11:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 17:02:12 CST 2008.