Microsoft Content Management Server - 'NRCOMPAREFROM' is undefined.

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > March 2006 > 'NRCOMPAREFROM' is undefined.





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 'NRCOMPAREFROM' is undefined.
TL

2006-03-17, 5:52 pm

Hi,
I encountered the above error when I tried to compare Revision History. I've
check that the HTTP Compression for my Win 2k3 server is not turned on. How
can I resolve this problem?

Thanks.
Stefan [MSFT]

2006-03-17, 5:52 pm

Hi TL,

this can happen if the generated html code in your site is injecting
0-bytes.
Please check the generated html.

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
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------


"TL" <TL@discussions.microsoft.com> wrote in message
news:6756CD0F-F034-4BF5-B5F8-9AB381CC5A0E@microsoft.com...
> Hi,
> I encountered the above error when I tried to compare Revision History.
> I've
> check that the HTTP Compression for my Win 2k3 server is not turned on.
> How
> can I resolve this problem?
>
> Thanks.



TL

2006-03-18, 3:18 am

Hi Stefan,

What do you mean by 0-bytes and how can I check for that?

Thanks

"Stefan [MSFT]" wrote:

> Hi TL,
>
> this can happen if the generated html code in your site is injecting
> 0-bytes.
> Please check the generated html.
>
> 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
> Check out the new book as well: Advanced MCMS development:
> http://tinyurl.com/8ugwj
> ----------------------
>
>
> "TL" <TL@discussions.microsoft.com> wrote in message
> news:6756CD0F-F034-4BF5-B5F8-9AB381CC5A0E@microsoft.com...
>
>
>

Stefan [MSFT]

2006-03-18, 3:18 am

Hi TL,

null bytes are bytes with the code point "0". Every character has a
charpoint. "0" actually means end of string in "C" and that's the reason why
"0" bytes in content can cause problems.

Best would be to take a network monitor trace of your page and analyze this.

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
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------


"TL" <TL@discussions.microsoft.com> wrote in message
news:507C9F26-43D2-4E0F-8259-0034C1866F26@microsoft.com...[vbcol=seagreen]
> Hi Stefan,
>
> What do you mean by 0-bytes and how can I check for that?
>
> Thanks
>
> "Stefan [MSFT]" wrote:
>


TL

2006-03-18, 3:18 am

Hi Stefan,

I've located the source of the error. It's due to the mcmswebcontrollibrary
breadcrumbs control I'm using. The line of code which gives this problem is
ChannelColection colSubChannels = CMSContext.RootChannel.Channels;
CMSContext is actually CmsHttpContext.Current.

The error I received is System.NullReferenceException: Object reference not
set to an instance of an object. Hope you can help me with this.

Thanks.


"Stefan [MSFT]" wrote:

> Hi TL,
>
> null bytes are bytes with the code point "0". Every character has a
> charpoint. "0" actually means end of string in "C" and that's the reason why
> "0" bytes in content can cause problems.
>
> Best would be to take a network monitor trace of your page and analyze this.
>
> 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
> Check out the new book as well: Advanced MCMS development:
> http://tinyurl.com/8ugwj
> ----------------------
>
>
> "TL" <TL@discussions.microsoft.com> wrote in message
> news:507C9F26-43D2-4E0F-8259-0034C1866F26@microsoft.com...
>
>
>

TL

2006-03-18, 3:18 am

Opps, made a mistake, the error was in the dynamic navigation control and not
the breadcrumbs control. The error occurred in render(). I realised that only
an administrator is able to view the revision history and revisions without
problem. The workaround I've done so far was to put the render funtion in a
try catch. Does anyone know of how to resolve this problem in a more elegant
way? Does microsoft have any hotfix for this? I'm using windows 2003 server
with mcms sp1a.

"TL" wrote:
[vbcol=seagreen]
> Hi Stefan,
>
> I've located the source of the error. It's due to the mcmswebcontrollibrary
> breadcrumbs control I'm using. The line of code which gives this problem is
> ChannelColection colSubChannels = CMSContext.RootChannel.Channels;
> CMSContext is actually CmsHttpContext.Current.
>
> The error I received is System.NullReferenceException: Object reference not
> set to an instance of an object. Hope you can help me with this.
>
> Thanks.
>
>
> "Stefan [MSFT]" wrote:
>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com