Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# rabol 11/1/2005 12:12 PM (edited 11/1/2005 12:54 PM)
Hi

I'm trying to install Cuyahoga at a .NET ISP, but get a error: 500 Security error not very informative :)

Any hints?

Thanks in advance.
Best
Steen

Here is the output:

Server Error in '/' 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: Security error.

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: Security error.]
Cuyahoga.Core.Service.CoreRepository..ctor(Boolean openSession) +0
Cuyahoga.Web.HttpModules.NHSessionModule.Context_BeginRequest(Object sender, EventArgs e) in NHSessionModule.cs:34
System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300
# martijnb 11/1/2005 1:31 PM
I was already afraid this would come one day. Several hosters have a medium-trust policy and I think this causes some troubles because there is quite a lot of reflection going on in Cuyahoga (and NHibernate). We'll have to sort this out further.
# rabol 11/1/2005 1:36 PM
Hi

Here is some more info:
[SecurityException: Security error.]
Cuyahoga.Core.Util.DatabaseUtil.GetCurrentDatabaseType() +0
Cuyahoga.Core.Service.DatabaseInstaller..ctor(String installRootDirectory, Assembly assembly) in DatabaseInstaller.cs:88
Cuyahoga.Web.Global.Application_Start(Object sender, EventArgs e) in global.asax.cs:30


Please let me know if you want me to try something,we NEED to get it up and running :)

Best
Steen
# martijnb 11/1/2005 1:39 PM
I think the easiest way out is to ask your hosting provider to change the trust-level to a level where everythink works fine, but I don't know if they want to do that of course.
# rabol 11/1/2005 1:57 PM
Hi

I have found this solution:
http://nhibernate.sourceforge.net/forum/viewtopic.php?t=184&highlight=security+exception

But... I'm just a novice in .NET and don't know much about NANT, so it's difficult for me to try this

Best
Steen