More in this section

Forums / Developing with Sitefinity / Cannot find template "~/SFJobs/Jobs.Resources.Views.JobApplicationsOverview.ascx".

Cannot find template "~/SFJobs/Jobs.Resources.Views.JobApplicationsOverview.ascx".

4 posts, 0 answered
  1. aldo
    aldo avatar
    2 posts
    Registered:
    24 May 2011
    26 May 2011
    Link to this post
    Hi,
    I tried to follow this tutorial http://www.sitefinity.com/40/help/developers-guide/how-to-how-to-create-a-custom-content-based-module.html and I got this error when opening Jobs module page.
    Cannot find template "~/SFJobs/Jobs.Resources.Views.JobApplicationsOverview.ascx".

    Server Error in '/tes2' Application.

    Cannot find template "~/SFJobs/Jobs.Resources.Views.JobApplicationsOverview.ascx".

    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.ArgumentException: Cannot find template "~/tes2/Jobs.Resources.Views.JobApplicationsOverview.ascx".

    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:

    [ArgumentException: Cannot find template "~/SFJobs/Jobs.Resources.Views.JobApplicationsOverview.ascx".]
       Telerik.Sitefinity.Web.UI.ControlUtilities.GetTemplate(String virtualPath, String resourceFileName, Type assemblyInfo, String templateDeclaration, Boolean addChildrenAsDirectDescendants) +548
       Telerik.Sitefinity.Web.UI.ControlUtilities.GetControlTemplate(TemplateInfo info) +752
       Telerik.Sitefinity.Web.UI.ControlUtilities.GetTemplate(TemplateInfo info) +1245
       Telerik.Sitefinity.Web.UI.SimpleView.get_LayoutTemplate() +184
       Telerik.Sitefinity.Web.UI.SimpleView.get_Container() +40
       Telerik.Sitefinity.Web.UI.SimpleView.CreateChildControls() +62
       System.Web.UI.Control.EnsureChildControls() +182
       System.Web.UI.Control.PreRenderRecursiveInternal() +73
       System.Web.UI.Control.PreRenderRecursiveInternal() +240
       System.Web.UI.Control.PreRenderRecursiveInternal() +240
       System.Web.UI.Control.PreRenderRecursiveInternal() +240
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3914
    


    please help
  2. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    26 May 2011
    Link to this post
    Hello aldo,

    Can you tell me if you have created the virtual path for the overview template of the jobs module? As I can see the system is looking for a file in the directory SFJobs which does not appear to be present.

    Also please consider reviewing our SDK, which has a working Jobs module sample, which is configured to work with the Virtual paths we introduced in SF 4.1

    Regards,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Daniel Plomp
    Daniel Plomp avatar
    112 posts
    Registered:
    14 Jun 2012
    27 May 2011
    Link to this post
    Hi Aldo,

    I had the same problem, because I followed the tutorial inside the documentation. There is a blogpost that SF4.1 SP1 implements the VirtualPathProvider, so the latest version of the Jobs module inside the SDK has this new approach implemented. If you follow the tutorial, you'll have to fix it with a workaround.

    I used the Jobsmodule from the SDK, but wasn't able to get it running.
    Well, after modifying the Jobsmodule for the 4th time without success, I'm going to have weekend first! :)

    So, use the workaround in the blogspost, or try to implement the sample from the latest SDK.
    Hopefully the tutorial will be updated soon, because that was a good one.

    Regards,
    Daniel
  4. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    28 May 2011
    Link to this post
    Hi Daniel and Aldo,

    The blog post which explains how the virtual path provider works can be found here.

    All the best,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
4 posts, 0 answered