Custom Property Extensions
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Custom Property Extensions

 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server
Author Message
satish
Guest





Posted: Thu Oct 20, 2005 4:51 pm    Post subject: Custom Property Extensions Reply with quote

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.
Back to top
Stefan [MSFT]
Guest





Posted: Thu Oct 20, 2005 4:51 pm    Post subject: Re: Custom Property Extensions Reply with quote

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...
Quote:
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.
Back to top
satish
Guest





Posted: Thu Oct 20, 2005 4:51 pm    Post subject: Re: Custom Property Extensions Reply with quote

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:

Quote:
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.


Back to top
Stefan [MSFT]
Guest





Posted: Mon Oct 24, 2005 8:51 am    Post subject: Re: Custom Property Extensions Reply with quote

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...
Quote:
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:
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.


Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB