문제

I am deploying an MVC application on IIS using the below commands

C:..\MSBuild.exe X:\WebApp.csproj /t:Package /p:Configuration=Release /p:PackageLocation=x:\WepApp\WebApp.zip

C:..\webapp.deploy.cmd /Y /M:192.168.1.12 /U:milton /P:xx

The application is getting deployed on IIS successfully but All the Views content is not coming under the deployed folder.

I am unable to browse particular cshtml page except home page

Please help me in resolving this issue.

도움이 되었습니까?

해결책

Are the missing views "Included" in the project file and marked with a "Build Action" of "Content"? If not, they won't be included in the package and thus won't be deployed.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top