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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:24:33+00:00 2026-06-09T03:24:33+00:00

I am getting the following error at this line of code… MembershipUser newuser =

  • 0

I am getting the following error at this line of code…

MembershipUser newuser = Membership.CreateUser(usersvm.username, usersvm.password,
                usersvm.email, null, null, true, null, out createStatus);

The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application’s trust level in the configuration file.

[SecurityException: The source was not found, but some or all event logs could not be searched. To create the source, you need permission to read all event logs to make sure that the new source name is unique. Inaccessible logs: Security.]

I also have this in the web.config file

  <system.web>
     <trust level="Full"/>

Here is some stack trace

MySql.Web.Security.MySQLMembershipProvider.WriteToEventLog(Exception e, String action) +380
System.Web.Security.Membership.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) +207
System.Web.Security.Membership.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, MembershipCreateStatus& status) +26
  • 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-09T03:24:36+00:00Added an answer on June 9, 2026 at 3:24 am

    I needed to add this writeExceptionsToEventLog = “false” in web.config like this

    <membership defaultProvider="MySQLMembershipProvider">
       <providers>
          <remove name="MySQLMembershipProvider"/>
               <add autogenerateschema="true" writeExceptionsToEventLog="false" ....
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi i am getting the following error in this code /* Class : CreateMobileChatterCntrl
I am compiling following code and getting following error. How to fix this? Thanks
I am getting this error when I run the following code: #!/usr/bin/env ruby -rubygems
So, when I try and run this line of code, I'm getting the following
I'm getting this weird compilation error with eclipse in the following code block. I've
I am getting the following error when trying to execute a line of code
I'm running Valgrind and I'm getting the following error (this is not the only
We are getting following error when we try to validate our app. This bundle
I have no idea why I'm getting this following error: Control cannot fall through
After resolving issues with RIA installation here , I'm still getting this following error.

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.