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

Forums / Bugs & Issues / Admin issues

Admin issues

6 posts, 1 answered
  1. Nathan J Pledger
    Nathan J Pledger avatar
    27 posts
    Registered:
    21 Apr 2006
    06 Feb 2010
    Link to this post
    Hi,

    I've posted on another thread about the difficulties we're having in the admin area of a particular user logging in to the SiteFinity admin area.

    Another user CAN log in (hooray), but then when they click on the Modules tab, they get:

    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: 

    Line 18:         this.userName.Controls.Add(new LiteralControl(Telerik.Security.UserManager.GetCurrentUserName()));
    Line 19:         this.projectName.Controls.Add(new LiteralControl(Telerik.Cms.Web.UrlHelper.GetProjectName()));
    Line 20:         this.MainMenu.DataBind();
    Line 21:     }
    Line 22: 

    Source File: c:\inetpub\vhosts\clear-vision.org\httpdocs\Sitefinity\Admin\Admin.master.cs    Line: 20 

    Stack Trace: 

    [UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))]
    
    [FileLoadException: Could not load file or assembly '3889AC4AF542BAC3C62ABB154E78FEA8, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' 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) +43
       System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
       System.Reflection.Assembly.Load(AssemblyName assemblyRef) +28
       Telerik.WebServices.DynamicProxy.CompiledAssemblyCache.CheckCacheForAssembly(String wsdl) +137
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.BuildProxy() +50
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy..ctor(String wsdlLocation, Cookie authCookie) +210
       Telerik.Notifications.Services.MailingServiceProxy..ctor(String wsdlUri) +573
       Telerik.Notifications.Services.MailingServiceProxy..ctor() +35
       Telerik.Notifications.Newsletters.DataManager.OnInitialized() +105
       Telerik.ManagerBase`1.Initialize() +687
       Telerik.ManagerBase`1..ctor(String providerName) +50
       Telerik.ManagerBase`1..ctor() +35
       Telerik.Notifications.Newsletters.DataManager..ctor(String providerName) +40
       Telerik.Notifications.Newsletters.DataManager..ctor() +35
       Telerik.Notifications.Newsletters.DataManager.get_Providers() +76
       Telerik.Notifications.Newsletters.DataManager.get_SecurityRoots() +95
       Telerik.Notifications.Newsletters.NewsletterModule.get_SecurityRoots() +34
       Telerik.Cms.Web.UI.Util.CheckPermissions(IModule module, Int32 perm) +150
       Telerik.Cms.Web.UI.Util.CheckMinimalPermissions(IModule module) +44
       Telerik.Cms.Web.UI.MainMenuSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +6439
       System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
       System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
       Admin_Admin.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\clear-vision.org\httpdocs\Sitefinity\Admin\Admin.master.cs:20
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016


    Therefore, our entire web site is unmanageable and useless.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Feb 2010
    Link to this post
    Hello Nathan J Pledger,

    Try deleting the assemble that is generated under ~/Sitefinity/ServiceAssemblies/. Then access the application and modules section. The application should generate a new dll. Make sure that ASP.NET Worker process has read/write permissions over ~/Sitefinity/ServiceAssemblies/

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  3. Nathan J Pledger
    Nathan J Pledger avatar
    27 posts
    Registered:
    21 Apr 2006
    08 Feb 2010
    Link to this post
    Hi Ivan,

    Thanks for that. I have applied the appropriate permissions on that folder and deleted the resident DLL (which was successfully recreated).

    This returns us to the original error below when we click on the Modules section.

    Server Error in '/' Application.

    The given key was not present in the dictionary.

    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.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

    Source Error: 

    Line 54: 			{
    Line 55: 				Telerik.Web.IControlPanel ctrlPnl = (Telerik.Web.IControlPanel)this.contolPanel;
    Line 56: 				foreach (Telerik.Web.ICommandPanel cmdPnl in ctrlPnl.CommandPanels)
    Line 57: 					this.ToolBoxHolder.Controls.Add((Control)cmdPnl);
    Line 58: 			}

    Source File: c:\inetpub\vhosts\clear-vision.org\httpdocs\Sitefinity\Admin\Modules.aspx.cs    Line: 56 

    Stack Trace: 

    [KeyNotFoundException: The given key was not present in the dictionary.]
       System.ThrowHelper.ThrowKeyNotFoundException() +28
       System.Collections.Generic.Dictionary`2.get_Item(TKey key) +7455996
       Telerik.Cms.Engine.WebControls.Admin.GenericControlPanel.GetDefaultProviderName() +215
       Telerik.Cms.Web.UI.Backend.ProviderControlPanel`1.get_ProviderName() +265
       Telerik.Cms.Engine.WebControls.Admin.GenericControlPanel.get_Manager() +77
       Telerik.Cms.Engine.WebControls.Admin.GenericControlPanel.CreateViews() +272
       Telerik.Cms.Web.UI.ViewModeControl`1.get_Views() +166
       Telerik.Cms.Web.UI.ViewModeControl`1.get_DefaultViewMode() +60
       Telerik.Cms.Web.UI.ViewModeControl`1.get_ViewMode() +447
       Telerik.Cms.Web.UI.Backend.ControlPanel`1.get_CommandPanels() +83
       Modules.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\clear-vision.org\httpdocs\Sitefinity\Admin\Modules.aspx.cs:56
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       Telerik.Cms.Web.CmsPageBase.OnLoad(EventArgs e) +82
       Telerik.Cms.Web.AdminPage.OnLoad(EventArgs e) +44
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 Feb 2010
    Link to this post
    Hi Nathan J Pledger,

    1. Make sure that you have the following line in your web.config file

    <cmsEngine defaultProvider="Generic_Content">

    note - do not change the defaultProvider. Use Generic_Content as shown above.

    2. Try switching the positing of the GenericContent module from modules section. By default the GenericContent is the first module that is loaded when you click on Modules tab. This will help you to narrow down the issue - whether it comes from GenericContent module or the error afftects all modules.

    <modules>
     
                    <add type="Telerik.News.NewsModule, Telerik.News"/>
                    <add type="Telerik.Blogs.BlogsModule, Telerik.Blogs"/>
                    <add type="Telerik.Lists.ListModule, Telerik.Lists"/>
                    <add type="Telerik.Polls.PollModule, Telerik.Polls"/>
                    <add type="Telerik.Forums.ForumsModule, Telerik.Forums"/>
                    <add type="Telerik.Libraries.LibrariesModule, Telerik.Libraries"/>
                    <add type="Telerik.Events.EventsModule, Telerik.Events"/>
                    <add type="Telerik.Notifications.Newsletters.NewsletterModule, Telerik.Notifications"/>
                    <add type="Telerik.Wiki.WikiModule, Telerik.Wiki"/>
                                    <add type="Telerik.Cms.Engine.GenericContentModule, Telerik.Cms.Engine"/>
                </modules>


    The error you are getting comes from one of the GenericContent based modules or someone of the providers declared under
    <cmsEngine defaultProvider="Generic_Content">

    Let us know how it goes.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
    Answered
  5. Nathan J Pledger
    Nathan J Pledger avatar
    27 posts
    Registered:
    21 Apr 2006
    09 Feb 2010
    Link to this post
    Hi Ivan,

    Thanks a lot for your prompt help.
    Turns out that we had the configuration:

        <cmsEngine defaultProvider="Libraries"> <!-- was Generic_Content -->

    I have changed this to Generic_Content and it now works.

    I wonder why it was changed from Generic_Content (which was alongside in a comment, someone had clearly changed it and left a reminder of its previous value) to "Libraries"? I worry if I have inadvertently turned a feature off. Can you advise what this may be and/or the purpose of this configuration? Hopefully that will shed some light on it.

  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    09 Feb 2010
    Link to this post
    Hello Nathan J Pledger,

    The default provide can be only Generic_Content. If you have another provider which type is Telerik.Cms.Engine.Data.Providers.DefaultProvider you can set it as default provider as well.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
Register for webinar
6 posts, 1 answered