YAFLogo

steve
  • steve
  • 63.8% (Friendly)
  • YAF Camper Topic Starter
15 years ago
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

Sponsor
Mek
  • Mek
  • 100% (Exalted)
  • YAF Developer
15 years ago
It's a security issue with 1and1, need to check with Jaben that 1.94 has strong signed assemblies.


UserPostedImage

"It's a case of RTFM.. the only problem being we don't have a manual!"

When I post FP:Mek in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Ederon 🙂 )

steve
  • steve
  • 63.8% (Friendly)
  • YAF Camper Topic Starter
15 years ago
Thanks hopefully Jaben can sort this out later on
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
15 years ago
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.
steve
  • steve
  • 63.8% (Friendly)
  • YAF Camper Topic Starter
15 years ago
Jaben

If you let me know when you have done it i will test it

Thanks for your help

Steve

steve
  • steve
  • 63.8% (Friendly)
  • YAF Camper Topic Starter
15 years ago
I have tried with the latest SVN (Revision 2658): update but the same problem
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
15 years ago
Try with the latest code, Steve. I recompiled DNA.dll, DNA.UI.JQuery.dll, and jQuery.dll -- my testing shows it works now. 🙂
steve
  • steve
  • 63.8% (Friendly)
  • YAF Camper Topic Starter
15 years ago
: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

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
15 years ago
You need to copy the contents (from the SVN) of the YetAnotherForum.NET\BIN\NETv3.5 directory to your \bin directory.
steve
  • steve
  • 63.8% (Friendly)
  • YAF Camper Topic Starter
15 years ago
Thats what i did but still the same
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
15 years ago
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.
steve
  • steve
  • 63.8% (Friendly)
  • YAF Camper Topic Starter
15 years ago
Jaben

Any more news on this problem ?

Steve

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
15 years ago
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.

steve
  • steve
  • 63.8% (Friendly)
  • YAF Camper Topic Starter
15 years ago
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

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
15 years ago
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.