Visual studio 如何在IIS上从Visual Studio托管ASMX?

Visual studio 如何在IIS上从Visual Studio托管ASMX?,visual-studio,iis,asmx,Visual Studio,Iis,Asmx,我在Visual Studio中创建了一个功能齐全的web服务,因为我能够通过localhost对其进行测试。我曾尝试在visual Studio中根据一些随机指南发布它,但每次尝试都会出错 这是我最近犯的错误 Error 3 Web deployment task failed. (The specified credentials cannot be used with the authentication scheme 'Basic'.) The specified creden

我在Visual Studio中创建了一个功能齐全的web服务,因为我能够通过localhost对其进行测试。我曾尝试在visual Studio中根据一些随机指南发布它,但每次尝试都会出错

这是我最近犯的错误

Error   3   Web deployment task failed. (The specified credentials cannot be used with the authentication scheme 'Basic'.)

The specified credentials cannot be used with the authentication scheme 'Basic'.
Default credentials cannot be supplied for the Basic authentication scheme.
Parameter name: authType        0   0   RacoCS

我以前的错误与我将尝试发布的URL有关。

您尝试使用哪种发布方法。Visual Studio允许您以各种方式发布web应用程序。不太可能出现问题的是,先打开文件系统,然后在IIS中手动创建一个网站,指向发布文件所在的目录。祝你好运

我没有意识到这一点:S。我实际上正在尝试使用IIS创建网站。我试图通过使用project所在的目录在IIS中创建一个网站,但没有成功。