The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Godaddy Security Exception

Last post 10-01-2007, 7:15 PM by JGS. 8 replies.
Sort Posts: Previous Next
  •  06-21-2007, 12:34 PM 3305

    Godaddy Security Exception

    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

  •  06-21-2007, 12:48 PM 3306 in reply to 3305

    Re: Godaddy Security Exception

    This looks like a typical missing provider error, but yet you get the security exception. Can you get godaddy to provide you with any further information? The "SecurityException: Request failed" just gives us nothing to go on. Can you load data using LoadAll or LoadByPrimaryKey ?
    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  06-21-2007, 1:09 PM 3307 in reply to 3306

    Re: Godaddy Security Exception

    Hi Mike,

    It doesn't look like they give me a way to get any more information out of it than that.  I had to allow remote debugging in my web.config to get that much info.

    I did try a LoadAll as you suggested, and I got the same error.  According to the stack trace, LoadAll calls Load.  It looks like it's something in the Load command that Godaddy doesn't like.

  •  06-21-2007, 1:18 PM 3309 in reply to 3306

    Re: Godaddy Security Exception

    When I look at the GoDaddy hosting plan comparison chart for Windows, I only see MS Access, MS SQL, and MySQL listed under database support. Do they support running VistaDB from their servers?
    David Neal Parsons
    www.entityspaces.net
  •  06-21-2007, 1:25 PM 3310 in reply to 3309

    Re: Godaddy Security Exception

    VistaDB doesn't need to be installed on the Shared Host to work.  It's an XCopy deploy DLL, just like EntitySpaces.  None of the hosts would list it because I don't think any of them know about it.
  •  06-21-2007, 1:43 PM 3311 in reply to 3310

    Re: Godaddy Security Exception

    Did you see the recent addendum to the assembly redirection post? There are specific instructions for getting it to be reconized for ASP.NET config files.

     http://community.entityspaces.net/forums/thread/1441.aspx


    David Neal Parsons
    www.entityspaces.net
  •  06-21-2007, 3:01 PM 3315 in reply to 3311

    Re: Godaddy Security Exception

    Hi David,

    That didn't wind up working for me.  In fact when I tried it, then the binding broke and it couldn't find the VistaDB assembly.

    I have the great fortune of having 2 hosting companies though, so I tried uploading to the 2nd one (Alentus), and after a little time spent with them to get the App_Data folder set with the right permissions, my app is now working.

    It's definitely looking like a Godaddy-specific problem because I'm pretty sure Alentus isn't running Full Trust either.  I would be very interested if anyone out there using EntitySpaces has gotten it to work with Godaddy.  It looks like Godaddy has probably strayed from the Medium Trust defaults and is running their own, more limited custom Partial Trust.  I have a support ticket out to them.  We'll see what they say.

    Thanks for your help David and Mike!

    Jeff

  •  06-21-2007, 11:56 PM 3318 in reply to 3315

    Re: Godaddy Security Exception

    Just thought I'd give a quick update. Godaddy's official response is:

    "Thank you for contacting Online Support. Unfortunately you are receiving this error since the script is attempting to perform an action not allowed on our medium trust level environment. Since this is a coding/scripting issue we are unable to provide details on how to correct the issue with your script. We sincerely apologize for any inconvenience."

    Makes no sense to me of course. If what they're saying's true I should be getting the same error with my web.config set to Trust Level = Medium, or, for that matter on Alentus (the other Shared Hosting company I use).

    I've sent several e-mails to them back and forth.  They claim they're running Medium Trust, but my guess is it must be customized in some fashion.  Sure would be nice if their debug pages were at least nice enough to tell me what security policy of theirs is causing the exception.

  •  10-01-2007, 7:15 PM 5471 in reply to 3318

    Re: Godaddy Security Exception

    Jeff,

    Not sure if this is still an issue for you, but I am running a VistaDB (Build 33) database on GoDaddy with no problems.  Let me know if I can help with any particular settings or info.  I cannot remember having to do anything in particular to get it working.

     
    Jeff 

View as RSS news feed in XML