Questions tagged [securityexception]

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

329 questions
1
vote
0 answers

Security exception when connecting Android app to server

I am using the http://android.toolib.net/resources/samples/SampleSyncAdapter/index.html as an base when making my own connection to a server from my Android app. I have changed the url and created a username and password on the server for access.…
kakka47
  • 3,479
  • 8
  • 44
  • 52
1
vote
1 answer

System Security Exception in Silverlight app making GET request

I am new to silverlight. I have been trying to patch up a silverlight app that makes a get request to some site over the net, say google. However, I keep getting the system.security exception again nd again. I read various other posts and what i…
1
vote
1 answer

Security exception with Nhibernate on shared hosting

I have a website which uses nhibernate, it is hosted on a shared web host. I already disabled lazy loading trough "NHibernate.Cfg.Environment.UseReflectionOptimizer = false;" because reflection isn't allowed on my host. But now I have another…
1
vote
0 answers

How to obtain device owner permission in Android?

I'm working with a mobile application and I need to allow the app users to create customized APN(Access Point Name). So According to the android developer documentation. I did as follows String host = "mms.example.com"; byte[] ipAddress = new…
Hilton
  • 337
  • 6
  • 19
1
vote
2 answers

How to reset the password of the lock screen programmatically on Android SDK 26 or higher

In my application I want to change the password of the lock screen programmatically. So I wrote this method to reset the password: @TargetApi(26) private void changePasswordWithToken() { SecureRandom secureRandom = new SecureRandom(); byte[]…
dudi
  • 5,523
  • 4
  • 28
  • 57
1
vote
1 answer

Can an expired certificate generate a sun.security.validator.ValidatorException error?

I'm currently representing a colleague on vacation. One of the applications he was in charge of has been reporting the following error for a few days. Error: IOException sun.security.validator.ValidatorException: PKIX path building failed: …
Trillian
  • 411
  • 4
  • 15
1
vote
1 answer

DataContract serialization throw an Security exception

I am trying to use DataContractSerialization on WPF and WP7. All things are good on WPF but not on WP7. When I tryed to serialize an object on wp7, I received an unknown security exception. Please view the attached source code and help me. Source…
1
vote
0 answers

PdfRenderer throws SecurityException everytime if user select first Pdf document which is protected

I have used below code please checked it. PdfRenderer.Page page = null; Bitmap mBitmap; try { descriptor = getSeekableFileDescriptor(documentPath); renderer = new PdfRenderer(descriptor); page =…
1
vote
1 answer

ASP.NET MVC 3 - DotNetOpenAuth - System.Security.SecurityException

I am trying to set up a simple website which uses DotNetOpenAuth as its membership provider. Everything was going great until I ran into the following exception. [SecurityException: Request for the permission of type 'System.Net.WebPermission,…
1
vote
1 answer

android sync adapter Security Exception

Error Caused by: java.lang.SecurityException: uid 10184 cannot get secrets for accounts of type: Code @Nullable public static Account getSyncAccount(Context context) { AccountManager accountManager = (AccountManager)…
1
vote
1 answer

java.lang.SecurityException on add JMXConnection in jvisulavm

Hello Fellow developers, I am trying to open up a jmx connection to an application using jvisualvm, but when I add the connection it fails with SecurityException. Can anyone help me figure out how I can avoid this? Full stack trace SEVERE…
user3407243
  • 35
  • 1
  • 7
1
vote
2 answers

C# Problem Running WPF

Having some problems in my WPF application using Visual Studio 2010, building in C#. The error coming up at the moment is: SecurityException was unhandled by user code The following is the code when I click a button, it checks the size of a text…
The Woo
  • 17,809
  • 26
  • 57
  • 71
1
vote
2 answers

Security Exception: Permission 'android.permission.LOCATION_HARDWARE' not granted

I am developing an app in which I am tracking location using the tower location. So I am using the geo location api to track the location and accessing the phone state to get the network details. This worked well, suddenly it started giving the…
Sid
  • 2,792
  • 9
  • 55
  • 111
1
vote
1 answer

loading the right dependencies for sbt console in multi project setup causing derby security exception

I have a SBT multi project setup outlined https://github.com/geoHeil/sf-sbt-multiproject-dependency-problem and want to be able to execute sbt console in the root project. When executing: import org.apache.spark.sql.SparkSession val spark =…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
1
vote
0 answers

SecurityError when trying to get cssRules in Firefox

Simple document.styleSheets[0].cssRules from console works fine. But when trying to get this from function: var asd = function(){ return document.styleSheets[0].cssRules } console.log( asd() ); causes: SecurityError: The operation is…
kyb
  • 7,233
  • 5
  • 52
  • 105