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

  • Home
  • SEARCH
  • 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 590347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:31:11+00:00 2026-05-13T15:31:11+00:00

Many properties for SPContext.Current objects throws SecurityException. (Like SPContext.Current.Fields, many properties in SPContext.Current.Site (see

  • 0

Many properties for SPContext.Current objects throws SecurityException. (Like SPContext.Current.Fields, many properties in SPContext.Current.Site (see details).

  • DLL Is in GAC
  • Using Site Owner when trying those
    properties.
  • Maybe it has to do something with
    database access? However SharePoint
    site is working – I can add list
    items, etc.
  • Application Pool has permissions to
    database. Should I set application
    pool account as farm admin or it is
    not necessary?
  • In my Development environment, it
    just works.

Where could be the problem? Could someone, please, point me in right direction?

Thank you.

Details

From Immediate window:

SPContext.Current.Site
{Microsoft.SharePoint.SPSite}
    AllowRssFeeds: true
    AllowUnsafeUpdates: 'SPContext.Current.Site.AllowUnsafeUpdates' threw an exception of type 'System.Security.SecurityException'
    AllWebs: {Microsoft.SharePoint.SPWebCollection}
    ApplicationRightsMask: 9223372036854775807
    Audit: {Microsoft.SharePoint.SPAudit}
    CatchAccessDeniedException: true
    CertificationDate: 'SPContext.Current.Site.CertificationDate' threw an exception of type 'System.Security.SecurityException'
    ContentDatabase: {Microsoft.SharePoint.Administration.SPContentDatabase}
    CurrentChangeToken: 'SPContext.Current.Site.CurrentChangeToken' threw an exception of type 'System.Security.SecurityException'
    ...

And even exception have exception’s within himself:

Exception Window http://img41.imageshack.us/img41/442/ss20100204112542.png

ULS Log somwhere in that time, when exception occurs:
ULS Log http://img715.imageshack.us/img715/465/ss20100204113046.png

Event Viewer has bunch of errors

  • for SharePoint search Indexer (i
    don’t have a working search at the
    moment, I just hope it is not the
    problem)
  • And there is an error about Alternate
    Access Mapping (Sometimes I access
    SharePoint from IP address, not from
    hostname, as hostnames do not resolve
    in VPN for me, but that’s a different
    problem):

    The description for Event ID ( 8214 ) in Source ( Windows SharePoint Services 3 ) cannot be found. The
    local computer may not have the
    necessary registry information or
    message DLL files to display messages
    from a remote computer. You may be
    able to use the /AUXSOURCE= flag to
    retrieve this description; see Help
    and Support for details. The
    following information is part of the
    event: A request was made for a URL,
    http://192.168.0.9, which has not
    been configured in Alternate Access
    Mappings. Some links may point to
    the Alternate Access URL for the
    default zone, http://serveris.
    Review the Alternate Access mappings
    for this Web application at
    http://serveris:38590/_admin/AlternateUrlCollections.aspx
    and consider adding
    http://192.168.0.9 as a Public
    Alternate Access URL if it will be
    used frequently. Help on this error:
    http://go.microsoft.com/fwlink/?LinkId=114854.

  • 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-05-13T15:31:12+00:00Added an answer on May 13, 2026 at 3:31 pm

    Ahh, the issue is now resolved after stepping already like 3rd time on the same rake.

    It was happening in WebPart constructor (do not know if it plays a role, but inherited from Microsoft.SharePoint.WebPartPages.WebPart) and there the SPContext object was messed up.

    Interesting that it works in my development environment.

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

Sidebar

Ask A Question

Stats

  • Questions 298k
  • Answers 298k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer bitonal[x] = (grayscale[x] < thresholdValue); May 13, 2026 at 7:26 pm
  • Editorial Team
    Editorial Team added an answer You can set a callback function to receive incoming data… May 13, 2026 at 7:26 pm
  • Editorial Team
    Editorial Team added an answer What about something like this: String replaceFirstFrom(String str, int from,… May 13, 2026 at 7:26 pm

Related Questions

Is there a way to select only a given property from the App Engine
Assumptions Suppose I have a class with a property: class ClassWithProperty { public string
I have a class named Person with multiple properties, for example: public class Person
Suppose I have a customer object that has all of the standard customer properties
I want to add a constant value onto an incoming bound integer. In fact

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.