Following Report Tutorial Breaks Site
I am using Essentials 3.4.1and the standalone Report designer 2.8.1.40. As I am new to reports, I just followed the tutorial in the help document. Nothing extra, defaults for everything. I've saved my report in the site directory I want to use it in. I then copied the PrintTemplates text from the help into my Site.XML file, right after the </OverviewMap> tag and modified the TemplateUri to the name of my template.
When I saved the XML and attempted to reload the site, it immediately broke and gave the following error info:
Sorry, an error occurred while processing your request.
Value cannot be null. Parameter name: siteConfig
Hide Details
Details
Controller: Sites
Action: Reload
Error Info
Source: Geocortex.Essentials.Configuration
Message: Value cannot be null. Parameter name: siteConfig
at Geocortex.Essentials.Configuration.XmlSiteConfigServer.SaveSiteConfig(SiteConfig siteConfig, String username)
at Geocortex.Essentials.RestManager.Models.Repositories.SiteConfigRepository.ReloadSite(String siteID)
at Geocortex.Essentials.RestManager.Controllers.SitesController.Reload(String siteID)
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClassd.<>c__DisplayClassf.<InvokeActionMethodWithFilters>b__c()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
Once I removed the offending lines, the site was restored. I don't see anything about this in the help. What have I overlooked?
Thanks,
Martha
-
Hi Martha,
Is this the sample from the Geocortex Report Designer help page " Walkthrough: Creating a Print Template "? I see a few potentials pitfalls here:
1. If you added a legend to the print template, you need to place a Legend.rpx file into the same directory. You should be able to find one in either <REST Elements>\Sites\Resources\PrintTemplates\, or <REST Elements>\Sample Sites\Resources\PrintTemplates\.
2. I assume you went to the "Configuring your Print Template in Geocortex Essentials REST Elements" page. REST is picky about paths to files, so the TemplateUri might be failing. With the .rpx file in your site directory, you should be able to use TemplateUri="{SiteUri}/MyPrintTemplate.rpx", or optionally TemplateUri="{RootUri}/MY_SITE_NAME/MyPrintTemplate.rpx", and then REST Manager should stop complaining.
0 -
Thank you, Paul,
I did add a legend, so that could be it. I'll have to get back into this tomorrow to see whether my TemplateUri is also a problem. I shall report back -- at some point soon.
Martha
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer