|
Home > Archive > User Profile Management > November 2004 > COMException (0xC1004042)
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
COMException (0xC1004042)
|
|
| vazavi 2004-10-30, 8:46 pm |
| Hello all,
Does anybody know how to deal with COMException (0xC1004042) ? Error message
is Microsoft.CommerceServer.Runtime.Profiles.CommerceProfileSystemException:
Failed to set value for profile property 'logon_name'. --->
System.Runtime.InteropServices.COMException (0xC1004042): Exception from
HRESULT: 0xC1004042.
A little detail: logon_name is Unique Key in the profile and bound to the
field 'email' in UserObject table. 'Email' field has unique constraint.
BTW, when retrieving a user profile during logging in, Commerce Server also
throw s this:
Microsoft.CommerceServer.Runtime.Profiles.CommerceProfileSystemException:
Failed to retrieve profile. ---> System.Runtime.InteropServices.COMException
(0xC1004043): A duplicate value for unique key member GeneralInfo.logon_name
found while building indices for profile UserObject. Check the underlying
store for uniqueness of the property.
Any hint will be greatly appreciated.
Thanks,
Vazavi
| |
| Robert Bogue 2004-11-01, 5:50 pm |
| Have you made sure that the userobject table-email field is unique in your
database? What happens if you dump all of your current data and try to
start with a blank profile database?
--
Robert Bogue
Microsoft MVP Server-Networking
MCSE(NT4), MCSE (W2K), MCSA:Security (W2K), CNA, A+, Network+, IT Project+,
Server+, Security+, CDIA+, E-Biz+
Crowe Chizek and Co LLC
"vazavi" <vazavi@discussions.microsoft.com> wrote in message
news:2826FCF4-FCB8-4BD5-BD87-F13EAAB15C79@microsoft.com...
> Hello all,
>
> Does anybody know how to deal with COMException (0xC1004042) ? Error
message
> is
Microsoft.CommerceServer.Runtime.Profiles. CommerceProfileSystemException:
> Failed to set value for profile property 'logon_name'. --->
> System.Runtime.InteropServices.COMException (0xC1004042): Exception from
> HRESULT: 0xC1004042.
>
> A little detail: logon_name is Unique Key in the profile and bound to the
> field 'email' in UserObject table. 'Email' field has unique constraint.
>
> BTW, when retrieving a user profile during logging in, Commerce Server
also
> throw s this:
> Microsoft.CommerceServer.Runtime.Profiles.CommerceProfileSystemException:
> Failed to retrieve profile. --->
System.Runtime.InteropServices.COMException
> (0xC1004043): A duplicate value for unique key member
GeneralInfo.logon_name
> found while building indices for profile UserObject. Check the underlying
> store for uniqueness of the property.
>
> Any hint will be greatly appreciated.
> Thanks,
> Vazavi
| |
| vazavi 2004-11-01, 5:50 pm |
| I've found the solution. When I set tickets, I simply set ProfileContext to
null. The code works now. What does the exception stand for, though?
Thanks,
Vazavi
"Robert Bogue" wrote:
> Have you made sure that the userobject table-email field is unique in your
> database? What happens if you dump all of your current data and try to
> start with a blank profile database?
>
> --
> Robert Bogue
> Microsoft MVP Server-Networking
> MCSE(NT4), MCSE (W2K), MCSA:Security (W2K), CNA, A+, Network+, IT Project+,
> Server+, Security+, CDIA+, E-Biz+
> Crowe Chizek and Co LLC
> "vazavi" <vazavi@discussions.microsoft.com> wrote in message
> news:2826FCF4-FCB8-4BD5-BD87-F13EAAB15C79@microsoft.com...
> message
> Microsoft.CommerceServer.Runtime.Profiles.CommerceProfileSystemException:
> also
> System.Runtime.InteropServices.COMException
> GeneralInfo.logon_name
>
>
>
| |
| Fadi Meqbel 2004-11-27, 8:46 pm |
| I have had that same error before and it was solved by a service pack for
..NET Framework 1.1
"vazavi" <vazavi@discussions.microsoft.com> wrote in message
news:2826FCF4-FCB8-4BD5-BD87-F13EAAB15C79@microsoft.com...
> Hello all,
>
> Does anybody know how to deal with COMException (0xC1004042) ? Error
> message
> is
> Microsoft.CommerceServer.Runtime.Profiles.CommerceProfileSystemException:
> Failed to set value for profile property 'logon_name'. --->
> System.Runtime.InteropServices.COMException (0xC1004042): Exception from
> HRESULT: 0xC1004042.
>
> A little detail: logon_name is Unique Key in the profile and bound to the
> field 'email' in UserObject table. 'Email' field has unique constraint.
>
> BTW, when retrieving a user profile during logging in, Commerce Server
> also
> throw s this:
> Microsoft.CommerceServer.Runtime.Profiles.CommerceProfileSystemException:
> Failed to retrieve profile. --->
> System.Runtime.InteropServices.COMException
> (0xC1004043): A duplicate value for unique key member
> GeneralInfo.logon_name
> found while building indices for profile UserObject. Check the underlying
> store for uniqueness of the property.
>
> Any hint will be greatly appreciated.
> Thanks,
> Vazavi
|
|
|
|
|