Hi All,
I am having problems in a live environment using SubSonic 2.1 in a WPF browser application (xbap).
On my dev machine, everything works 100% with zero problems.
After I publish, the xbap loads, then as soon as SubSonic kicks in with the first query, I get
"System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at SubSonic.DataService.LoadProviders()
at SubSonic.DataService.GetInstance(String providerName)
at Smartec.SmartLog.DAL.Status.GetTableSchema()
at Smartec.SmartLog.DAL.Status..ctor()
The action that failed was:
LinkDemand
The type of the first permission that failed was:
System.Web.AspNetHostingPermission
The first permission that failed was:
<IPermission class="System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Level="Minimal"/>"
Does anyone know what to set etc...? to get this to work correctly over the internet?
TIA