Hello Gary,
I've been working on the composite system that's similar to XAF (it leverages
DX and XPO).
It's server and web UI are successfully hosted on plain shared ASP.NET hosting
account (ASP.NET 2.0, the actual code is .NET 3.5 that's compiled down to
2.0 compatibility). The account works under the Medium Trust with some modifications.
I've ancountered only a couple of security-related problems with that deployment.
They were related to the XPO. Here's short summary for working around:
http://rabdullin.com/how-to-run-xpo-in-hosting-environment-with-some-cas-restrictions/
With best regards,
Rinat Abdullin
> I've been experimenting with deploying an XAF app to a 3rd party
> hosting company, and am using an SQL Database supplied by them, with
> all tables configured
>
> from my end.
>
> Initially, I could run this as a win/web on my dev box, and had no
> problems or errors in the web.config or otherwise, from SQL Server or
> from IIS.
>
> On the hosting site, the root directory has been subdomained to
> contain my project: http://webtracker.pugetcustompc.com
>
> and has been configured for ASP.Net 2.0 in IIS; Anonymous Users has
> been enabled as well on the subdomain folder.
>
> After testing all the various directory settings and working through a
> few deployment snags related to imported libraries, I've gotten to
> this message, which has shown up like the proverbial brick wall!
>
> I'm stumped with this, and am wondering if anyone has dealt with it
> successfully. The information I've found seems to only point to the
> trust level of the application, and suggests changing it at the
> machine.config level; which of course is impossible from my end.
>
> I attempted to hard code a trust level in the web.config, but of
> course it has been disabled by whoever the admin for the host is. That
> makes sense to me, but how does one get around such a restriction with
> XAF?
>
> Thoughts?
>
> --Gary
> Server Error in '/WebTracker' Application.
> 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:
>
> An unhandled exception was generated during the execution of the
> current web request. Information regarding the origin and location of
> the exception can be identified using the exception stack trace below.
>
> Stack Trace:
>
> [SecurityException: Request for the permission of type
> 'System.Security.Permissions.SecurityPermission, mscorlib,
> Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
> failed.]
> DevExpress.ExpressApp.Web.WebApplicationStatistic..cctor() +0
> Version Information: Microsoft .NET Framework Version:2.0.50727.832;
> ASP.NET Version:2.0.50727.832
>