System.Security.SecurityException
What is the required "trust"'s for gemini, I've been researching this all afternoon but have not been successful getting this to work...
Is it "FULL" trust or "Medium" Trust
Thanks in advance
Ray ---------------------------------------------------------------------------------
Server Error in '/Gemini' 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.SecurityPermission, 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.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +59
System.Reflection.Emit.DynamicMethod.PerformSecurityCheck(Type owner, StackCrawlMark& stackMark, Boolean skipVisibility) +288
System.Reflection.Emit.DynamicMethod..ctor(String name, Type returnType, Type[] parameterTypes, Type owner, Boolean skipVisibility) +47
NHibernate.Bytecode.Lightweight.ReflectionOptimizer.CreateDynamicMethod(Type returnType, Type[] argumentTypes) +103
NHibernate.Bytecode.Lightweight.ReflectionOptimizer.GenerateGetPropertyValuesMethod(IGetter[] getters) +253
NHibernate.Bytecode.Lightweight.ReflectionOptimizer..ctor(Type mappedType, IGetter[] getters, ISetter[] setters) +127
NHibernate.Bytecode.Lightweight.BytecodeProviderImpl.GetReflectionOptimizer(Type mappedClass, IGetter[] getters, ISetter[] setters) +55
NHibernate.Type.ComponentType..ctor(Type componentClass, String[] propertyNames, IGetter[] propertyGetters, ISetter[] propertySetters, Boolean foundCustomAcessor, IType[] propertyTypes, Boolean[] nullabilities, FetchMode[] joinedFetch, CascadeStyle[] cascade, String parentProperty) +569
NHibernate.Cfg.HbmBinder.BindComponent(XmlNode node, Component model, Type reflectedClass, String className, String path, Boolean isNullable, Mappings mappings) +4209
NHibernate.Cfg.HbmBinder.BindRootClass(XmlNode node, RootClass model, Mappings mappings) +2066
NHibernate.Cfg.HbmBinder.BindRoot(XmlDocument doc, Mappings mappings) +514
NHibernate.Cfg.Configuration.AddValidatedDocument(XmlDocument doc, String name) +94
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
azwief
· 1 |
|
Wednesday, April 11, 2007, 6:32:21 AM |
0
|
It should be medium. When do you get this error? |
||||
|
0
|
I get the same error when I attempt to launch Gemini. I have a new install of 2.1.1. I di the automated install after making a GEMINI and GEMINIPROFILE SQL db on a remote SQL Server. Is there a fix for this issue? |
||||
|
0
|
We do not have a fix for this at the moment. The only workaround is to give full trust for Gemini. |
||||
|
0
|
Where do I do this? The Machine.config file on the server currently has : |
||||
|
0
|
Please see http://support.microsoft.com/kb/555466, you might need an application pool for Gemini. |
||||
|
0
|
Here's an excerpt from my Machine.log file |
||||
|
0
|
I think you need the first part to look like: <location path="Gemini" allowOverride="false"> |
||||
|
0
|
I had my hosting compnay move this applicaiton to a server that allowed "FULL" trust support, it's now working great, please update the user manual so other folks don't have to battle this issue.
Thanks |
||||
|
0
|
This is hosted on an internal server. I just thought I'd hop on this topic too keep similar issues in one place. I edited the Machine config file to reflect the post above. I'm still getting the same thing:
Request for the permission of type
'System.Security.Permissions.FileIOPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
failed. |
||||
|
0
|
Did you see this post: http://community.countersoft.com/forums/thread/4016.aspx (2nd from bottom)? |
||||
|
0
|
Nothing seems to be working here, so I gave up and installed this on an entirely new machine. This comes complete with a whole host of new error messages. So I tried a manual install. No luck. I think I'm done. |
||||
|
0
|
What are the errors this time? |
||||
|
0
|
I took the weekend off from this project and I'm ready to tackle it again. I'm attempting to put Gemini on a server that's only role is as a backup. Here's what I've done so far this morning: Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Web.HttpException: The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'. 14. I give Network Service write access to that directory. 15. New error: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. 16. I give the Network Service Full rights to both Gemini DBs. User shows up under both DBs in Enterprise Manager. 17. Same error message. At this point, I'm stuck. Thanks for all of the assistance so far! |
||||
|
0
|
Here's my connection info from Web.Config in the Gemini directory: |
||||
|
0
|
Please reboot the web app, the error should be gone. |
||||
|
0
|
Issue resolved with the service reboot. Tomorrow, I will attempt to move it to another front-end server with the same back end |
||||
|