Hello Everyone,
I'm getting this Security Exception as my Hosting Provider Supports medium level trust (GoDaddy).
I'm using the latest everion of NHibenate which suppose to solve this problem as has the property inbuilt and I'm wondering what I'm doing wrong.
below is the complete description of the error :
[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.IO.Directory.SetCurrentDirectory(String path) +88
NHibernateHelper.BuildFactory() in NHibernateHelper.cs:46
NHibernateHelper..cctor() in NHibernateHelper.cs:37
Can someone please let me know what is going wrong and where and ways to fix it.
Thanks for the help.
Harsimrat
|