Questions tagged [securityexception]

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

329 questions
0
votes
2 answers

Elevate user to Admin level to write to Eventlog in .NET

I am working on a Windows .NET application and I want to write to the Eventlog. Public Shared Sub WriteExceptionToEventLog(ByVal message As String) Dim cs As String = "TESTLOG" Dim elog As New EventLog() Dim sourceExist As…
smashstar
  • 81
  • 1
  • 16
0
votes
1 answer

How to create a sample java.lang.SecurityException: sealing violation: package .. is sealed

we've an issue with a long-running Java process suddenly spitting out java.lang.SecurityException: sealing violation: package .. is sealed after overwriting a sealed jar while the JVM is running. I kind of understand this exception, but in order to…
Axel Podehl
  • 4,034
  • 29
  • 41
0
votes
1 answer

Set permission to read local XML file in C# for XAML browser app

I have a XAML Browser Application that will eventually be placed on a server, however I am currently testing it from my Documents folder. I am trying to read from an XML document locally, but I am stuck at XmlReader.Create(); When I tried to use my…
FlyingMolga
  • 1,498
  • 1
  • 14
  • 22
0
votes
0 answers

c# Requested registry access is not allowed even if i gave permission to Everyone

I am reading a registry key on a remote computer like this : RegistryKey regKey = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, pc1, RegistryView.Registry64).OpenSubKey("SOFTWARE\\ODBC\\ODBC.INI\\NetworkTP_DB"); I went to the remote…
pharaon450
  • 493
  • 3
  • 9
  • 21
0
votes
2 answers

System.Security.SecurityException - neither ASP.NET nor IE is involved

Got this: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. ( at…
KaiJaeger
  • 39
  • 1
  • 7
0
votes
1 answer

Unable to call external servlet from Flex app

I am callng a servlet from a browser based Flex app but get the following exception: Error #2044: Unhandled securityError:. text=Error #2170: Security sandbox violation: http://MyURL/web-player/WebPlayer.swf cannot send HTTP headers to…
codeghost
  • 1,014
  • 7
  • 14
0
votes
2 answers

Wp7 serialization security exception

First of all, the description may be a little long with lots of code, but I wan't to provide with all the information I can. I'm working with tombstoning for my app, and I would like to save a serialized class: [DataContract] private class…
0
votes
3 answers

Android preferences issue

I'm trying to make a preference screen for my android application, but I'm failing completely. I'm following this guide. When I try to install the application, I get this error message, and it won't install the app on my phone: [2012-04-10 12:54:45…
Loyalar
  • 2,131
  • 4
  • 24
  • 44
0
votes
1 answer

java.lang.SecurityException: JSR 177 access for this connection is not permitted

I'm trying to communicate with a SIM card using the APDUConnection with the SAT target, but I get this exception: "java.lang.SecurityException: JSR 177 access for this connection is not permitted" public void Test() { APDUConnection acn = null; …
Bamaco
  • 592
  • 9
  • 25
-1
votes
1 answer

Android EGL-ERROR can not start activity

I have a problem with I open a new Activity. The app close and does not show any error to the user. I put the code of the activity where I do the call, the activity that should receive the call, the manifest and the log. I debugg the application and…
-1
votes
2 answers

Java Apache Commons WordUtils.wrap() throws SecurityException during runtime

Allright so after implementing the org.apache.commons.lang3.text.WordUtils class I was hoping to be able to use the WordUtils.wrap(String str, int width) function. But I reached a speed bump. I was able to compile this program (which I should…
Nigh7Sh4de
  • 395
  • 2
  • 7
  • 20
-2
votes
2 answers

Crash in C# Class Library when i use it

Source/destination types public struct MyStruct { public int FirstText { get; set; } public int SecondText { get; set; } } Source/destination JSON {FirstText:1,SecondText:2} Expected behavior When I use it in a single exe demo: 1 -…
-2
votes
1 answer

App crashing android security exception(missing internet permission?)

So my app has been crashing recently whenever it tries to access internet. I have already used internet permission in mainfest so im stuck as to what the problem can be These are my log files 06-05 16:58:47.942…
user4964706
-4
votes
1 answer

Application running successfully on development machine but crashing on another machine

In the event log i am getting following line, could someone please help me for this. Event Type: Error Event Source: .NET Runtime Event Category: None Event ID: 1026 Date: 01/06/2013 Time: 11:20:06 User: N/A Computer: …
Sam Khan
  • 7
  • 4
1 2 3
21
22