![]() |
1
1
[仅供参考,问题1通常是 服务器故障.com ,我也会回答,因为它是捆绑的…] 解析1),即允许匿名访问网站 - Open the IIS management console Either from Computer management Console, in 'Aervices and Applications' + 'Internet Information Service' or from the control panel + Administrative tools + 'Internet Information Service' - On right pane, navigate to 'Web Sites' + 'Default Web Site' - Right Click, select 'Properties' in menu. This brings a squarish dialog with 2 rows of 4 tabs each at the top. - Select 'Directory Security' tab - then in the top group named 'Anonymous Access and authentication control', click 'Edit' - The dialog that comes up is where you need to check the Anonymous access, and enter the account credentials for the account which IIS will use, on behalf of the anonymous users. I recommend you create one account for this purpose, rather than using yours or some other actual user. 现在,考虑2)即部署web服务本身 我认为您只需要将asmx文件复制到希望运行web服务的位置,并将二进制文件(dll)复制到bin目录。换句话说,它就像发布一个常规的.net web应用程序一样,只是文件(在uri中引用)名为*.asmx。(也可以将此文件设为目录的默认文件)。 这当然意味着.NET将安装在这台机器上,ADN允许工作(请参阅“Web属性”对话框的“.NET应用程序”选项卡)。 最后一点建议:您可能希望将此webservices安装在其自己的网站(或web应用程序)和目录中。有关此类任务的详细信息,请参阅serverfault.com。有很多设置,其中一些设置会影响安全性或性能--(让专业人士告诉您) |
![]() |
Ali Jebali · ASP。网络核心力量使用Brotli 1 年前 |
![]() |
Ahmad · 如何配置IIS以承载应用程序而不中断相对路径? 2 年前 |
![]() |
Crust3 · IIS虚拟目录和内容范围标头 2 年前 |