Mauricio
09-04-2007, 05:30 PM
Hello,
I'm implementing an online store and I have a problem with the following code:
[......]
public void SaveOrder(int orderID)
{
using (TransactionScope scope = new TransactionScope())
{
foreach (ShoppingCartItem product in this.Items)
{
product.OrderID = orderID;
SiteProvider.Store.InsertOrderItem(product);
}
}
}
[......]
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.Transactions.DistributedTransactionPermiss ion, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
This problem occurs before you submit an order for checkout.
Link: http://webstore.dotnetglobalservices.com/
Please give me any suggestions.
Regards,
Mauricio
I'm implementing an online store and I have a problem with the following code:
[......]
public void SaveOrder(int orderID)
{
using (TransactionScope scope = new TransactionScope())
{
foreach (ShoppingCartItem product in this.Items)
{
product.OrderID = orderID;
SiteProvider.Store.InsertOrderItem(product);
}
}
}
[......]
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.Transactions.DistributedTransactionPermiss ion, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
This problem occurs before you submit an order for checkout.
Link: http://webstore.dotnetglobalservices.com/
Please give me any suggestions.
Regards,
Mauricio