Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question