gpt4 book ai didi

wcf - 403 - 将类库添加到 Azure 项目上的 WCF Web 角色时出现禁止错误

转载 作者:行者123 更新时间:2023-12-03 04:39:40 25 4
gpt4 key购买 nike

以管理员身份打开VS,我创建一个解决方案,添加新的Cloud Azure项目,然后选择WCF服务Web角色,然后运行它,一切都很好,我可以通过浏览器很好地访问默认服务,但是,当添加新的空白类库时作为解决方案的新 DAL 项目并运行它,我收到 403 错误,提示“您无权使用您提供的凭据查看此目录或页面。”

出了什么问题?

谢谢

P.S(无论添加或不添加 EMDX 以及对类库的适当数据库访问权限,都会产生一些结果)

最佳答案

我试图在这里回答https://stackoverflow.com/a/9411719/182371 :

As for the Access Denied error:

  • it could be just an IIS default setting to disable browsing. To resolve that, just navigate to that web site in IIS, find Directory Browsing icon, and press Enable. You will at least see the files inside that directory.

  • Also try not only 127.0.0.1:81, buta specific document inside that folder, like 127.0.0.1:81/Default.aspx

  • Take into account the fact that there's sometimes some mess with the ports. You see that in the error message it's port 82, but in your browser it's port 81. So make sure you're using the right port. Or, even better, in your service definition try to use some non-standard port for this to avoid remapping.

关于wcf - 403 - 将类库添加到 Azure 项目上的 WCF Web 角色时出现禁止错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7972383/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com