An unknown wininet error has occurred code 12113

FTP Publish Error in Visual Studio — An unknown WinINet error has occurred (code 12113) — How to fix it A rather common issue that you can experience while working with Visual Studio — be it 2010, 2013, 2015 and even 2017 — is the following error appearing on your Output window right after […]

Содержание

  1. FTP Publish Error in Visual Studio — An unknown WinINet error has occurred (code 12113) — How to fix it
  2. Enable the FTP Passive Mode
  3. Allow inbound connections for Visual Studio
  4. Deactivate Port-Blocking Software
  5. About Ryan
  6. Leave a Reply Cancel reply
  7. An unknown wininet error has occurred code 12113
  8. Лучший отвечающий
  9. Вопрос
  10. An unknown wininet error has occurred code 12113
  11. Answered by:
  12. Question
  13. An unknown wininet error has occurred code 12113
  14. Answered by:
  15. Question
  16. An unknown wininet error has occurred code 12113
  17. Answered by:
  18. Question

FTP Publish Error in Visual Studio — An unknown WinINet error has occurred (code 12113) — How to fix it

A rather common issue that you can experience while working with Visual Studio — be it 2010, 2013, 2015 and even 2017 — is the following error appearing on your Output window right after you try to publish your project to a remote FTP location:

Unable to add ‘file.ext’ to the Web site. An unknown WinINet error has occurred (code 12113).

This usually means that there are networking/connection issues between your Visual Studio development machine and the remote FTP server. To fix the issue you can try one of the following methods:

Enable the FTP Passive Mode

The first thing you can try is to enable FTP Passive mode on your publish settings configuration, so FTP will be able to work even behind NAT routers or dedicated firewalls. To change your publish settings, right-click to the project node in Solution Explorer, then select Publish. to access the modal window. Select your publishing template from the drop-down list, navigate to the Connection tab and activate Passive mode in the following way:

In most cases this will enough. However, chances are that your FTP server is unable to support Passive mode. If that’s the case, your Output window will show the following error:

Unable to add ‘file.ext’ to the Web site. FTP Passive Mode is not available.

If you get this and are unable to set your FTP server to allow Passive mode connections, keep reading: the same goes if you are unable to fix your issue this way.

Allow inbound connections for Visual Studio

