securityexception

Firefox not able to enumerate document.styleSheets[].cssRules[]

若如初见. 提交于 2019-11-29 03:40:34
Here is the code: http://jsfiddle.net/salman/2hyYg/ http://jsfiddle.net/salman/2hyYg/show/ You'll notice the alert(document.styleSheets[x].cssRules.length) fails with a "security exception". Any workaround for this. I am asking because there are a couple of "CSS lazy loading" classes out there that use this feature to detect if the CSS document is loaded. Also: is the security exception a correct behavior/does it conform to standards? You can get that error when trying to read a stylesheet loaded from a different domain or server, or trying to read an @import rule. For your purpose, just check

How do I resolve a System.Security.SecurityException with custom code in SSRS?

早过忘川 提交于 2019-11-28 23:29:03
I've created an assembly and referenced it in my Reporting Services report. I've tested the report locally (works), and I then uploaded the report to a report server (doesn't work). Here is the error that is thrown by the custom code I've written. System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.CheckNReturnSO(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32

Security Exception using MySQL and Entity Framework on godaddy

泄露秘密 提交于 2019-11-28 13:12:39
We are getting a SecurityException when using Entity framework on godaddy. The entity has been configured against a MySQL store. (v. 6.1.2) A bit of weirdness with the exception though... Looking at the exception stack it seems to imply that if we open up a connection to MySQL anywhere in the site, then we should get the same exception; however, opening up a MySQL connection directly seems to be working in another part of the site... Here's the verification: using (MySqlConnection connection = new MySqlConnection(ConnectionString)) { connection.Open(); ... } Anyone run across a similar issue?

java.lang.SecurityException: Permission Denial: starting Intent {act=android.settings.USAGE_ACCESS_SETTINGS}

我的未来我决定 提交于 2019-11-28 10:38:39
问题 I get java.lang.SecurityException when try to startActivityForResult(intent, requestCode); with final Intent intent = new Intent(Settings.ACTION_USAGE_ACCESS_SETTINGS); intent. Interesting that this crash happens only on Huawei with Android 5.1 - 5.1.1 I haven't Huawei device. Could you please give me advice what it can be. Stacktrace Fatal Exception: java.lang.SecurityException: Permission Denial: starting Intent { act=android.settings.USAGE_ACCESS_SETTINGS cmp=com.android.settings/.Settings

log4net throwing Security Exception in ASP.Net MVC web application

大憨熊 提交于 2019-11-27 18:03:07
问题 I have written 3 ASP.net MVC web applications, and all are deployed on shared hosting servers with my ISP. All 3 applications are very similar in configuration and settings. The 1st application is deployed to a different server than the 2nd and 3rd. The 1st application gives me no errors. The 2nd and 3rd applications spit out the following SecurityException somewhat : randomly: Link Exception Text: Security Exception Description: The application attempted to perform an operation not allowed

Firefox not able to enumerate document.styleSheets[].cssRules[]

余生颓废 提交于 2019-11-27 17:44:40
问题 Here is the code: http://jsfiddle.net/salman/2hyYg/ http://jsfiddle.net/salman/2hyYg/show/ You'll notice the alert(document.styleSheets[x].cssRules.length) fails with a "security exception". Any workaround for this. I am asking because there are a couple of "CSS lazy loading" classes out there that use this feature to detect if the CSS document is loaded. Also: is the security exception a correct behavior/does it conform to standards? 回答1: You can get that error when trying to read a

How do I resolve a System.Security.SecurityException with custom code in SSRS?

浪尽此生 提交于 2019-11-27 14:52:57
问题 I've created an assembly and referenced it in my Reporting Services report. I've tested the report locally (works), and I then uploaded the report to a report server (doesn't work). Here is the error that is thrown by the custom code I've written. System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine

SecurityException with grantUriPermission when sharing a file with FileProvider

拥有回忆 提交于 2019-11-27 14:03:08
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 file I want to share from App A. The ContentProvider in App B would then try to read the shared file from App A. Since I'm not using an Intent to share the file, I'm calling Context.grantUriPermission in App A to allow the read (and at times write): mContext.grantUriPermission(MyPackageName, contentUri, Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent

Security Exception using MySQL and Entity Framework on godaddy

被刻印的时光 ゝ 提交于 2019-11-27 07:31:40
问题 We are getting a SecurityException when using Entity framework on godaddy. The entity has been configured against a MySQL store. (v. 6.1.2) A bit of weirdness with the exception though... Looking at the exception stack it seems to imply that if we open up a connection to MySQL anywhere in the site, then we should get the same exception; however, opening up a MySQL connection directly seems to be working in another part of the site... Here's the verification: using (MySqlConnection connection

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

旧街凉风 提交于 2019-11-27 07:01:50
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: Security.] System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly, Boolean wantToCreate) +664 System.Diagnostics.EventLog.SourceExists(String source, String machineName, Boolean wantToCreate) +109 System.Diagnostics.EventLog.SourceExists(String source) +14 Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher