使用 Visual Studio 测试跨站点身份验证
是否可以将网站添加到 VS 解决方案并测试跨站点表单身份验证?
我想这会模拟 www.site.com 和 subdomain.site.com 之间的相同行为。
我对么?
是否有文章解释如何执行此操作(是的,我首先进行了搜索;-))?
Is it possible to add to websites to a VS solution and test cross-site forms-authentication?
I'd imagine this would simulate the same behavior between www.site.com and subdomain.site.com.
Am I correct?
Are there articles out there explaining how to do this (yes, I did search first ;-) )?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据我的经验,我发现使用默认的 ASP.NET 开发服务器(又名 Cassini。是的,它们是相同的...)非常困难,主要是因为应用程序/网站在不同的端口上运行并且遇到了麻烦沟通。 这两个简单的选项是:
a) 在每个项目的属性中手动设置端口,以便它们都在同一个项目上运行
;
b) 在 IIS 中进行调试(也在项目属性中设置),然后在默认端口 80。
我选择了后者,它对我有用。
From my experience, I've found this very difficult using the default ASP.NET Development Server (a.k.a. Cassini. Yes, they're the same...), mainly because the applications/web sites were running on different ports and had trouble communicating. The two trivial options are to either
a) set the port manually in each project's properties, so they all run on the same one
or
b) debug in IIS instead (which is also set in the project properties), and then get everything done on the default port 80.
I did the latter, and it worked for me.