The next thing you can try is to configure your built-in Windows Firewall (or any other firewall you have replaced it with) to accept inbound connections to the Visual Studio main executable file, which is the devenv.exe (usually located in C : Program Files ( x86 ) Microsoft Visual Studio XY . Z Common7 IDE , where XY.Z are the Visual Studio build numbers (find yours here). You can do that by creating a custom inbound rule in your firewall pointing to that file.

If you’re using Windows Firewall, here’s how you can do that:

  • Open the Control Panel by right-clicking to the bottom-left Windows icon.
  • Select the Windows Firewall icon.
  • Select Advanced Settings from the left navigation panel.
  • Add a new Inbound Rule for the devenv.exe executable file (check the full path here).
  • In the Advanced menu, activate the rule for all profiles (Public, Private and Domain) and also be sure that Allow Edge Traversal is selected in the appropriate dropdown list as in the screenshow below:

That should do it. However, in case you still have issues, keep reading.

Deactivate Port-Blocking Software

If you’re still getting that error — or are otherwise unable to estabilish a proper FTP connection — after the above workarounds, it probably means that there’s something in your system which is either blocking or scanning your port(s), thus preventing VS from properly communicating with the server. This is a list of the software you could try to temporarily disable in order to overcome your issue:

  • Antivirus software such as Kaspersky, BitDefender, Avira, AVG
  • Web Content filters such as Kerio Control
  • Web Protection Suites such as Symantec, McAfee and so on
  • Internet proxies and/or software TCP/IP filters
  • Windows Firewall (or other Firewall software)

Be sure to promptly reactivate them right after you find the culprit — and/or execute your upload. If the issue is still there, it could be also wise to perform a virus/malware scan, just in case.

That’s it for now: happy publishing!

About Ryan

IT Project Manager, Web Interface Architect and Lead Developer for many high-traffic web sites & services hosted in Italy and Europe. Since 2010 it’s also a lead designer for many App and games for Android, iOS and Windows Phone mobile devices for a number of italian companies. Microsoft MVP for Development Technologies since 2018.

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Источник

An unknown wininet error has occurred code 12113

Лучший отвечающий

Вопрос

I’m running ASDK with SQL and App Service providers, they seems working just fine. I successfully created a web app and was able to browser the site and open the home page. I downloaded the «publish Profile».

However, when I tried to deploy/publish a Web App application from Visual Studio 2017, got an error. From VS publish menu, I selected Import profile, then selected the previous downloaded profile.

When I selected WebDeploy, the validation fails: Cannot connect to remote computer.

Web deployment task failed. (Could not connect to the remote computer («eateamportal.scm.appservice.local.azurestack.external») using the specified process («Web Management Service») because the server did not respond. Make sure that the process («Web Management Service») is started on the remote computer. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.)

When I tried FTP deploy, first, it errored out on passive mode. So, I unchecked «Passive Mode» for FTP, then got following error:

2>Copying all files to temporary location below for package/publish:
2>objReleasePackagePackageTmp.
2>Publishing folder /.
2>Unable to add ‘ApplicationInsights.config’ to the Web site. An unknown WinINet error has occurred (code 12113).
2>Unable to add ‘favicon.ico’ to the Web site. An unknown WinINet error has occurred (code 12113).
2>Unable to add ‘Global.asax’ to the Web site. An unknown WinINet error has occurred (code 12113).

Any suggestions to fix it. What’s the right process to build and deploy web project to Azure Stack? I couldn’t find any instructions on deploying to Azure Stack from VS directly. There are some instructions about using VSTS, but my company is not using VSTS.

Источник

An unknown wininet error has occurred code 12113

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

I’m running ASDK with SQL and App Service providers, they seems working just fine. I successfully created a web app and was able to browser the site and open the home page. I downloaded the «publish Profile».

However, when I tried to deploy/publish a Web App application from Visual Studio 2017, got an error. From VS publish menu, I selected Import profile, then selected the previous downloaded profile.

When I selected WebDeploy, the validation fails: Cannot connect to remote computer.

Web deployment task failed. (Could not connect to the remote computer («eateamportal.scm.appservice.local.azurestack.external») using the specified process («Web Management Service») because the server did not respond. Make sure that the process («Web Management Service») is started on the remote computer. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.)

When I tried FTP deploy, first, it errored out on passive mode. So, I unchecked «Passive Mode» for FTP, then got following error:

2>Copying all files to temporary location below for package/publish:
2>objReleasePackagePackageTmp.
2>Publishing folder /.
2>Unable to add ‘ApplicationInsights.config’ to the Web site. An unknown WinINet error has occurred (code 12113).
2>Unable to add ‘favicon.ico’ to the Web site. An unknown WinINet error has occurred (code 12113).
2>Unable to add ‘Global.asax’ to the Web site. An unknown WinINet error has occurred (code 12113).

Any suggestions to fix it. What’s the right process to build and deploy web project to Azure Stack? I couldn’t find any instructions on deploying to Azure Stack from VS directly. There are some instructions about using VSTS, but my company is not using VSTS.

Источник

An unknown wininet error has occurred code 12113

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

I’m running ASDK with SQL and App Service providers, they seems working just fine. I successfully created a web app and was able to browser the site and open the home page. I downloaded the «publish Profile».

However, when I tried to deploy/publish a Web App application from Visual Studio 2017, got an error. From VS publish menu, I selected Import profile, then selected the previous downloaded profile.

When I selected WebDeploy, the validation fails: Cannot connect to remote computer.

Web deployment task failed. (Could not connect to the remote computer («eateamportal.scm.appservice.local.azurestack.external») using the specified process («Web Management Service») because the server did not respond. Make sure that the process («Web Management Service») is started on the remote computer. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.)

When I tried FTP deploy, first, it errored out on passive mode. So, I unchecked «Passive Mode» for FTP, then got following error:

2>Copying all files to temporary location below for package/publish:
2>objReleasePackagePackageTmp.
2>Publishing folder /.
2>Unable to add ‘ApplicationInsights.config’ to the Web site. An unknown WinINet error has occurred (code 12113).
2>Unable to add ‘favicon.ico’ to the Web site. An unknown WinINet error has occurred (code 12113).
2>Unable to add ‘Global.asax’ to the Web site. An unknown WinINet error has occurred (code 12113).

Any suggestions to fix it. What’s the right process to build and deploy web project to Azure Stack? I couldn’t find any instructions on deploying to Azure Stack from VS directly. There are some instructions about using VSTS, but my company is not using VSTS.

Источник

An unknown wininet error has occurred code 12113

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

I’m running ASDK with SQL and App Service providers, they seems working just fine. I successfully created a web app and was able to browser the site and open the home page. I downloaded the «publish Profile».

However, when I tried to deploy/publish a Web App application from Visual Studio 2017, got an error. From VS publish menu, I selected Import profile, then selected the previous downloaded profile.

When I selected WebDeploy, the validation fails: Cannot connect to remote computer.

Web deployment task failed. (Could not connect to the remote computer («eateamportal.scm.appservice.local.azurestack.external») using the specified process («Web Management Service») because the server did not respond. Make sure that the process («Web Management Service») is started on the remote computer. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.)

When I tried FTP deploy, first, it errored out on passive mode. So, I unchecked «Passive Mode» for FTP, then got following error:

2>Copying all files to temporary location below for package/publish:
2>objReleasePackagePackageTmp.
2>Publishing folder /.
2>Unable to add ‘ApplicationInsights.config’ to the Web site. An unknown WinINet error has occurred (code 12113).
2>Unable to add ‘favicon.ico’ to the Web site. An unknown WinINet error has occurred (code 12113).
2>Unable to add ‘Global.asax’ to the Web site. An unknown WinINet error has occurred (code 12113).

Any suggestions to fix it. What’s the right process to build and deploy web project to Azure Stack? I couldn’t find any instructions on deploying to Azure Stack from VS directly. There are some instructions about using VSTS, but my company is not using VSTS.

Источник

A rather common issue that you can experience while working with Visual Studio — be it 2010, 2013, 2015 and even 2017 — is the following error appearing on your Output window right after you try to publish your project to a remote FTP location:

Unable to add ‘file.ext’ to the Web site. An unknown WinINet error has occurred (code 12113).

This usually means that there are networking/connection issues between your Visual Studio development machine and the remote FTP server. To fix the issue you can try one of the following methods:

Enable the FTP Passive Mode

The first thing you can try is to enable FTP Passive mode on your publish settings configuration, so FTP will be able to work even behind NAT routers or dedicated firewalls. To change your publish settings, right-click to the project node in Solution Explorer, then select Publish… to access the modal window. Select your publishing template from the drop-down list, navigate to the Connection tab and activate Passive mode in the following way:

FTP Publish Error in Visual Studio - An unknown WinINet error has occurred (code 12113) - How to fix it

In most cases this will enough. However, chances are that your FTP server is unable to support Passive mode. If that’s the case, your Output window will show the following error:

Unable to add ‘file.ext’ to the Web site. FTP Passive Mode is not available.

If you get this and are unable to set your FTP server to allow Passive mode connections, keep reading: the same goes if you are unable to fix your issue this way.

Allow inbound connections for Visual Studio

The next thing you can try is to configure your built-in Windows Firewall (or any other firewall you have replaced it with) to accept inbound connections to the Visual Studio main executable file, which is the devenv.exe (usually located in
C:Program Files (x86)Microsoft Visual Studio XY.ZCommon7IDE , where XY.Z are the Visual Studio build numbers (find yours here). You can do that by creating a custom inbound rule in your firewall pointing to that file.

If you’re using Windows Firewall, here’s how you can do that:

  • Open the Control Panel by right-clicking to the bottom-left Windows icon.
  • Select the Windows Firewall icon.
  • Select Advanced Settings from the left navigation panel.
  • Add a new Inbound Rule for the devenv.exe executable file (check the full path here).
  • In the Advanced menu, activate the rule for all profiles (Public, Private and Domain) and also be sure that Allow Edge Traversal is selected in the appropriate dropdown list as in the screenshow below:

FTP Publish Error in Visual Studio - An unknown WinINet error has occurred (code 12113) - How to fix it

That should do it. However, in case you still have issues, keep reading.

Deactivate Port-Blocking Software

If you’re still getting that error — or are otherwise unable to estabilish a proper FTP connection — after the above workarounds, it probably means that there’s something in your system which is either blocking or scanning your port(s), thus preventing VS from properly communicating with the server. This is a list of the software you could try to temporarily disable in order to overcome your issue:

  • Antivirus software such as Kaspersky, BitDefender, Avira, AVG
  • Web Content filters such as Kerio Control
  • Web Protection Suites such as Symantec, McAfee and so on
  • Internet proxies and/or software TCP/IP filters
  • Windows Firewall (or other Firewall software)

Be sure to promptly reactivate them right after you find the culprit — and/or execute your upload. If the issue is still there, it could be also wise to perform a virus/malware scan, just in case.

That’s it for now: happy publishing!



Only Visible to You and DevExpress Support


Visible to All Users

Modify
support ticket and change its visibility



Urgent



Duplicate

We have closed this ticket because another page addresses its subject:

Answers approved by DevExpress Support

Disclaimer: The information provided on DevExpress.com and its affiliated web properties is provided «as is» without warranty of any kind.
Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose.
Please refer to the DevExpress.com Website Terms of Use for more information.

Recently viewed tickets

You have yet to view any tickets.

Your search criteria do not match any tickets.

A server error occurred while processing your request. Please try again at a later time.

  • Remove From My Forums
  • Question

  • I’m running ASDK with SQL and App Service providers, they seems working just fine. I successfully created a web app and was able to browser the site and open the home page. I downloaded the «publish Profile».

    However, when I tried to deploy/publish a Web App application from Visual Studio 2017, got an error. From VS publish menu, I selected Import profile, then selected the previous downloaded profile.

    When I selected WebDeploy, the validation fails:  Cannot connect to remote computer.

    Web deployment task failed. (Could not connect to the remote computer («eateamportal.scm.appservice.local.azurestack.external») using the specified process («Web Management Service») because the server did not respond. Make sure that
    the process («Web Management Service») is started on the remote computer.  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.)

    When I tried FTP deploy,  first, it errored out on passive mode. So, I unchecked «Passive Mode» for FTP, then got following error:

    2>Copying all files to temporary location below for package/publish:
    2>objReleasePackagePackageTmp.
    2>Publishing folder /…
    2>Unable to add ‘ApplicationInsights.config’ to the Web site.  An unknown WinINet error has occurred (code 12113).
    2>Unable to add ‘favicon.ico’ to the Web site.  An unknown WinINet error has occurred (code 12113).
    2>Unable to add ‘Global.asax’ to the Web site.  An unknown WinINet error has occurred (code 12113).

    Any suggestions to fix it. What’s the right process to build and deploy web project to Azure Stack?  I couldn’t find any instructions on deploying to Azure Stack from VS directly. There are some instructions about using VSTS, but my company is not using
    VSTS.

    Thanks a lot!

Answers

  • Hi,

       all the parameters are listed in the documentation:

    Parameter Required/optional Default value Description
    DirectoryTenantName Mandatory Null Azure AD tenant ID. Provide the GUID or string, for example, myazureaaddirectory.onmicrosoft.com
    TenantAzure Resource ManagerEndpoint Mandatory management.local.azurestack.external The tenant Azure Resource Manager endpoint
    AzureStackCredential Mandatory Null Azure AD administrator
    CertificateFilePath Mandatory Null Path to the identity application certificate file generated earlier
    CertificatePassword Mandatory Null Password used to protect the certificate private key
    DomainName Required local.azurestack.external Azure Stack region and domain suffix
    AdfsMachineName Optional Ignore in the case of Azure AD deployment, but required in AD FS deployment. AD FS machine name, for example, AzS-ADFS01.azurestack.local

    Can you try re-running the script and let me know the result.  Also please ensure you have configured PowerShell for use with Azure Stack — https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-powershell-configure of particular importance
    is setting the GraphAudience.

    Thanks

    Andrew


    Andrew Westgarth | Program Manager II Azure App Service Blog: http://www.andrewwestgarth.co.uk/blog Twitter: http://www.twitter.com/apwestgarth

    • Marked as answer by

      Friday, August 25, 2017 5:07 PM

  • Remove From My Forums
  • Question

  • I am facing wierd bug in VS2013. In some of my projects i am using FTP publishing as deploy method. So after migrating to VS2013 from VS2012 it just stopped working. 

    I am getting next message in output: «Unable to add ‘favicon.ico’ to the Web site.  An unknown WinINet error has occurred (code 12113).» And i see same message for every file in my project. When i am switching back to VS2012 it works fine
    again.

    Tested on another project and result stays same. Failes in VS2013 and succeeds in vs2012.

    Anybody has something similar?

    P.S. project types ASP.NET, passive mode off 

    • Moved by

      Wednesday, December 4, 2013 2:51 AM
      ASP.NET issue.

How
to: Create an Inbound Rule in Windows Firewall for the Port of Microsoft
Dynamics NAV Web Client

This
procedure describes how to modify Windows Firewall to allow inbound
communication on the port that is used by the Microsoft Dynamics NAV Web
client. By default, the port is 8080. You use this procedure after you install
the Microsoft Dynamics NAV Web Server components on a computer that is running
Windows 7 or if you change the Microsoft Dynamics NAV Web client port to a port
other than 8080.

To create an inbound rule

1.      

On the computer that is running the Microsoft Dynamics NAV Web
Server components, on the 
Start menu, choose Control Panel,
choose
System and Security, and then choose Windows Firewall.

2.      

In the navigation pane, choose Advanced
settings
.

3.      

In the Windows
Firewall with Advanced Settings
 window, in the navigation pane, choose Inbound Rules,
and then in the Actions pane, choose 
New Rule.

4.      

On the Rule Type page, choose Port,
and then choose the 
Next button.

5.      

On the Protocol
and Ports
 page,
choose 
Specific
local ports
, and then enter the port number. For example, enter 8080 for
the default port of the Microsoft Dynamics NAV Web client.

6.      

Choose the Next button.

7.      

On the Action page, choose Allow the connection,
and then choose the 
Next button.

8.      

On the Profile page, choose the profiles, and then
choose the 
Next button.

9.      

On the Name page, type a name for the rule, and then
choose the 
Finish button.

Понравилась статья? Поделить с друзьями:

Читайте также:

  • An unknown server side error occurred while processing the command
  • An unknown runtime error occurred exiting mathcad
  • An unknown network error has occurred инстаграм что делать
  • An unknown network error has occurred instagram
  • An unknown fastcgi error occurred

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии