I get this error when I'm using FileHelpers.dll, but my IIS is set to Full trust level so it should not be that way That's the full stack trace: [PolicyException: Required permissions cannot be acquired.] System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +10238142 System.Security.SecurityManager.ResolvePolicy(Evidence evidence, [...] read more
This question follows on from Assembly does not allow partially trusted callers when using a custom resolver Thanks to the solution in that question I am now able to call into a C# Library on a network share from a local console application (with no changes to CasPol) I now [...] read more
Got this error when trying to load an aspx page: Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [PolicyException: Required permissions cannot be [...] read more
I have a VS solution that used to build fine. It's been building fine for like forever in VS 2010, and built fine until I made some modifications to a project that pulls in a third-party library (in this case, ActiveReports3) at which point I can no longer build the [...] read more
When I drop the DotNetOpenAuth dll into my /bin directory, my app won't run with the following stack trace. Has anyone had any experience with this library? I've gone through their docs and suspect I'm not deploying it correctly. My web app should be running with full trust on my [...] read more
We are trying to get OCS 2007 R2 up and running. The clients login fine, but when I let it sit for a while, we still get the address book sync error message of: > "Cannot synchronize with the corporate address book. This may be because the > proxy server [...] read more
I'm trying to make use of a sequential workflow console application being called from a windows forms app. When the project runs and I click on the button that would create and start the workflow I get I get SecurityException was unhandled That assembly does not allow partially trusted callers. [...] read more
I have a winforms app that is using reflection to load up assembly X. It runs great from my local machine, but craps out when run from a network share. I created a code group granting full trust(for testing only) to assemblies from the share (by specifying the url property). [...] read more
I am Running SQL Server R2 on my local Windows 7 Professional 64-bit machine. The only way I can open Report Manager is if I turn UAC off. If I set UAC to the recommend level and run IE as admin I get the following error: The report server cannot [...] read more
We have some issues while migrating our Asp.Net Web Application .Net 3.5 to .Net 4.0. It seemed that we had a Caspol Security Exception, so we added this to our web.config : <runtime> <NetFx40_LegacySecurityPolicy enabled="true"/> </runtime> and nothing changed. It seem that we cannot execute the assembly "Microsoft.Web.Management.Iis" in AspNet [...] read more
I am having problems getting Microsoft Charting: System.Web.DataVisualization.dll To work in the Medium Trust on Windows Server 2008 on IIS 7 Using .Net 3.5 In an environment at Rackspace on their Cloud Sites. I get this error message from the Rackspace hosting environment: Security Exception Description: The application attempted to [...] read more
I'm working with the DotNetOpenAuth controls and on my ASPX pages in source view I have a blue squiggly line under the @Page directive with the following error. > ASP.NET runtime error: Could not load file or assembly 'DotNetOpenAuth, > Version=3.2.0.9177, Cultur=neutral, PublicToken=2780ccd10d57b246' or one of > its dependencies. Failed [...] read more
I am running Vista64 as the host for Win XP in Virtual PC 2007 SP1. I want to store my files on the host machine and just access them from the virtual pc. I access the files on the Host through a network share over the loopback adapter. Everyone has [...] read more
Trying to get a .net (32bit) app running on a Windows 2008 server. My experience in the Windows world is quite limited... Is this related to the Full/Medium trust settings? Windows error logging is pure nonsense :((( Have been Googling for quite some time. Appreciate your feedback! Seeing the following [...] read more
FileHelpers.dll are referenced within 2 class libraryies (Dto and Services) in my solution My webapp (asp.net mvc) is on IIS7 (Full Trust) Windows 7 PRO 64 and I sometimes get this exception when starting my app from VS2008: (to get rid of it I delete the FileHelpers.dll from bin, run, [...] read more
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [PolicyException: Required permissions cannot be acquired.] System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& [...] read more
I am using a third party library in my SharePoint 2010 Visual Web Part sand box solution. I have already added the assembly to the Package using the Advance tab as instructed here https://msdn.microsoft.com/en-us/library/vstudio/ee231595(v=vs.120).aspx I then use Visual Studio 2013 to deploy it to my local farm. If I set [...] read more
I have a winforms application that loads some dll (that I have also written and installed together with the app) at runtime with Assembly.LoadFrom(String). The dll is inside a sub directory of the path where the exe is placed. Occasionally, the app cannot start in a particular computer and comes [...] read more
Okay, so I have a project to create a .Net control that interacts with a clients barcode scanner via a COM object from an web page (only IE is required). To do this, we have utilized a .Net Windows Form Control Library DLL which is loaded using an Object tag: [...] read more
I am working on an application which uses the Bloomberg API and to be used via its portal. This is a .NET4.0 app. It fails the security validation, throwing an exception like this: System.Windows.Markup.XamlParseException occurred Message='Set connectionId threw an exception.' Line number '6' and line position '14'. Source=PresentationFramework LineNumber=6 LinePosition=14 [...] read more
I am developing an asp.net 3.5 web application which is running perfectly on my local IIS server but gets me into a lot of trouble when publishing it to a hosted (1and1) environment. When the web.config is loaded an "System.Security.Policy.PolicyException: Required permissions cannot be acquired." exception is thrown. The stack [...] read more
I have uploaded my database as well as files to server using FTP995. I am using the hosting server Go Daddy and they have trust level as Medium for all applications they support, When I try to run my site, it is not even showing me a login page... throwing [...] read more
I've been trying to deploy a lightweight site on a Rackspace Cloud Site (not a Cloud Server) that uses SQL CE 4 to store simple contact-form submissions. I keep getting the Required permissions cannot be acquired error whenever I try to access the database. I'm not sure what I can [...] read more
Mixed-mode DLL called from native C application fails to load: An unhandled exception of type 'System.IO.FileLoadException' occurred in Unknown Module. Additional information: Could not load file or assembly 'XXSharePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=e0fbc95fd73fff47' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417) My environment is: [...] read more
FileHelpers.dll (2.0) are referenced within 2 class libraryies (Dto and Services) in my solution My webapp (asp.net mvc) is on IIS7 (Full Trust) Windows 7 PRO 64 and I sometimes get this exception when starting my app from VS2008: (to get rid of it I delete the FileHelpers.dll from bin, [...] read more
I am getting below error while accessing a web sites ,which is hosted on network filer. see i am using .net 2 application pool for application resources. under the same .net application pool i deployed two web sites . Let say web 1 and web 2 as an example. here [...] read more