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




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

    Problems with CmsHttpContext  
Jen


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


 
07-09-04 09: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





[ Post a follow-up to this message ]



    Re: Problems with CmsHttpContext  
Stefan [MSFT]


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


 
07-09-04 09: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...>
MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...nagement+Server
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







[ Post a follow-up to this message ]



    Re: Problems with CmsHttpContext  


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


 
07-09-04 09: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] 
>
>
>.
>





[ Post a follow-up to this message ]



    Re: Problems with CmsHttpContext  
Stefan [MSFT]


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


 
07-09-04 09: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...>
MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...nagement+Server
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 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:07 AM.      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