V1.4 ran perfectly fine. V1.5 is throwing an exception. This is in my dev machine and the site has full trust:
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.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source Error:
Line 998: DbCommand dbCommand = db.GetStoredProcCommand("Nop_CustomerSessionLoadByPrimaryKey");
Line 999: db.AddInParameter(dbCommand, "CustomerSessionGUID", DbType.Guid, CustomerSessionGUID);
Line 1000: using (IDataReader dataReader = db.ExecuteReader(dbCommand))
Line 1001: {
Line 1002: if (dataReader.Read())
Source File: D:\Websites\IL\Libraries\Nop.DataAccess.SqlServer\Customer\SQLCustomerProvider.cs Line: 1000
Stack Trace:
[SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.PermissionSet.Demand() +76
System.Data.Common.DbConnectionOptions.DemandPermission() +79
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +6265031
System.Data.SqlClient.SqlConnection.Open() +258
Microsoft.Practices.EnterpriseLibrary.Data.Database.GetNewOpenConnection() +370
Microsoft.Practices.EnterpriseLibrary.Data.Database.GetOpenConnection(Boolean disposeInnerConnection) +176
Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteReader(DbCommand command) +83
NopSolutions.NopCommerce.DataAccess.CustomerManagement.SQLCustomerProvider.GetCustomerSessionByGUID(Guid CustomerSessionGUID) in D:\Websites\IL\Libraries\Nop.DataAccess.SqlServer\Customer\SQLCustomerProvider.cs:1000
NopSolutions.NopCommerce.BusinessLogic.CustomerManagement.CustomerManager.GetCustomerSessionByGUID(Guid CustomerSessionGUID) in D:\Websites\IL\Libraries\Nop.BusinessLogic\Customer\CustomerManager.cs:1880
NopSolutions.NopCommerce.BusinessLogic.NopContext.GetSession(Boolean createInDatabase, Nullable`1 sessionId) in D:\Websites\IL\Libraries\Nop.BusinessLogic\NopContext.cs:117
NopSolutions.NopCommerce.BusinessLogic.NopContext.GetSession(Boolean createInDatabase) in D:\Websites\IL\Libraries\Nop.BusinessLogic\NopContext.cs:88
NopSolutions.NopCommerce.BusinessLogic.NopContext.get_Session() in D:\Websites\IL\Libraries\Nop.BusinessLogic\NopContext.cs:247
NopSolutions.NopCommerce.HttpModules.MembershipHttpModule.Application_BeginRequest(Object sender, EventArgs e) in D:\Websites\IL\Libraries\Nop.HttpModules.MembershipModule\MembershipHttpModule.cs:146
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927