Questions tagged [securityexception]

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

329 questions
2
votes
2 answers

Writing to Registry (HKEY_LOCAL_MACHINE) in XP

I am trying to modify a registry key that I have been told controls whether write-caching is enabled on particular hard drives. The key should be: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Enum\IDE\\\Device…
Siyfion
  • 416
  • 1
  • 6
  • 17
2
votes
3 answers

Clear another applications cache

I´ve been reading around here about cleaning another applications cahce-memory, and I´ve also tried coding my own app. The result I´ve got, is that with Androids current securitylayer, it´s not possible. But, there is currently many cache-cleaner…
MAA
  • 93
  • 3
  • 13
2
votes
1 answer

Why ''Try ... Catch .. End Try" does not catch all exceptions? VB.NET

This error occurs ''System.Security.SecurityException: Requested registry access is not allowed. at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)'' when I try to add a key to Registry. I mention that application…
Andrei20193
  • 429
  • 3
  • 9
  • 17
2
votes
1 answer

Midlet signed with verisign securityexception in S40

I signed a midlet with a verisign certificate. In other devices works well, but in a Nokia 2710 S40, I get SecurityException: Permission Denied each time the application does an httpconnection. I have already tried with all the permissions in…
Laura Isabel
  • 209
  • 4
  • 10
2
votes
1 answer

Gson SecurityException: Can not make Class Constructor accessible

I am using Gson to serialize/deserialize a class that contains a static nested class. The class looks like below. public class ClassA { private NestedClass nestedClass; public NestedClass getNestedClass() { return nestedClass; } public void…
nikkatsa
  • 1,751
  • 4
  • 26
  • 43
2
votes
1 answer

Self-signed Applet throws SecurityException when writing to file

I want to make an Applet that's capable of downloading files to a computer, and then opening them in the associated editor (when the file is saved, it is supposed to be uploaded back again). However, before I spend hours getting it to work, I have…
DavidS
  • 1,660
  • 1
  • 12
  • 26
2
votes
0 answers

The action that failed was: LinkDemand The type of first permission

I am developing a small exe csharp windows form program that would be executed from network drive. I understand that using network drive path it would cause security problem. Therefore, I modify my code but however, when I try to run "Form.Show()",…
neobie
  • 2,847
  • 5
  • 27
  • 31
1
vote
0 answers

mvc securityexception on action filter attribute

So I have this security setup on my Action using the OnActionExecuting override of the ActionFilter Attribute. public override void OnActionExecuting(ActionExecutingContext filterContext) { RouteValueDictionary routeDeniedUsers = new…
1
vote
1 answer

How to avoid the "Deceptive site ahead" screen on sites that host git pages?

Browser shows this page while open my portfolio that I host in git hub I have my portfolio hosted on GitHub and, when visiting webpage via URL, it shows security error (Deceptive site ahead). Or more ref: I have marked SSL on GitHub, I also tried…
1
vote
1 answer

Stored image URI for later use, but it throws SecurityException

In the SecondActivity, it has an ImageViewand a Button public class SecondActivity extends AppCompatActivity { private ImageView galleryImage; @Override protected void onCreate(Bundle savedInstanceState) { …
1
vote
0 answers

Android 13 crash: Getting securityException (calling identity is not authorized) crash on android 13

facebookincubator/Battery-Metrics repo's getSnapshot method in class SystemMetricsCollector is crashing because of java.lang.SecurityException: Calling identity is not authorized on android 13. It was working on android 12 and on versions before.…
1
vote
2 answers

Android 10 java.lang.SecurityException: Not allowed to delete channel MyNotificationChannel with a foreground service

I create a notification from a Thread: final NotificationManager manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); NotificationChannel chan = new NotificationChannel("MyNotificationChannel","Notification Title",…
1
vote
0 answers

Security Exception: Request failed

This page presents a security problem. Not yet identified the cause of the error. This page was listing all the files in a folder, it worked perfectly. Now she is listing these same files, but using ajax. The code is simple: I have a PartialView,…
ridermansb
  • 10,779
  • 24
  • 115
  • 226
1
vote
0 answers

getDeviceId: The user 10214 does not meet the requirements to access device identifiers

I am trying to modify this app. But for the first time I have to solve the permission problem which is not happening to me. I have pasted the code and the logcat. Please tell me a solution. getDeviceId: The user 10214 does not meet the requirements…
1
vote
1 answer

Quick question TCP/IP .Net Remoting

I have a client application where i collect data and store it in a class Packet structure. Can I send the object of this class to my Server application?..Both application run on different machines connected by LAN network. In .Net Remoting, where…
Mullaly
  • 320
  • 4
  • 18