DNNCommunity / DNNCommunity/DNN.Blog

The relative virtual path is not allowed here

Open
#137 2 comments 0 reactions 0 assignees View on GitHub
waiting for reply
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.