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

Forums / Deployment / sitefinity on hsphere

sitefinity on hsphere

8 posts, 0 answered
  1. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    20 Jul 2008
    Link to this post
    I would like to deploy my sitefinity application, but my host runs hsphere. I've followed the instructions for medium trust and have attempted to give write access to app_Data, is there something else I'm missing? this is the error I'm getting:

     

    Server Error in '/' Application.

    Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

    To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

    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:

    [UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))]
    
    [FileLoadException: Could not load file or assembly 'Aspose.Pdf, Version=3.6.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56' or one of its dependencies. Access is denied.]
       System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
       System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +54
       System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
       System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
       System.Reflection.Assembly.Load(String assemblyString) +25
       System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32
    
    [ConfigurationErrorsException: Could not load file or assembly 'Aspose.Pdf, Version=3.6.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56' or one of its dependencies. Access is denied.]
       System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
       System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +211
       System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +46
       System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
       System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +185
       System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +350
       System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
       System.Web.Compilation.BuildManager.CompileCodeDirectories() +525
       System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +448
    
    [HttpException (0x80004005): Could not load file or assembly 'Aspose.Pdf, Version=3.6.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56' or one of its dependencies. Access is denied.]
       System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +57
       System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +612
       System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +644
    
    [HttpException (0x80004005): Could not load file or assembly 'Aspose.Pdf, Version=3.6.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56' or one of its dependencies. Access is denied.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3465427
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +69
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +279
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    21 Jul 2008
    Link to this post
    update: I worked with the host to add the read/write permissions to aspnet for the App_Data directory and they have done so. are there other directories needing these permissions or is this an unrelated error? thanks
  3. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    21 Jul 2008
    Link to this post
    Hi SelArom,

    Please make sure you have an access also to the project's bin directory.

    Greetings,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  4. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    21 Jul 2008
    Link to this post
    isn't that implicitly done when a website is setup? I mean I'll ask them, but why would I have to manually add access to the bin folder? is there not any other conceivable cause of this error?
  5. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    22 Jul 2008
    Link to this post
    working with my host we got to here (excerpt from support ticket on host):

    Looking through the web.config file, you have the following set:

    <fileManager defaultProvider="Sitefinity">
    <impersonation username="" password="">
    <allow roles="Administrators"></allow>
    </impersonation>

    This may be adding to your problem. The error is:

    Exception Details: System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

    Any insight?
  6. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    22 Jul 2008
    Link to this post
    it turns out, as usual, it was the human factor. during my initial upload of the site, apparently the queue was interrupted and the full bin folder was not uploaded. everything except that dll was uploaded completely, so I reuploaded that file and BAM everything loaded :)

    lousy humans...
  7. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    22 Jul 2008
    Link to this post
    Hello SelArom,

    Thank you for the follow up. The strange thing is that the exception was Access is denied.

    We are glad that everything is as it should be!

    Regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    22 Jul 2008
    Link to this post
    actually thanks for reminding me: we didn't discover that the file was missing until my host granted network access to the entire site, so it may very well have been a permissions issue. it didn't tell us that it couldn't find a file until after we did this. before it was still saying access denied on the dlls mentioned above. 

    I asked them to rebuild the security now that it's working and if it cuts me off again, I'll report back
Register for webinar
8 posts, 0 answered