Microsoft Content Management Server - Problems with CmsHttpContext

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > July 2004 > Problems with CmsHttpContext





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 Problems with CmsHttpContext
Jen

2004-07-09, 4:15 pm

In one of our pages we set the current channel manually
by using CmsHttpContext.Searches.GetByPath and passing in
a channel heirarchy. It works properly on our development
server, but the channel is null when we do the same thing
on our production server. What could we be missing on our
production server? Any ideas?
Thanks!
Jen
Stefan [MSFT]

2004-07-09, 4:15 pm

Hi Jen,

usually you would have to use

CmsHttpContext.Current.Searches.GetByPath rather than
CmsHttpContext.Searches.GetByPath

If this is what you mean, please check the rights on the channel. You need
to ensure that the current user has at least subscriber rights on the
channel.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"Jen" <anonymous@discussions.microsoft.com> wrote in message
news:282ea01c46396$0b4e94c0$a301280a@phx
.gbl...
> In one of our pages we set the current channel manually
> by using CmsHttpContext.Searches.GetByPath and passing in
> a channel heirarchy. It works properly on our development
> server, but the channel is null when we do the same thing
> on our production server. What could we be missing on our
> production server? Any ideas?
> Thanks!
> Jen



2004-07-09, 4:15 pm

Hi Stefan -

I am using CmsHttpContext.Current.Searches.GetByPath, I
must have left out the "Current" part earlier. We're
playing around with the permissions now to see if it
helps.

Thanks,
Jen

>-----Original Message-----
>Hi Jen,
>
>usually you would have to use
>
>CmsHttpContext.Current.Searches.GetByPath rather than
>CmsHttpContext.Searches.GetByPath
>
>If this is what you mean, please check the rights on the

channel. You need
>to ensure that the current user has at least subscriber

rights on the
>channel.
>
>Cheers,
>Stefan.
>
>--
>This posting is provided "AS IS" with no warranties, and

confers no rights.
>
>MCMS FAQ:
>http://download.microsoft.com/download/4/2/5/4250f79a-

c3a1-4003-9272-2404e92bb76a/MCMS+2002+-+(complete)+FAQ.htm
>MCMS Blog:

http://blogs.msdn.com/stefan_gossner/category/4983.aspx
>MCMS Sample Code:
>http://www.gotdotnet.com/community/...ples/Default.as

px? ProductDropDownList=Content+Management+S
erver
>MCMS Whitepapers and other docs:
>http://blogs.msdn.com/stefan_gossne...ve/2003/12/07/4

1859.aspx
>--------------------------------
>
>
>"Jen" <anonymous@discussions.microsoft.com> wrote in

message
> news:282ea01c46396$0b4e94c0$a301280a@phx
.gbl...
in[vbcol=seagreen]
development[vbcol=seagreen]
thing[vbcol=seagreen]
our[vbcol=seagreen]
>
>
>.
>

Stefan [MSFT]

2004-07-09, 4:15 pm

Hi,

a common problem is that different domains are used in production and
development or that guest is enabled on one system but not on the other.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


<anonymous@discussions.microsoft.com> wrote in message
news:2780b01c46399$6b627fe0$a501280a@phx
.gbl...[vbcol=seagreen]
> Hi Stefan -
>
> I am using CmsHttpContext.Current.Searches.GetByPath, I
> must have left out the "Current" part earlier. We're
> playing around with the permissions now to see if it
> helps.
>
> Thanks,
> Jen
>
> channel. You need
> rights on the
> confers no rights.
> c3a1-4003-9272-2404e92bb76a/MCMS+2002+-+(complete)+FAQ.htm
> http://blogs.msdn.com/stefan_gossner/category/4983.aspx
> px? ProductDropDownList=Content+Management+S
erver
> 1859.aspx
> message
> in
> development
> thing
> our


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com