Custom Property Extensions
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Custom Property Extensions




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Custom Property Extensions  
satish


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-24-05 03:39 PM

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 ]



    Re: Custom Property Extensions  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: Custom Property Extensions  
satish


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-24-05 03:39 PM

Hi Stefan,

I setup the connection to the external db and also able to connect
successfully. but still unable to resolve this issue. still getting the same
exception.

satish.

"Stefan [MSFT]" wrote:

> 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: [url]http://tinyurl.com/6zj44[/url
]
> ----------------------
>
>
> "satish" <satish@discussions.microsoft.com> wrote in message
> news:2ED81BA0-D211-43A8-8C2B-F68731202194@microsoft.com... 
>
>
>





[ Post a follow-up to this message ]



    Re: Custom Property Extensions  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-24-05 03:39 PM

Hi Satish,

then you should post this to an ASP.NET related newsgroup as this is not
really a MCMS related question.

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:3C57A689-8BD5-41AB-B0A8-79C3D0D8D4F5@microsoft.com...[vbcol=seagreen]
> Hi Stefan,
>
> I setup the connection to the external db and also able to connect
> successfully. but still unable to resolve this issue. still getting the
> same
> exception.
>
> satish.
>
> "Stefan [MSFT]" wrote:
> 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:07 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register