Azure ASP.NET MVC Web.Config Deployment Issue

后端 未结 1 1820
温柔的废话
温柔的废话 2021-01-22 23:58

We are developing an ASP.NET MVC web app that will be hosted on Windows Azure. We have deployed the application a few times during development without any problems. It was act

1条回答
  •  余生分开走
    2021-01-23 00:20

    I often solve these sorts of problems by looking at the contents of the .cspkg file. This allows me to avoid waiting for the Azure package upload and initialization. Here are the steps to view the .cspkg contents:

    1. Navigate to the /bin//app.publish folder
    2. Rename the .cspkg file to .cspkg.zip.
    3. Open .cspkg.zip. You will find a .cssx file (which is really a zip file) for each project referenced by the Azure project.
    4. Extract the .cssx file you wich to inspect and rename it to .cssx.zip
    5. Open the .cssx.zip and look around. For WorkerRoles, check out the approot folder. For WebRoles, check out the sitesroot folder.

    0 讨论(0)
提交回复
热议问题