Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# wchrisjohnson 4/3/2006 1:48 PM
Hi,

I have Cuyahoga (I believe version 0.9) implemented on a .NET 1.1 account with my shared host, using MySQL, and all works perfectly.

Earlier this afternoon, I tried to set up the 1.0.0 version of Cuyahoga (binary) on a .NET 2.0 account/MySQL at my shared host, and I can't get it to fire up. I keep getting a security violation:



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.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 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.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +59
System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca) +65


In my research, I believe it has something to do with the fact that nHibernate requires Full Trust in order to function properly (at least in the 1.0 release??).

I doubt my host will upgrade me to Full Trust.

Does anyone have a solution for this issue? Am I overlooking anything? Do I need to provide more information?

Thanks in advance.

Chris
# martijnb 4/3/2006 3:15 PM
Unfortunately, NHibernate has issues with medium trust and the developers are aware of that. I don't know however if they can fix it easily.
# wchrisjohnson 4/3/2006 8:33 PM
Thanks for the quick response.

Do you know if this is an issue with a recent build of nHibernate? Is it related to the 2.0 framework?

In other words, do I just back up and deploy to a 1.1 based server? Do I deploy a pre-1.0 version of Cuyahoga?

Many thanks in advance!

Chris
# martijnb 4/4/2006 1:28 AM
wchrisjohnsonDo you know if this is an issue with a recent build of nHibernate? Is it related to the 2.0 framework?

No, there always have been issues with medium trust in the past. The version doesn't matter here.

# wchrisjohnson 4/4/2006 7:24 AM
OK, last question on this...

Do you have any explanation as to why this worked in the fall when I implemented my initial Cuyahoga-based site? Since my initial post, I have determined that it was version 0.91 of CH on a 1.1 Framework based shared hosting plan over at CrystalTech.

Thanks very much for the help!

Chris
# martijnb 4/4/2006 1:12 PM
wchrisjohnsonDo you have any explanation as to why this worked in the fall when I implemented my initial Cuyahoga-based site? Since my initial post, I have determined that it was version 0.91 of CH on a 1.1 Framework based shared hosting plan over at CrystalTech.

Maybe they ran everything in full trust on their 1.1 hosting plan and switched to medium trust with 2.0? It's not a strange movement since MS encourages web hosters to run everything in a medium trust environment.

It might also be wise to contact your hoster about this to get things clear.

I'll try and see if something can be done about this issue, because it's very annoying, especially because I can't directly fix it myself.