I am unable to create a new site. dnn complains about element 'settings' has invalid child sitemapcachedays. i can't find it in web.config.
The element 'settings' has invalid child element 'sitemapcachedays'
i am using dnn 9.8.1
How do i correct?
i searched for all of his comments but did not find anything where he addressed this issue.
on the other hand, there is this message in the developer tools console: Failed to load resource: the server responded with a status of 400 () /API/PersonaBar/Sites/CreatePortal:1
i will try another browser
ps - different browser doesn't help. it looks like some piece of code is missing or security is blocking access. next to remove all content-security-policy
clicking the offending url shows this message The requested resource does not support http method 'GET'.
this problem looks like a coding problem where someone didn't annotate the webapi correctly OR incorrect payload going to webapi OR missing data in a configuration setting OR incorrect endpoing called.
Good afternoon Joe,
I would like to know those four lines. The pull is no longer available and I'm curious if my portal.template.xsd is missing those five lines since I also have the same issue with creating a new site. Get a server error: jquery.js?cdv=299:2 POST https://www.example.com/A...r/Sites/CreatePortal 500 (Internal Server Error)
Moderator Note: I changed the domain name to example.com since this is a universally known test/example URL. - Will Strohl ;)
Well I found the error in the Log4Net logs. Here is the stack trace output: 2024-05-23 23:41:26.466+00:00 [EC2AMAZ-48VNO0E][D:4][T:21][ERROR] Dnn.PersonaBar.Sites.Services.SitesController - System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\gotrwebsite\Portals\_default\'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) at System.Xml.XmlTextReaderImpl.OpenUrl() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.Load(String filename) at DotNetNuke.Entities.Portals.Internal.PortalTemplateIO.GetTemplateLanguages(String templateFilePath) at DotNetNuke.Entities.Portals.Templates.PortalTemplateInfo.InitLocalizationFields(String cultureCode) at DotNetNuke.Entities.Portals.Templates.PortalTemplateController.GetPortalTemplate(String templatePath, String cultureCode) at Dnn.PersonaBar.Sites.Components.SitesController.CreatePortal(List`1 errors, String domainName, String serverPath, String siteTemplate, String siteName, String siteAlias, String siteDescription, String siteKeywords, Boolean isChildSite, String homeDirectory, Int32 siteGroupId, Boolean useCurrent, String firstname, String lastname, String username, String email, String password, String confirm, String question, String answer) at Dnn.PersonaBar.Sites.Services.SitesController.CreatePortal(CreatePortalRequest request) The issue was I didn't have the boilerplate templates (Blank Website.template and Default Website.template). I knew I could figure it out!!!!
Posted By Cory Trento on 5/23/2024 6:57 PM Well I found the error in the Log4Net logs. Here is the stack trace output: 2024-05-23 23:41:26.466+00:00 [EC2AMAZ-48VNO0E][D:4][T:21][ERROR] Dnn.PersonaBar.Sites.Services.SitesController - System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\gotrwebsite\Portals\_default\'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) at System.Xml.XmlTextReaderImpl.OpenUrl() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.Load(String filename) at DotNetNuke.Entities.Portals.Internal.PortalTemplateIO.GetTemplateLanguages(String templateFilePath) at DotNetNuke.Entities.Portals.Templates.PortalTemplateInfo.InitLocalizationFields(String cultureCode) at DotNetNuke.Entities.Portals.Templates.PortalTemplateController.GetPortalTemplate(String templatePath, String cultureCode) at Dnn.PersonaBar.Sites.Components.SitesController.CreatePortal(List`1 errors, String domainName, String serverPath, String siteTemplate, String siteName, String siteAlias, String siteDescription, String siteKeywords, Boolean isChildSite, String homeDirectory, Int32 siteGroupId, Boolean useCurrent, String firstname, String lastname, String username, String email, String password, String confirm, String question, String answer) at Dnn.PersonaBar.Sites.Services.SitesController.CreatePortal(CreatePortalRequest request) The issue was I didn't have the boilerplate templates (Blank Website.template and Default Website.template). I knew I could figure it out!!!!
Congratulations on figuring this out!
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.