Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

Closed Issue: Access issue creating worksheet [11383]

$
0
0
The following error occurs when we try to create a worksheet. The issue is resolved by setting IIS 7.0 LoadUserProfile to true. We are trying to understand why this is needed and teh secruity implications and if there is a workaround to make this work without having to change the default IIS settingSystem.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.Environment.get_UserName() at NPOI.HSSF.Model.InternalWorkbook.CreateWriteAccess() at NPOI.HSSF.Model.InternalWorkbook.CreateWorkbook() at NPOI.HSSF.UserModel.HSSFWorkbook..ctor() at ....The action that failed was: Demand The type of the first permission that failed was: System.Security.Permissions.EnvironmentPermission The first permission that failed was: version="1" Read="UserName"/> The demand was for: version="1" Read="UserName"/> The granted set of the failing assembly was: version="1"> version="1" Access="Open"/> version="1" Allowed="ApplicationIsolationByUser" UserQuota="512000"/> version="1" Flags="Execution"/> version="1" Window="SafeTopLevelWindows" Clipboard="OwnClipboard"/> version="1" PublicKeyBlob="002400000480000094000000060200000024000052534131000400000100010095CCD95AF3B39D8BC20544D3F47FD24B53EBC5CCB693EAED116290629F8CD882C827EBD511AD59449224F0718D3F9D03B64945A6C8B6644266001B8C8426185330E3D96DA70AE16D4ACC21B8D4D480F1385C7E924273179375AA88F81380A72FB115712A313379D16AED4AA36208EE3B4A5DD785B06A07B2D868E3227F4495B5" Name="NPOI" AssemblyVersion="1.2.5.0"/> version="1" Url="file:///c:/xxx/web/bin/NPOI.DLL"/> version="1" Zone="Internet"/> version="1" Level="SafePrinting"/> The assembly or AppDomain that failed was: NPOI, Version=1.2.5.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1 The method that caused the failure was: NPOI.HSSF.Record.Record CreateWriteAccess() The Zone of the assembly that failed was: Internet The Url of the assembly that failed was: file:///c:/xxx/web/bin/NPOI.DLL --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args) at ...

Viewing all articles
Browse latest Browse all 1621

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>