Questions tagged [securityexception]

SecurityException indicates a security violation and is thrown when a security error is detected.

318 questions
130
votes
18 answers

Java SecurityException: signer information does not match

I recompiled my classes as usual, and suddenly got the following error message. Why? How can I fix it? java.lang.SecurityException: class "Chinese_English_Dictionary"'s signer information does not match signer information of other classes in the…
Frank
  • 28,342
  • 54
  • 158
  • 227
127
votes
10 answers

The source was not found, but some or all event logs could not be searched

I am getting the following exception. I have given full control to Asp.net account on Eventlogs in Registry edit. [SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs:…
Vaibhav Jain
  • 31,558
  • 43
  • 103
  • 159
113
votes
9 answers

Android: java.lang.SecurityException: Permission Denial: start Intent

I have created an application containing GWVectraNotifier activity which is called from other applications to display Notification. In the Notification dialog, there will be 'show' button and 'close' button. Onclick of 'show' button, the…
Swathi EP
  • 3,766
  • 6
  • 24
  • 25
38
votes
2 answers

SecurityException: ECall methods must be packaged into a system module

I have a (C#) function similar to the following. private static bool SpecialCase = false; public void Foo() { if (SpecialCase) { InternalMethod(); return; } …
Sam Harwell
  • 92,171
  • 18
  • 189
  • 263
34
votes
10 answers

SecurityException: Failed to find provider null for user 0; on ActiveAndroid on Android 8.0

I have an app that is using ActiveAndroid and it's been working fine. However; now when I try to save a model to the database I'm getting a SecurityException. The stack is: Error saving model java.lang.SecurityException: Failed to find provider…
rindress
  • 646
  • 1
  • 6
  • 11
31
votes
6 answers

Why does my .NET application crash when run from a network drive?

My .NET application fails when run from a network drive even when the very same executable runs perfectly fine from a local hard drive? I tried checking for "Full trust" like so: try { // Demand full trust permissions PermissionSet fullTrust…
Paul Smith
  • 1,014
  • 2
  • 12
  • 28
24
votes
4 answers

crash before app starts : SecurityException: Permission Denial: INTERACT_ACROSS_USERS_FULL

Background I have a rooted device, which is Galaxy S3 I9300 , with Samsung stock based ROM, based on Android 4.3. I never had any problems running an app i'm working on with this device. The problem ever since yesterday (and I didn't change anything…
android developer
  • 106,412
  • 122
  • 641
  • 1,128
23
votes
1 answer

UnauthorizedAccessException vs SecurityException

The MSDN constructor for a FileStream says that it may throw either an UnauthorizedAccessException or a SecurityException. Here's what MSDN says about these exceptions. UnauthorizedAccessException: The exception that is thrown when the operating…
20
votes
2 answers

Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "https://localhost"

I am facing below issue while trying to capture click events of G + follow button. Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "https://localhost" from accessing a frame…
17
votes
3 answers

Security Exception (The application attempted to perform an operation not allowed by the security policy) )

we're having as issue with the following security exception when we attempt to open our admin login page. Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this…
Code_Worm
  • 2,669
  • 2
  • 25
  • 29
17
votes
3 answers

SecurityException: Unable to find field for dex.jar

How do I solve this error? I tried: Refreshing the project, and rebuilding. Cleaning the project, and rebuilding. Closing and reopening the project, and rebuilding Deleting the project (but not deleting the files — that's a checkbox on the project…
Serkan
  • 631
  • 3
  • 11
  • 19
16
votes
2 answers

PublisherAdView.loadAd() throwing SecurityException - getTasks() requires android.permission.GET_TASKS

Starting yesterday, March 11, I started seeing a spike in SecurityException crashes. (See stack trace below.) Are others seeing this exception as well? Searches haven't turned up anything. My question is whether upgrading to a newer version of Play…
Mark McClelland
  • 4,056
  • 3
  • 25
  • 46
16
votes
2 answers

SecurityException with grantUriPermission when sharing a file with FileProvider

I have two applications. I'm trying to share a file from application A to application B using a FileProvider. Application A calls the insert method on a ContentProvider in Application B to insert a record. The data inserted includes the Uri to the…
15
votes
8 answers

Programmatically install an apk in Android 7 / api24

I am trying to get my app to automatically install an apk. This works fine for api<24. But for 24, it is failing. Android has implemented extra security: For apps targeting Android 7.0, the Android framework enforces the StrictMode API policy…
elsie
  • 153
  • 1
  • 1
  • 4
15
votes
4 answers

TypeInitializationException when starting Windows Service because config section can not be created

I have a strange error on a specific Windows Server 2008 R2 machine (it works on other 2008 R2 machines) when starting a Windows Service. The service uses Common.Logging and log4net. However, on this specific machine the config section handler for…
Ronald Wildenberg
  • 30,401
  • 12
  • 82
  • 127
1
2 3
21 22