|
|
|
Joined: 2/3/2010
Posts: 7
|
|
|
my web site running on 3.5 NET (so my first possible error should be excluded from list as wrong assumption.)
Still do not find why this happens, on local computer everything is working perfectly, on web hoster side exception happens.
--
Tech Admin "Шлюбні Узи"
http://www.shlubnioozi.com
|
|
|
|
| |
|
|
|
Joined: 7/18/2009
Posts: 613
|
|
|
You may need to change the Trust level:
<!-- set code access security trust level - this is generally set in the machine.config
<trust level="Medium" originUrl=".*" />
-->
You should ask your hosting provider what .Net Trust they're running under and also inquire as to what permissions they've granted on the web folders for the site.
You shouldn't have to comment out code like you;ve done to get the site to run correctly
Ken Grierson
DotNetNuke Corporation
Test Lead
|
|
|
|
| |
|
|
Joined: 2/3/2010
Posts: 7
|
|
|
Maybe you know solution better then asking provider?! providers always try to play "dummy" instead of fixing... And do not see any reason why my hoster 1and1.com should change permissions on server for me...
So I'll play a little with commented code...
--
Tech Admin "Шлюбні Узи"
http://www.shlubnioozi.com
|
|
|
|
| |
|
|
Joined: 10/6/2004
Posts: 35
|
|
|
I am receiving this exact same error after upgrading to 5.3.00
“Error: Host Settings is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Property accessor 'filteredkey' on object 'VB$AnonymousType_1`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' threw the following exception:'VB$AnonymousType_1`2.get_filteredkey()' ---> System.Reflection.TargetInvocationException: Property accessor 'filteredkey' on object 'VB$AnonymousType_1`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' threw the following exception:'VB$AnonymousType_1`2.get_filteredkey()' ---> System.MethodAccessException: VB$AnonymousType_1`2.get_filteredkey() ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) at System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet demandSet, PermissionSet& alteredDemandset, RuntimeMethodHandle rmh) at System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandle rmh) at System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) at System.Threading.CompressedStack.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) at System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant, CompressedStack securityContext) at System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant) The action that failed was: Demand The type of the first permission that failed was: System.Security.Permissions.ReflectionPermission --- End of inner exception stack trace --- at System.Reflection.MethodBase.PerformSecurityCheck(Object obj, RuntimeMethodHandle method, IntPtr parent, UInt32 invocationFlags) 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.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) --- End of inner exception stack trace --- at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName, String format) at System.Web.UI.WebControls.ListControl.PerformDataBinding(IEnumerable dataSource) at System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.ListControl.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.DataBind() at DotNetNuke.Modules.Admin.Host.HostSettings.BindModuleCacheProviderList() at DotNetNuke.Modules.Admin.Host.HostSettings.BindData() at DotNetNuke.Modules.Admin.Host.HostSettings.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---“
My hosting provider's response:
"1) NET Framework 3.5 SP1 is already installed and working on server.
2) We cannot assign full trust level. however we can assign medium trust level to subdomain.
3) You are using the latest version of DDN , may be this error is due to new version. "
There were no errors at all during the upgrade process.
I checked the web.config sections mentioned earlier in this thread and everything is perfect there.
What could possibly be causing this error and is there any known good resolution?
|
|
|
|
| |
|
|
Joined: 7/23/2008
Posts: 7
|
|
|
I am having this problem too. My site is using 5.2.2. It works on our local server but failed on Host Settings and any other module settings pages, giving the same error message like shlubnioozi and Deon Pretorius's sites had, attached below.
I have contacted my hosting provider and made sure our site was given medium trust level.
Has anybody got this fixed?
--------------------------------------------------------------------------------------------------------------------
DotNetNuke.Services.Exceptions.ModuleLoadException: Property accessor 'filteredkey' on object 'VB$AnonymousType_1`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' threw the following exception:'VB$AnonymousType_1`2.get_filteredkey()' ---> System.Reflection.TargetInvocationException: Property accessor 'filteredkey' on object 'VB$AnonymousType_1`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' threw the following exception:'VB$AnonymousType_1`2.get_filteredkey()' ---> System.MethodAccessException: VB$AnonymousType_1`2.get_filteredkey() ---> System.IO.FileNotFoundException: Could not load file or assembly 'System, Version=1.0.7.30072, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified. File name: 'System, Version=1.0.7.30072, Culture=neutral, PublicKeyToken=c5687fc88969c44d' at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at System.Security.Util.XMLUtil.GetClassFromElement(SecurityElement el, Boolean ignoreTypeLoadFailures) at System.Security.Util.XMLUtil.CreatePermission(SecurityElement el, PermissionState permState, Boolean ignoreTypeLoadFailures) at System.Security.SecurityElement.ToPermission(Boolean ignoreTypeLoadFailures) at System.Security.PermissionSet.CreatePerm(Object obj, Boolean ignoreTypeLoadFailures) at System.Security.PermissionSet.CreatePerm(Object obj, Boolean ignoreTypeLoadFailures) at System.Security.PermissionSet.CreatePermission(Object obj, Int32 index) at System.Security.PermissionSetEnumeratorInternal.MoveNext() at System.Security.PermissionSet.ToXml(String permName) at System.Security.PermissionSet.ToXml() at System.Security.SecurityException..ctor(String message, AssemblyName assemblyName, PermissionSet grant, PermissionSet refused, MethodInfo method, SecurityAction action, Object demanded, IPermission permThatFailed, Evidence evidence) at System.Security.SecurityException.MakeSecurityException(AssemblyName asmName, Evidence asmEvidence, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) at System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet demandSet, PermissionSet& alteredDemandset, RuntimeMethodHandle rmh) at System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandle rmh) at System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) at System.Threading.CompressedStack.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) at System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant, CompressedStack securityContext) at System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant) --- End of inner exception stack trace --- at System.Reflection.MethodBase.PerformSecurityCheck(Object obj, RuntimeMethodHandle method, IntPtr parent, UInt32 invocationFlags) 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.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) --- End of inner exception stack trace --- at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName, String format) at System.Web.UI.WebControls.ListControl.PerformDataBinding(IEnumerable dataSource) at System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.ListControl.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.DataBind() at DotNetNuke.Modules.Admin.Modules.ModuleSettingsPage.BindModuleCacheProviderList() at DotNetNuke.Modules.Admin.Modules.ModuleSettingsPage.BindData() at DotNetNuke.Modules.Admin.Modules.ModuleSettingsPage.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
|
|
|
|
| |