Hi,
We are trying to get subsonic working on our shared hosting which is currently hosted with Godaddy.com. I read in some posts that Subsonic 2.1 (Beta 2) would run on servers with medium trust levels like the godaddy, is that functional yet.. ? we tried stetting up ver 2.1 (Beta 2) on Godaddy but we still get the same Security error. Any idea when subsonic would run on medium trust levels or a possible work around to get subsonic working with Godaddy..
We've tried.. compiling the dlls. and uploading them to the bin folder , commenting out the lines in the core subsonic classes.. but none of them seem to work
Reading the stack Trace of Exception I found that System.Data.SQLite.dll has unmanaged code so I have deleted that, then again same exception occuring due to another dll i.e System.Data.SqlServerCe.dll I have also deleted that because i am not using sqlserver to back end i am using mySql server.
Then my site working fine on the hosting server it fetching the records from database. But when i tried to performing operations which inserts or updates records in database it is throwing following exception.
----------------
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:
Line 420:
Line 421: if (System.Web.HttpContext.Current != null)
Line 422: item.Save(System.Web.HttpContext.Current.User.Identity.Name);
Line 423: else
Line 424: item.Save(System.Threading.Thread.CurrentPrincipal.Identity.Name);
Source File: \App_Code\DataAccess\Developer.cs Line: 422
Stack Trace:
[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' failed.]
SubSonic.Utilities.Utility.WriteTrace(String message) in Utility.cs:52
SubSonic.RecordBase`1.ValidateColumnSettings() in RecordBase.cs:472
SubSonic.ActiveRecord`1.Validate() in ActiveRecord.cs:154
SubSonic.ActiveRecord`1.Save(String userName) in ActiveRecord.cs:170
NCrm.Developer.Insert(String varDevName, String varDesignation, DateTime varJoinDate, String varUsername, String varPassword, String varDevLname, String
varEmail, String varPhno, String varRole, Int32 varIsactive) in d:\hosting\agrufus\vtimetracker\App_Code\DataAccess\Developer.cs:422
_Default.Button2_Click(Object sender, EventArgs e) in d:\hosting\agrufus\vtimetracker\Default.aspx.cs:36
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6978
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.default_aspx.ProcessRequest(HttpContext context) in App_Web_dtvb-0ln.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +303
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
________________________________________
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
has anybody resolved this problem?
Has anybody manged to get subsonic running on a Godaddy shared hosting?
Thanks in Advance