Frage

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.

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top