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

Forums / Set-up & Installation / After instalation i got error in usercontrol of tag prefix

After instalation i got error in usercontrol of tag prefix

4 posts, 0 answered
  1. sanjay
    sanjay avatar
    6 posts
    Registered:
    09 Aug 2010
    09 Aug 2010
    Link to this post

    I got following error

    Error   1   The type initializer for 'Telerik.Sitefinity.Localization.Res' threw an exception.  

    C:\inetpub\wwwroot\TEST\App_Data\Sitefinity\WebsiteTemplates\DefaultTemplate\ControlTemplates\Libraries\Videos\MasterThumbnailLightBoxView.ascx   1   
    any body plz suggest
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    09 Aug 2010
    Link to this post
    Hello sanjay,

    Check whether you have the resx file for your template - MasterThumbnailLightBoxView.ascx  . Most probably one of the keys is missing. If the template and the resx file are fine you can paste the fulls tack of the error here.

    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
  3. sanjay
    sanjay avatar
    6 posts
    Registered:
    09 Aug 2010
    09 Aug 2010
    Link to this post
    thanks for reply

    this error have solved

    but now I am geting another error can u help me


    here is the error

    Access to the path 'C:\inetpub\wwwroot\sitefinitydemo\App_Data\Sitefinity\Configuration' is denied.

    Server Error in '/sitefinitydemo' Application.

    Access to the path 'C:\inetpub\wwwroot\sitefinitydemo\App_Data\Sitefinity\Configuration' is denied.

    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 to the path 'C:\inetpub\wwwroot\sitefinitydemo\App_Data\Sitefinity\Configuration' is denied.

    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 to the path 'C:\inetpub\wwwroot\sitefinitydemo\App_Data\Sitefinity\Configuration' is denied.]
       System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7716783
       System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity) +7569625
       System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity) +150
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.GetConfigurationWriter(ConfigSection section) +66
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.SaveSection(ConfigSection section) +125
       Telerik.Sitefinity.Configuration.ConfigManager.SaveSection(ConfigSection section) +48
       Telerik.Sitefinity.Security.SecurityManager..cctor() +338
    
    [TypeInitializationException: The type initializer for 'Telerik.Sitefinity.Security.SecurityManager' threw an exception.]
       Telerik.Sitefinity.Security.SecurityManager.GetCurrentUser() +0
       Telerik.Sitefinity.Configuration.UserPolicyHandler.GetPolicyNames(ConfigProvider configProvider, ConfigSection section) +27
       Telerik.Sitefinity.Configuration.ConfigElement.GetValueFromPolicy(ConfigPolicyHandler handler, ConfigurationProperty prop, Object& value) +99
       Telerik.Sitefinity.Configuration.ConfigElement.get_Item(ConfigurationProperty prop, ConfigPolicyHandler policyHandler, String policyName) +102
       Telerik.Sitefinity.Configuration.ConfigElement.get_Item(ConfigurationProperty prop) +34
       Telerik.Sitefinity.Configuration.ConfigElement.get_Item(String propertyName) +64
       Telerik.Sitefinity.Localization.Configuration.ResourcesConfig.get_Cultures() +14
    
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
       System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +71
       System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +350
       System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
       System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) +53
       System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) +20
       Telerik.Sitefinity.Configuration.ConfigElement.ApplyInstanceAttributes(Object instance) +181
       Telerik.Sitefinity.Configuration.ConfigElement.get_Properties() +39
       Telerik.Sitefinity.Configuration.ConfigElement.get_Item(String propertyName) +16
       Telerik.Sitefinity.Localization.Configuration.ResourcesConfig.get_Providers() +14
       Telerik.Sitefinity.Localization.ResourceManager.get_ProvidersSettings() +23
       Telerik.Sitefinity.Data.ManagerBase`1.Initialize() +467
       Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName, String transactionName) +21
       Telerik.Sitefinity.Localization.ResourceManager..ctor() +13
       Telerik.Sitefinity.Localization.Res..cctor() +21
    
    [TypeInitializationException: The type initializer for 'Telerik.Sitefinity.Localization.Res' threw an exception.]
       Telerik.Sitefinity.Localization.Res.RegisterResource() +0
       Telerik.Sitefinity.Abstractions.ObjectFactory.RegisterIoCTypes() +982
       Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +64
       Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +24
       System.Web.Routing.UrlRoutingModule.System.Web.IHttpModule.Init(HttpApplication application) +7
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +406
       System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +188
       System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +295
       System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context) +56
       System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +231
    
    [HttpException (0x80004005): The type initializer for 'Telerik.Sitefinity.Localization.Res' threw an exception.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8897659
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    09 Aug 2010
    Link to this post
    Hello sanjay,

    Grant ASP.NET Worker process account with full access over App_Data and its subfoldes. You are getting Access Denied error

    System.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\sitefinitydemo\App_Data\Sitefinity\Configuration'

    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
Register for webinar
4 posts, 0 answered