I've installed ServerSideIncludes module on my computer and it works great with one exception.
<!--#include virtual="meta.inc" -->
The line above is causing the problem. I know I must change virtual
with file
but I have a huge website and it means I must change at least 1000 line of code like this and I am looking for a way to run virtual
properly in IIS 7.
I've been looking for this solution but all I've been able to find the solution I've mentioned above.
Do you know how to solve this problem without changing the virtual
to file
Thanks.
Do you have parent paths enabled over your site? Navigate to the "ASP" section of your site in IIS and select "Enable Parent Paths" in the "Behavior" section and see if that helps.
The Parent Paths option permits you to use ".." in calls to functions such as MapPath by allowing paths that are relative to the current directory using the ..\notation. Setting this property to True may constitute a security risk because an include path can access critical or confidential files outside the root directory of the application.