YAFLogo

MartinRJ
  • MartinRJ
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
9 years ago
Hello,

after installing the upgrade to 2.2.0 I get tons of these error messages all the time:

UserPostedImage

http://forumvirtuellewelten.de/Default.aspx  ) for the first time a day.

Error In DigestSendTask Task

System.TypeInitializationException: The type initializer for 'TypeMeta`1' threw an exception. ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=XXXXXXXXXXXXX' failed.

at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)

at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)

at System.Security.CodeAccessPermission.Demand()

at System.Reflection.Emit.DynamicMethod.PerformSecurityCheck(Module m, StackCrawlMark& stackMark, Boolean skipVisibility)

at System.Reflection.Emit.DynamicMethod..ctor(String name, Type returnType, Type[] parameterTypes, Module m, Boolean skipVisibility)

at ServiceStack.ReflectionExtensions.GetConstructorMethodToCache(Type type)

at ServiceStack.ReflectionExtensions.TypeMeta`1..cctor()

--- End of inner exception stack trace ---

at ServiceStack.ReflectionExtensions.CreateInstance[T]()

at ServiceStack.OrmLite.OrmLiteUtils.CreateInstance[T]()

at ServiceStack.OrmLite.OrmLiteUtils.ConvertToList[T](IDataReader dataReader, IOrmLiteDialectProvider dialectProvider)

at ServiceStack.OrmLite.OrmLiteResultsFilterExtensions.ConvertToList[T](IDbCommand dbCmd, String sql)

at ServiceStack.OrmLite.OrmLiteReadCommandExtensions.SelectFmt[T](IDbCommand dbCmd, String sqlFilter, Object[] filterParams)

at ServiceStack.OrmLite.OrmLiteReadCommandExtensions.Select[T](IDbCommand dbCmd)

at ServiceStack.OrmLite.OrmLiteReadApi.

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
9 years ago

Edit: Is this because my hoster 1and1 only allows Medium trust level? I was googling my symptoms and then tried to set trust-level to "Full" in my web.config, which failed because 1and1 doesn't allow it.

I know this is probably bad news but i'm afraid you need full trust since YAF 2.0. The ServiceStack Framework YAF is using only supports Full trust since Microsoft decided to make medium Trust obsolete

here is a statement from the developers of ServiceStack...

Unfortunately the Reflection.Emit we're using requires full trust. Also Medium Trust is obsolete where Microsoft's last web frameworks also require full trust. Microsoft have also release guidance that hosters that they should migrate away from Medium Trust .

As it's obsolete and would introduce unnecessary complexity and a performance hit, our libraries are only going to support full trust environments.

I can't promise anything but i take a look at the code if i can find a workaround to make it work in medium trust.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
9 years ago

Also could someone please point me in the right direction to create my own syntax file? I had a LSL syntax file before the upgrade, but it doesn't work anymore, I think there's a new engine for syntax highlighting, right?

YAF uses Prism.js  now for Syntax Highlighting

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
9 years ago
Try this updated Release dlls, this should also fix the issue with the not rendered BBCodes.

 YAF-Bin.zip You have insufficient rights to see the content.

MartinRJ
  • MartinRJ
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
9 years ago
No more error messages! Thank you so much, I really appreciate your support!