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 9141687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:40:42+00:00 2026-06-17T09:40:42+00:00

I added Elmah tool to my Sitecore Solution, actually I did it like here

  • 0

I added Elmah tool to my Sitecore Solution, actually I did it like here
http://newguid.net/sitecore/2011/using-elmah-for-error-logging-within-sitecore/
Just one rolls I have enabled is allowRemoteAccess property,

<elmah>
<security allowRemoteAccess="1" />  
</elmah>

Now logs available for every one from any place, but I want to show it just for user who is login (authorized) to sitecore (sitecore users)

How I can mange it ?

Thanks.

  • 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-17T09:40:43+00:00Added an answer on June 17, 2026 at 9:40 am

    I found solution after research of elmah source code and this article http://dotnetslackers.com/articles/aspnet/Securing-ELMAH-with-Independent-HTTP-Authentication.aspx. User can implement IRequestAuthorizationHandler for custom IHttpModule
    I did next:

     public class SitecoreAuthModule :IHttpModule, IRequestAuthorizationHandler
    {
        public bool Authorize(HttpContext context)
        {
            return SC.Context.User.IsAdministrator;
        }
    
        public void Init(HttpApplication context)
        {
            context.AuthenticateRequest += new EventHandler(ContextAuthenticateRequest); ;
        }
    
        void ContextAuthenticateRequest(object sender, EventArgs e)
        {
            var context = sender as HttpApplication;
            if (context.Request.Path.IndexOf("elmah.axd",
                StringComparison.InvariantCultureIgnoreCase) < 0)
                return;
        }
    
        public void Dispose()
        {
    
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I could not see unhandled exceptions ( MyService:RestServiceBase) on /elmah.axd path. I've added http
I am running a site using MVC 2 and .net 4.0. I recently added
I've added Elmah to my ASP.NET MVC (1.0) web application. Requests to /elmah.axd are
I created a web application and added an ELMAH module for error logging. It
I've added elmah to an asp.net mvc 4 application. Logging is working and now
I added Jquery toggle/show hide in my site (click the plus sign) http://pligg.marsgibson.info if
I want to add my own session variable to elmah error log table and
Added a Database and an Entity Model to my DAL Project. got an error
I added a private framework to my project using link binary with libraries, but
elmah is emailing me exceptions for missing controllers like so: System.Web.HttpException: The controller for

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.