DNNCommunity / DNNCommunity/DNN.Blog
The relative virtual path is not allowed here
- Dominant language
- JavaScript
- Stars
- 39
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
I have the eventlog full of this kind of exceptions:
The relative virtual path is not allowed here.
Message:The relative virtual path 'C:/Inetpub/vhosts/domain.com/httpdocs/Portals/0/Blog/Templates/latestPosts/CommentsTemplate.html' is not allowed here.
StackTrace:
at System.Web.VirtualPath.FailIfRelativePath() at System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) at System.Web.Hosting.HostingEnvironment.MapPathInternal(VirtualPath virtualPath) at System.Web.Hosting.HostingEnvironment.MapPath(VirtualPath virtualPath) at DotNetNuke.Modules.Blog.Templating.Templating.GetTemplateFileCallBack(CacheItemArgs cacheItemArgs) at DotNetNuke.Common.Utilities.DataCache.GetCachedDataFromRuntimeCache(CacheItemArgs cacheItemArgs, CacheItemExpiredCallback cacheItemExpired)
or
Message:The relative virtual path 'C:/Inetpub/vhosts/domain.com/httpdocs/Portals/0/Blog/Templates/categoryList/CommentsTemplate.html' is not allowed here.
or
Message:The relative virtual path 'C:/Inetpub/vhosts/domain.com/httpdocs/Portals/0/Blog/Templates/tagList/CommentsTemplate.html' is not allowed here.
## Software Versions
- DNN: 9.2.0
- Module: 6.4.1
I am not using comments, in fact they are disabled. It happens on 2 websites (separate DNN instances).
It does not matter whether I use the provided [system] templates or my own [local].
Best regards
Franco
Contributor guide
Assessment
This issue has not been assessed yet.