HTTP 错误 403 - 禁止
当我开始在 asp.net3.5 上调试时。浏览器显示以下消息
*“/attn-web”应用程序中的服务器错误。
HTTP 错误 403 - 禁止。
版本信息:ASP.NET 开发服务器 9.0.0.0*
When I start Debugging on asp.net3.5 . Browser display bellow message
*Server Error in '/attn-web' Application.
HTTP Error 403 - Forbidden.
Version Information: ASP.NET Development Server 9.0.0.0*
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
这可能是 NTLM 身份验证的问题。
It might be an issue with NTLM Authentication.
如果您使用的是 Vista 或 Windows 7,请尝试以管理员身份运行 Visual Studio(右键单击 EXE 并选择“以管理员身份运行”),因为这可能是一些安全/权限问题。
If you have Vista or Windows 7 try running the Visual Studio as administrator (right click the EXE and choose "Run as administrator") as it might be some security/permissions issue.
我遇到了以下问题,在尝试他们的解决方案后,我收到了相同的错误消息
WCFTestClient HTTP 请求未经客户端身份验证方案“匿名”的授权(我的服务是非 WCF 服务)
HTTP 请求未经客户端身份验证方案“Ntlm”授权
,最终从 此处,在“服务器”部分中,取消选中“NTLM 身份验证”(项目属性 -> Web -> 服务器)
I was getting following issues, after trying their solutions i got this same error message
WCFTestClient The HTTP request is unauthorized with client authentication scheme 'Anonymous' (my service is a non-WCF service)
The HTTP request is unauthorized with client authentication scheme 'Ntlm'
and finally got the solution from here which is In the Server section, uncheck NTLM Authentication (Project Properties -> Web -> Servers)
..
尝试查看日志文件(Win+F,选择文件夹 /Windows 并指定查找新文件) 和“事件” Viewer'(按 Win,然后输入:事件查看器)
PS:没什么私人的,但你的问题确实不清楚。
..
Try to look at log files (Win+F, select folder /Windows and specify to find fresh files) and 'Event Viewer' (Press Win, then type: Event Viewer)
P.S.: Nothing personal, but your question is really unclear.
这也发生在我身上。我已经移动了该项目并再次获取它。事实证明,Visual Studio 将虚拟目录名称绑定为文件的源路径,移动(物理)目录会使 IIS 将虚拟目录调整到新路径。 Visual Studio 仍然使用虚拟目录名称,这会导致冲突。
在 IIS 中删除虚拟目录使一切恢复正常。
It happened to me too. I had moved the project and fetched it again. It turns out that Visual Studio binds the virtual directory name as the source path for the files, and moving a (physical) directory makes IIS adjust the virtual directory to the new path. Visual Studio uses the virtual directory name still, and that causes a conflict.
Deleting in IIS the virtual directory made things work again.
我也有同样的问题。我就是这样解决的。我想这可能对你有帮助。
1. 转到“开始”,然后键入 IIS(Internet 信息服务)并按 Enter
2. 右侧有“连接”
3. 前往“网站”-> “默认网站”位于连接内
4. 双击“默认网站”
5. 在功能视图中双击“目录浏览”
6. 右侧有“启用”可用时的操作,双击该操作(否则该功能已全部可用)
7.然后返回上一页
8. 双击“默认文档”
9. 在那里您可以看到默认文档列表
10. 如果您的网站默认文档不可用,您可以通过单击右侧的“添加”来添加它,然后输入默认文档的名称。
I also had the same problem. This is how I solved it. I think this may be helpful for you.
1. Go to "start" and then type IIS(Internet Information Services) and hit Enter
2. In the right side there are "connections"
3. Go to "sites"-> "Default Web Site" which is located inside the connections
4. Double click the "Default website"
5. There in the features view double click the "Directory Browsing"
6. In the right side there are the actions if "Enable" is available double click on that (Otherwise that feature is all ready available)
7. Then go back to the previous page
8. Double click on "Default Document"
9. There you can see a list of default documents
10. If your default document for the website is not available you can add it by clicking the "add" in the right side and there type the name of your default document.
您只需更改正在使用的特定端口:
特性。
其他任何东西,例如 44444
希望这是您问题的解决方案
you just need to change the specific port you are using:
Properties.
anything else e.g. 44444
hope this is the solution for your problem