Cannot find template "~/SFJobs/Jobs.Resources.Views.Job

Posted by Community Admin on 04-Aug-2018 11:38

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

All Replies

Posted by Community Admin on 26-May-2011 00:00

Hi,
I tried to follow this tutorial www.sitefinity.com/.../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

Posted by Community Admin on 26-May-2011 00:00

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

Posted by Community Admin on 27-May-2011 00:00

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

Posted by Community Admin on 28-May-2011 00:00

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

This thread is closed