+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Issue with Images and Documents modules on GoDaddy

Issue with Images and Documents modules on GoDaddy

12 posts, 0 answered
  1. Brimaka
    Brimaka avatar
    6 posts
    Registered:
    08 Nov 2009
    27 May 2010
    Link to this post
    Hello,

    I am running Sitefinity 3.7 Community on GoDaddy shared hosting, which runs in medium trust.  In Sitefinity's GoDaddy setup document, the final paragraph/note says:
     
    "Due to some specific IMAPI settings, the Image and Document modules do not work as expected on GoDaddy. We are currently looking for a resolution of this problem. Please, contact us via the support ticketing system for updates."

    I have encountered this problem, and am wondering - is there any solution/work-around for this issue?

    Thanks in advance.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    27 May 2010
    Link to this post
    Hi Brimaka,

    Please check whether you have Handler or Wildcard mapping for .sflb.ashx and .tmb.ashx. Since version 3.5   we register the handlers authomatically in the web.config, then this settings are mapped to IIS.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Brimaka
    Brimaka avatar
    6 posts
    Registered:
    08 Nov 2009
    27 May 2010
    Link to this post
    Hi Ivan,

    The following lines are in my web.config file:

    <add verb="GET" path="*.sflb.ashx" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine"/>
    <add verb="GET" path="*.tmb.ashx" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine"/>

    Is this what you're asking for?  If not, can you please be more specific?

    Not sure if it's related or not, but I also found the following in my web.config:

    <!-- before using extensionMapping be you uncomment LibraryHttpModule in handlers and httpHandlers sections -->
    <extensionMapping defaultExtension=".sflb.ashx">
        <!--<add key=".jpg"/>
        <add key=".pdf"/>
        <add key=".csv"/>
        <add key=".xls"/>-->
    </extensionMapping>

    Do I need to un-comment the LibraryHttpModule?  I checked and it is currently commented.

    To clarify the issue that I'm seeing, which I'm trying to fix... when I go to upload an Image to an Image Library (in Modules), I am met with a 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."  Please see screenshot for more detail.

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    27 May 2010
    Link to this post
    Hi Brimaka,

    Please take a look at this post which explains how to configure your application to support medium trust. Most probably your host does not allow uploading in medium trust. RadUploadModule requires ReflectionPermission in order to operate correctly. This means that in normal circumstances you will have to run your application with Full Trust permission set, unless you create a custom security policy that allows ReflectionPermission. If you are unable to set Full Trust or a custom security policy, the solution is to put the controls assembly in GAC.

    As a result, if you have registered the RadUploadHttpModule in the web.config (which is mandatory if you want to use the RadProgressArea) then you need to comply with the above trust levels. 

    Note that in medium trust the RadProgressArea should be disabled.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Brimaka
    Brimaka avatar
    6 posts
    Registered:
    08 Nov 2009
    27 May 2010
    Link to this post
    Hello Ivan,

    Thanks for your reply.  I found an article on GoDaddy, which talks about the ReflectionPermission being disabled in their medium-trust environment.

    Does the ReflectionPermission refer to all files on the shared environment, including those in my application's virtual directory heirarchy?  I thought that in Medium Trust, an application could use any resources in it's own heirarchy, but perhaps that does not apply for ReflectionPermission.

    Since I can't run in Full Trust on GoDaddy, and since I'm doubtful that I would be able to write a Custom security policy to override the ReflectionPermission restriction in their environment, and since it's a Shared Hosting Environment and GoDaddy will likely not allow me to register a file in the GAC, do I have any other options in getting the RadUploadModule to work?

    I realize that upgrading to a dedicated hosting environment is one option.  Is my best alternative to that just to simply create my Image Library locally (on my development server) and then upload my database (or just copy the table rows) to the shared environment (and also copy the files that are referenced in the library)?
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    27 May 2010
    Link to this post
    Hi Brimaka,

    You could upload the images locally and then move the website, but this is not a good option because if you want to add a single image you have to reupload the database. You could store the images in the file system and ftp them from your local server to production or just switch the host.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  7. Brimaka
    Brimaka avatar
    6 posts
    Registered:
    08 Nov 2009
    27 May 2010
    Link to this post
    Hi Ivan,

    When you say "You could store the images in the file system and ftp them from your local server to production or just switch the host."...could you elaborate a little bit?

    I was under the impression that there was a table in the Sitefinity database that referenced each individual file in a library - is this not the case?  Will uploading to a directory on my production server, after an Images library has been created, automatically associate the image(s) with the Library?

    And I'm unclear on what you mean by "switch the host".  Any help you can offer to clarify would be greatly appreciated.  Thanks.
  8. Zac
    Zac avatar
    2 posts
    Registered:
    30 Jun 2010
    06 Aug 2010
    Link to this post
    So, as a quick overview:
    Is it possible to upload an image or document to the Images and Documents library (singularly, not in bulk) while hosting on GoDaddy directly from the Sitefinity administrator portal of a site?

  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 Aug 2010
    Link to this post
    Hi Zac,

    As far as I remember GoDaddy does not allow uploading of files through backend UI when you use Medium Trust.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  10. Leonard
    Leonard avatar
    19 posts
    Registered:
    01 Dec 2005
    09 Aug 2010
    Link to this post
    Zac,

    Based on our recent testing using a shared hosting plan on GoDaddy (IIS 7, SQL Server 2005) the built-in functionality to upload files / manage files works fine for the following:

    - Images & Documents (only tested files, not archives)
    - Files module (the target directory should have "web writable" permission - you can control permissions using GoDaddy's File Manager)
    - Insert Image dialog when using the content editor (the target directory should have "web writable" permission)

    I hope this helps --
  11. james
    james avatar
    6 posts
    Registered:
    27 Apr 2009
    30 Mar 2011
    Link to this post

    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 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 failed.]
       System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +150
       System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +100
       System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) +284
       System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet demandSet, PermissionSet& alteredDemandset, RuntimeMethodHandle rmh) +69
       System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandle rmh) +150
       System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) +30
       System.Threading.CompressedStack.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) +40
       System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant, CompressedStack securityContext) +123
       System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant) +54
    

  12. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    30 Mar 2011
    Link to this post
    Hi ,

    "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."

    All the best,
    Ivan Dimitrov
    the Telerik team
Register for webinar
12 posts, 0 answered