YAFLogo

Posted by: steve - Monday, 28 September 2009 10:12:00
I can not get V1.9.3 to run on 1and1 hosting but ver 1.9.1.8 works ok I am testing the beta to see if it works and get the error below I started clean and deleted all the old SQL database and started with a clean blank new one Server Error in '/Forum194' Application. -------------------------------------------------------------------------------- Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. 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: [SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +150 System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +100 System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) +284 System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet demandSet, PermissionSet& alteredDemandset, RuntimeMethodHandle rmh) +69 System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandle rmh) +150 System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) +30 System.Threading.CompressedStack.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) +40 System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant, CompressedStack securityContext) +123 System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant) +54 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 This is the web site http://www.ur-sports.com/forum194/ any help

Posted by: Mek - Monday, 28 September 2009 11:56:08
It's a security issue with 1and1, need to check with Jaben that 1.94 has strong signed assemblies.

Posted by: steve - Monday, 28 September 2009 12:53:33
Thanks hopefully Jaben can sort this out later on

Posted by: Jaben - Tuesday, 29 September 2009 04:28:22
It's a fail with DotNetAge components. My bad for not testing under medium trust. I will need to recompile DotNetAge and unfortunately sign the assembly with my own keys.

Posted by: steve - Tuesday, 29 September 2009 05:17:07
Jaben If you let me know when you have done it i will test it Thanks for your help Steve

Posted by: steve - Tuesday, 29 September 2009 18:11:43
I have tried with the latest SVN (Revision 2658): update but the same problem

Posted by: Jaben - Wednesday, 30 September 2009 22:30:04
Try with the latest code, Steve. I recompiled DNA.dll, DNA.UI.JQuery.dll, and jQuery.dll -- my testing shows it works now. :)

Posted by: steve - Thursday, 1 October 2009 08:37:40
:cry: Jaben I have downloaded SVN updates to 2675 Then copied the contents of the "YetAnotherForum.NET" directory to my web site i did no compilation etc just copied is till get the same problem Server Error in '/forum194' Application. -------------------------------------------------------------------------------- Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. 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: [SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +150 System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +100 System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) +284 System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet demandSet, PermissionSet& alteredDemandset, RuntimeMethodHandle rmh) +69 System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandle rmh) +150 System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) +30 System.Threading.CompressedStack.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) +40 System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant, CompressedStack securityContext) +123 System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant) +54 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 I have allowed all the securaty as i did before Steve

Posted by: Jaben - Thursday, 1 October 2009 14:21:06
You need to copy the contents (from the SVN) of the YetAnotherForum.NET\BIN\NETv3.5 directory to your \bin directory.

Posted by: steve - Thursday, 1 October 2009 15:03:58
Thats what i did but still the same

Posted by: Jaben - Thursday, 1 October 2009 18:40:52
Contacting GoDaddy and asking for a test hosting account. Since they use my software on their Hosting Connection, I don't believe it will be a problem.

Posted by: steve - Saturday, 10 October 2009 12:58:08
Jaben Any more news on this problem ? Steve

Posted by: Jaben - Saturday, 10 October 2009 16:55:12
Yes. I got it working on Medium trust with some modifications. The latest SVN has medium trust 100% supported code. All v1.9.4 will be tested completely on medium trust. Granted, it doens't work nearly as nice as Full Trust... but it won't fail anymore and gives you alternative options.

Posted by: steve - Saturday, 10 October 2009 18:12:48
Jaben sorry i still get the same error http://www.ur-sports.com/forum194/Default.aspx Server Error in '/forum194' Application. -------------------------------------------------------------------------------- Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. 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: [SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +150 System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +100 System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) +284 System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet demandSet, PermissionSet& alteredDemandset, RuntimeMethodHandle rmh) +69 System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandle rmh) +150 System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) +30 System.Threading.CompressedStack.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) +40 System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant, CompressedStack securityContext) +123 System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant) +54 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

Posted by: Jaben - Saturday, 10 October 2009 19:49:08
I don't know Steve. I've done as much as I'm willing to do as it works fine for me. My only suggestion is is to completely delete your installation and re-install. Past that, you are on your own. If you want additional help, I offer paid YAF support.

Posted by: steve - Sunday, 11 October 2009 08:56:26
Thanks i have treid that a few times but it is a security issue i am sure

Posted by: LondonPop - Thursday, 26 August 2010 19:53:21
Same issue for me. My ISP is not budging and I am reluctant to switch as they are very good in every other way. Here is the official reply from them. Can you let us know when / if a solution is found? We are ok for now on 1.91, but have some security issues. Kind regards, Daniel _______________________________________________________________________ Hi Daniel, We run medium trust on all our web servers as it is the only safe way to run ASP.net in a shared hosting environment, we cannot allow full trust on shared/reseller hosting servers. Warm Regards, Carl Shepherdson CS New Media Web Hosting www.csnewmedia.co.uk _______________________________________________________________________

Posted by: cagliostro - Thursday, 26 August 2010 20:02:07
Can somebody verify that running full trust in shared hosting is risky ? Because we do have full trust.

Posted by: bbobb - Thursday, 26 August 2010 23:18:22
Yes, they can :) http://coolwebdeveloper.com/2008/12/why-full-trust-hosting-is-not-recommended-when-using-a-shared-aspnet-or-shared-windows-hosting-plan/