When new MVC project is created with some partial views.
The projects works fine when it is build in local but when published to
server it shows message as :
The partial view '..' was not found or no view engine
supports the searched locations. The following locations were searched:
~/......
~/......
If your created views are in another project or another folder from your
current project this is the issue , Basically the files should be in the
web site project, in it's views folder, and most important is
the build action
should be set to Content and not to copy to the output folder.
Hope it helps.
Cheers
No comments:
Post a Comment