Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8261607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:28:02+00:00 2026-06-08T03:28:02+00:00

I am trying to develop a Custom Page, wherein, I am trying to get

  • 0

I am trying to develop a Custom Page, wherein, I am trying to get a List of all Components that are present in a particular publication.

In the Page Load of the aspx page, I need to get the session for the currently logged in User.

When I try to use the code

    Session currSession = new Session();
    Response.Write(currSession.User.Id);

I get the following error.

Access is denied for the user NT AUTHORITY\NETWORK SERVICE

When I try the code with

Session currSession = new Session(WindowsIdentity.GetCurrent());
Response.Write(currSession.User.Id);

I get the following error.

The name 'WindowsIdentity' does not exist in the current context

1.) What should be a proper method to get the session in a Custom Page ?
Can we use the HttpContext.Current.Request.ServerVariables.Get(“REMOTE_USER”), to get the user.

2.) Should Custom Page use CoreServices or TOM.NET API’s to get information from CM. Which is the preferred option.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T03:28:03+00:00Added an answer on June 8, 2026 at 3:28 am

    You cannot use the TOM.NET API for processes other than Templates and Event System. Please use the Core Service API instead for this (there you won’t need a Session).

    I might rephrase this to: you should not use the TOM.NET API for processes other than Templates and Event System. As technically it is possible, but it’s not supposed to be used like that, that is what the core service is introduced for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to develop a custom spring namespace that works like the built-in 'p'
I am trying to develop a custom activity for my sharepoint workflow that would
I am trying to develop some general purpose custom ValidationAttributes. The fact that one
I'm trying to develop a custom control for asp.net that will have the following
I am trying to develop a custom module for my d6 site that lets
I am trying to develop a custom movie player in iPhone using AVPlayer. But
I'm playing with maven plugins, specifically i'm trying to develop a custom maven plugin
Im trying to develop service that starts by bootup receiver if the wifi or
im trying to develop an app for a win CE mobile device that downloads
I am trying to develop custom control in JSF 1.2 (using facelets). I followed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.