| Author |
Message |
satish
Guest
|
Posted:
Thu Oct 20, 2005 4:51 pm Post subject:
Custom Property Extensions |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
 |
|
|
|
|