M
M
mr_blond972016-05-05 12:21:59
IIS
mr_blond97, 2016-05-05 12:21:59

Why does a 502.3 error appear when web deploy in IIS?

If the project for asp.net is published locally, then it works. Trying to set up Web Deploy in Visual Studio . The project is published but throws a 502.3 error. IIS does not write logs. How to find out the cause of the error?
Added : Found the reason - when doing a web deploy in Visual Studio, the wrong path is specified in the web.config file in . After local publishing, this line looks like this <httpPlatform processPath="..\approot\web.cmd", and after web deploy, the line looks like this

<httpPlatform processPath="%home%\site\approot\web.cmd"
. I need to remove %home%\site from %DNX_PATH% config variable. Where is it indicated?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mr_blond97, 2016-05-31
@mr_blond97

When Visual Studio publishes Web Deploy, an environment variable called DNU_PUBLISH_AZURE is set to 1. This tells dnu publish to use the following values:
Setting DNU_PUBLISH_AZURE to 0 or false should cause normal paths to be used.
The inclusion of the Azure environment is written in pubxml in publish profiles in the line
In my case, this line must be deleted.

W
w1ld, 2016-05-05
@w1ld

How can "path to " be wrong? ;) web.config is not generated by the script. It can be changed using Web.config Transformation . If you are talking about ConnectionString, then you can take an example from the link:

<connectionStrings>
    <add name="MyDB" 
      connectionString="value for the deployed Web.config file" 
      xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
  </connectionStrings>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question