Microsoft Content Management Server - ServerChangeCount

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > November 2004 > ServerChangeCount





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 ServerChangeCount
Joel Ward [MVP]

2004-11-23, 5:57 pm

Hi everyone,

Is there anything like AutoSession.ServerChangeCount in the .NET version of
MCMS?

We are using ServerChangeCount on an ASP site, and would like to use it on
the site after we finish moving it to ASP.NET. But we can't find any
properties like that in the .NET MCMS framework. We've done searches,
looked in the MCMS helpfile, but nothing.

Any ideas on how to do the same thing in ASP.NET?

Joel



Glenn Vassallo [MSFT]

2004-11-23, 8:46 pm

Hi everyone,

Is there anything like AutoSession.ServerChangeCount in the .NET version of
MCMS?

We are using ServerChangeCount on an ASP site, and would like to use it on
the site after we finish moving it to ASP.NET. But we can't find any
properties like that in the .NET MCMS framework. We've done searches,
looked in the MCMS helpfile, but nothing.

Any ideas on how to do the same thing in ASP.NET?

Joel

------------------------

Hi Joel,

I have not had a chance to test this, but perhaps utilising COM Interop on
AutoSession.ServerChangeCount would serve your needs.

Interoperating with Unmanaged Code -
http://msdn.microsoft.com/library/e...eroperatingwith
unmanagedcode.asp?frame=true

I suspect this would only work under Mixed Mode. This can be checked via
the General Tab of the SCA,

Glenn

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

2004-11-24, 7:52 am

Hi Joel,

there is no equivalent to this in the managed API.
In addition I don't think that the approach Glenn outlined will work as the
AutoSession object inherits from CmsAspContext which is not valid inside
ASP.NET.

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
--------------------------------


""Glenn Vassallo [MSFT]"" <glenv@online.microsoft.com> wrote in message
news:3RDNfwc0EHA.3820@cpmsftngxa10.phx.gbl...
> Hi everyone,
>
> Is there anything like AutoSession.ServerChangeCount in the .NET version

of
> MCMS?
>
> We are using ServerChangeCount on an ASP site, and would like to use it on
> the site after we finish moving it to ASP.NET. But we can't find any
> properties like that in the .NET MCMS framework. We've done searches,
> looked in the MCMS helpfile, but nothing.
>
> Any ideas on how to do the same thing in ASP.NET?
>
> Joel
>
> ------------------------
>
> Hi Joel,
>
> I have not had a chance to test this, but perhaps utilising COM Interop on
> AutoSession.ServerChangeCount would serve your needs.
>
> Interoperating with Unmanaged Code -
>

http://msdn.microsoft.com/library/e...eroperatingwith
> unmanagedcode.asp?frame=true
>
> I suspect this would only work under Mixed Mode. This can be checked via
> the General Tab of the SCA,
>
> Glenn
>
> --
> This posting is provided "AS IS" with no warranties, and confers no

rights.


Joel Ward [MVP]

2004-11-24, 7:52 am

So should we just drop this feature in our new site? It was nice to have,
as it helped us track if the site has changed (and how long the WWW service
had been running).

Do you have a suggestion on another way to track the "Server Change Count"?

Joel

"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:uOv%23gNh0EHA.2196@TK2MSFTNGP14.phx.gbl...
> Hi Joel,
>
> there is no equivalent to this in the managed API.
> In addition I don't think that the approach Glenn outlined will work as
> the
> AutoSession object inherits from CmsAspContext which is not valid inside
> ASP.NET.
>
> 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
> --------------------------------
>
>
> ""Glenn Vassallo [MSFT]"" <glenv@online.microsoft.com> wrote in message
> news:3RDNfwc0EHA.3820@cpmsftngxa10.phx.gbl...
> of
> http://msdn.microsoft.com/library/e...eroperatingwith
> rights.
>
>



Joel Ward [MVP]

2004-11-24, 5:52 pm

As a workaround, we decided to link to an ASP page that utilizes
Autosession.ServerChangeCount.

Joel

"Joel Ward [MVP]" <joelw-nospam@nospam-mvps.org> wrote in message
news:e3BYSih0EHA.1264@TK2MSFTNGP12.phx.gbl...
> So should we just drop this feature in our new site? It was nice to have,
> as it helped us track if the site has changed (and how long the WWW
> service had been running).
>
> Do you have a suggestion on another way to track the "Server Change
> Count"?
>
> Joel
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
> news:uOv%23gNh0EHA.2196@TK2MSFTNGP14.phx.gbl...
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com