securityexception

Some users gets Security Exception: Attempted to to open a sandboxed jar as a Trusted-Library

有些话、适合烂在心里 提交于 2019-12-06 11:01:11
We use applet on our application login page. Applet contains 2 classes. Jar is signed (ca certificate). Manifest file contains: "Trusted-Library: true. It works for most of the users but some of them have problems with applet because JVM report Security Exception: Attempted to to open a sandboxed jar as a Trusted-Library. Have you any idea why it wont work for them? For exaple User1 has Java Plug-in 10.21.2.11 JRE version 1.7.0_21-b11 Java HotSpot(TM) Client VM. He try Firefox 21 and IE 8.0.6001.18702. JVM report General Exception: basic: Plugin2ClassLoader.addURL parent called for https://www

Executing SPWebApplication.Update with System account throws SecurityException

蓝咒 提交于 2019-12-06 06:28:57
问题 I`m doing some web.config modifications with SPWebConfigModification class. When adding them to WebApplication and calling Update to it, it throws me SecurityException, although I run code with elevated privilages (and open new instance of SPSite) my assembly is in GAC application pool account is from wss_admin_wpg group and web.config file has wss_admin_wpg write permissins. Code SPSecurity.RunWithElevatedPrivileges(delegate() { addProviderProxy(properties); }); where addProviderProxy

Delete SUN_MICR.RSA, SUN_MICR.SF solves manifest signature file entry problem

╄→尐↘猪︶ㄣ 提交于 2019-12-06 00:14:55
When I tried repacking all the jars into one jar, and run that one big jar, I got following exception java.lang.SecurityException: no manifiest section for signature file entry javax/activation/MimeType.class After googling I found a working solution at http://www.coderanch.com/t/133070/Security/Jar-File-java-lang-SecurityException The solution is delete SUN_MICR.RSA and SUN_MICR.SF files from the META-INF folder in the jar. It worked. I tried to find out how does this solution work? . But did not find any answer. So experts, please help me understand what goes on behind the scene. Another

I'm received the output path that i can't access because It's custom content provider on android

家住魔仙堡 提交于 2019-12-05 03:43:06
问题 I'm received the output path(EXTRA_OUTPUT) that i can't access because It's custom content provider on android. My app is supporting the IMAGE_CAPTURE for other apps. but my app isn't works when I received the capture intent by the chrome browser. I had debugging and I found the invalid URI from intent by the Chrome browser. It's URI of custom content provider that I don't have access permission. I have to compress my bitmap to output path(EXTRA_OUTPUT) for retrun the result. but If i access

Security exception when writting to an EventLog from an ASP.NET MVC application

南楼画角 提交于 2019-12-04 19:26:59
问题 I have a library that I created with some business logic that includes writing to a System.Diagnostics.EventLog instance. The library is normally called from a Windows Service application, but now I'm trying to call those same library functions from my ASP.NET MVC application. I tried this code inside my controller to create the EventLog instance that I pass into the method that needs to write to the log. Dim log = New EventLog("Application", My.Computer.Name, "MyMVCApp") The following error

C#: Simple Windows Service gives Security Exception

ぃ、小莉子 提交于 2019-12-04 17:09:22
问题 I am doing the walkthrough in the following link: http://msdn.microsoft.com/en-us/library/zt39148a%28VS.80%29.aspx I have followed it exactly, line by line. I installed the service successfully, however, when I try to run it, the following error message appears: "An unhandled exception ("System.Security.SecurityException') occurred in MyNewService.Exe [5292]. I have seen that for many people it works, but some people get this exception, though I could not find an answer. Does anyone have an

Executing SPWebApplication.Update with System account throws SecurityException

北慕城南 提交于 2019-12-04 12:59:36
I`m doing some web.config modifications with SPWebConfigModification class. When adding them to WebApplication and calling Update to it, it throws me SecurityException, although I run code with elevated privilages (and open new instance of SPSite) my assembly is in GAC application pool account is from wss_admin_wpg group and web.config file has wss_admin_wpg write permissins. Code SPSecurity.RunWithElevatedPrivileges(delegate() { addProviderProxy(properties); }); where addProviderProxy(SPItemEventProperties properties) using (SPSite site = new SPSite(properties.SiteId)) using (SPWeb web = site

SecurityError when calling a HTTPS-WCF Service from Silverlight 4

*爱你&永不变心* 提交于 2019-12-04 05:20:17
问题 I have created a simple WCF-Service which I want to be accessible via https. The WCF-Service uses a UserNamePasswordValidator, customBinding and UserNameOverTransport as authentication mode. I run it in the IIS7.5 where I have created a self-signed server certificate. I try to connect to that service with an Silverlight 4 application. I create a Service Reference in my Silverlight 4 app, and VS 2010 automatically creates the needed code (so obviously it is able to connect to the service and

I'm received the output path that i can't access because It's custom content provider on android

狂风中的少年 提交于 2019-12-03 20:54:41
I'm received the output path(EXTRA_OUTPUT) that i can't access because It's custom content provider on android. My app is supporting the IMAGE_CAPTURE for other apps. but my app isn't works when I received the capture intent by the chrome browser. I had debugging and I found the invalid URI from intent by the Chrome browser. It's URI of custom content provider that I don't have access permission. I have to compress my bitmap to output path(EXTRA_OUTPUT) for retrun the result. but If i access the uri. my app occurs the SecurityException. How can i write capure bitmap to this uri ? The chrome

crash before app starts : SecurityException: Permission Denial: INTERACT_ACROSS_USERS_FULL

末鹿安然 提交于 2019-12-03 14:46:57
问题 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 on the device), each time I open the app, it shows for a very short time, closes itself without any crash dialog yet it shows the next log: 01-30 09:27:18.325: E/DatabaseUtils(2366): Writing exception to parcel 01-30 09:27:18.325: E/DatabaseUtils