Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
'Z:/TFS/Web/ExtranetWarden/Site/AreaManager/main.master' is a physical path, but a virtual path was expected.

What I have tried:

I do not know how to solve this error.
Posted
Updated 19-Jun-18 5:01am
Comments
BillW33 19-Jun-18 10:39am    
You should provide the code where you are using this path so that we can determine what you are trying to do and why it isn't working. For example, if you are using Server.MapPath it is expecting a virtual path, not an actual path.

1 solution

A physical path starts with a disk, and then has an explicit path defintion; a virtual path starts with a tilde '~' and is followed by a subpath: "~/AreaManager/main.master"
Check exactly what you are passing to Server.MapPath - it's probably not a virtual path at all.

Without the relevant code fragments, there is no more we can do to help!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900