Microsoft Content Management Server - Autosession ASPX / CMS 2001

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > June 2005 > Autosession ASPX / CMS 2001





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 Autosession ASPX / CMS 2001
Braulio Diez

2005-05-31, 8:50 pm

Hi,

I'm trying to access CMS 2001 from an ASPX, I have set up the "AspCompat"
to true, and tried the following code (just in the HTML part):

<%@ Import Namespace="RESOLUTIONOBJECTMODELLib" %>

Dim Autosession
Dim Result

Autosession =Server.CreateObject("ResolutionObjectModel.Autosession3")

Dim pChannels

pChannels = Autosession.Searches.NewChannels(100)


But when it raises the "NewChannels" line, I get the following error:


"Exception Details: System.Runtime.InteropServices.COMException: Login
required. The requested action can only be performed after a successful login
has been completed. The current session is not logged in."

What I'm doing wrong ? I have tried as well to call
Autosession.AuthenticateUsingUserInfo, and AuthenticaUsingSiteServer,
without success.

The aspx file is located under the \inetpub\.... folder of the server
where I have installed the CMS 2001

Thanks in advance, greetings
Braulio

--
/// -----------------------------------
/// Braulio DÃ_ez
/// Desarrollador C#
/// Málaga - España
// -----------------------------------
Chester Ragel

2005-06-01, 2:48 am

Hi Braulio Diez,

After creating the Autosession, you must authendicate. For more info check
this -
http://msdn.microsoft.com/library/d...Autosession.asp

Cheers,
Chester.

"Braulio Diez" <braulio121NOSPAM@yahoo.es> wrote in message
news:9BC808EC-D4CF-45BF-BDBE-25A811FB4E50@microsoft.com...
> Hi,
>
> I'm trying to access CMS 2001 from an ASPX, I have set up the

"AspCompat"
> to true, and tried the following code (just in the HTML part):
>
> <%@ Import Namespace="RESOLUTIONOBJECTMODELLib" %>
>
> Dim Autosession
> Dim Result
>
> Autosession =Server.CreateObject("ResolutionObjectModel.Autosession3")
>
> Dim pChannels
>
> pChannels = Autosession.Searches.NewChannels(100)
>
>
> But when it raises the "NewChannels" line, I get the following error:
>
>
> "Exception Details: System.Runtime.InteropServices.COMException: Login
> required. The requested action can only be performed after a successful

login
> has been completed. The current session is not logged in."
>
> What I'm doing wrong ? I have tried as well to call
> Autosession.AuthenticateUsingUserInfo, and AuthenticaUsingSiteServer,
> without success.
>
> The aspx file is located under the \inetpub\.... folder of the server
> where I have installed the CMS 2001
>
> Thanks in advance, greetings
> Braulio
>
> --
> /// -----------------------------------
> /// Braulio Díez
> /// Desarrollador C#
> /// Málaga - España
> // -----------------------------------



Braulio Diez

2005-06-01, 2:48 am

Sorry Chester,

But that's what I tried, just to authenticate and it failed, I used the
three methods to try to authenticate and no success

> What I'm doing wrong ? I have tried as well to call
> Autosession.AuthenticateUsingUserInfo, and AuthenticaUsingSiteServer,
> without success.


I don't know if this ASPX pages must be on an special folder. I have seen
as well that for standard ASP pages there is one include that I cannot add to
ASPX pages.

Where can be the error ?

Thanks in advance, Greetings
Braulio


"Braulio Diez" escribió:

> Hi,
>
> I'm trying to access CMS 2001 from an ASPX, I have set up the "AspCompat"
> to true, and tried the following code (just in the HTML part):
>
> <%@ Import Namespace="RESOLUTIONOBJECTMODELLib" %>
>
> Dim Autosession
> Dim Result
>
> Autosession =Server.CreateObject("ResolutionObjectModel.Autosession3")
>
> Dim pChannels
>
> pChannels = Autosession.Searches.NewChannels(100)
>
>
> But when it raises the "NewChannels" line, I get the following error:
>
>
> "Exception Details: System.Runtime.InteropServices.COMException: Login
> required. The requested action can only be performed after a successful login
> has been completed. The current session is not logged in."
>
> What I'm doing wrong ? I have tried as well to call
> Autosession.AuthenticateUsingUserInfo, and AuthenticaUsingSiteServer,
> without success.
>
> The aspx file is located under the \inetpub\.... folder of the server
> where I have installed the CMS 2001
>
> Thanks in advance, greetings
> Braulio
>
> --
> /// -----------------------------------
> /// Braulio DÃ_ez
> /// Desarrollador C#
> /// Málaga - España
> // -----------------------------------

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com