I just tried uploaded my application to Godaddy. I've been testing locally with Medium Trust in my web.config file. I'm using VistaDB Build 3.20.1.28 with a binding redirect from build 3.20.1.25, so EntitySpaces knows where to find it. Build 25 didn't support Medium Trust, but 28 does. Running locally, the application works fine.
I have the following in my Global.asax:
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
EntitySpaces.Interfaces.esProviderFactory.Factory =
new EntitySpaces.LoaderMT.esDataProviderFactory();
}
On Godaddy, I get the error message below. (Has anyone gotten ES to work on Godaddy?) It seems to fail at the moment of the Query.Load() statement, because if I comment that out, it works fine:
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 failed.
Source Error:
Line 259: rootNodes.Query.Where(rootNodes.Query.ParentNavigationNodeId.IsNull());
Line 260: rootNodes.Query.OrderBy("SortOrder", esOrderByDirection.Ascending);
Line 261: rootNodes.Query.Load();
Line 262: return rootNodes;
Line 263: } |
Stack Trace:
[SecurityException: Request failed.]
EntitySpaces.Interfaces.esDataProvider.esLoadDataTable(esDataRequest request, esProviderSignature sig) +153
EntitySpaces.Interfaces.esDynamicQuery.Load() +184
EntitySpaces.NavNavigationNodes.GetRootNodes()
Providers.YSiteMapProvider.BuildSiteMap() System.Web.StaticSiteMapProvider.FindSiteMapNode(String rawUrl) +143
System.Web.SiteMapProvider.FindSiteMapNode(HttpContext context) +41
System.Web.SiteMapProvider.get_CurrentNode() +32
System.Web.SiteMap.get_CurrentNode() +31
URLRewriting.BaseModuleRewriter.BaseModuleRewriter_AuthenticateRequest(Object sender, EventArgs e)
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
|