10-24-05 03:39 PM
Hi Satish,
seems you did not setup the connection string to your external DB which
should hold the custom properties correct.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"satish" <satish@discussions.microsoft.com> wrote in message
news:2ED81BA0-D211-43A8-8C2B-F68731202194@microsoft.com...
> Hi,
>
> I am trying to use the CustomPropertyExtender (CustomPropertyDbEx) in my
> application. I am doing implementation as per the guidelines by adding
> references and implementing as below.
>
> CustomPropertyDbEx cp;
>
> try
> {
> cp = new CustomPropertyDbEx(objCurChannel);
> cp.AssetType = CustomPropertyDbExAssetType.Channel;
> cp.AssetGuid = new Guid(objCurChannel.Guid);
> cp.Key = "test";
> cp.Value = "satish";
> cp.Commit();
> }
> catch(Exception ex)
> {
> Response.Write(ex.Message);
> Response.Write(ex.Source);
> Response.End();
> }
>
> But i am getting the following exception:
> System.NullReferenceException: Object reference not set to an instance of
> an
> object.
>
> with the stacktrace as below:
>
> ContentManagement.Extensions.DataHandler.InitConnectionString(String
> connectionString) +39
> ContentManagement.Extensions.Searches.GetByKey(String value) +46
>
>
> Can anybody help me how to findout the reason for this exception?
>
> Satish.
[ Post a follow-up to this message ]
|