大家好。我在家里使用带有IIS 7的Server 2008在我的电脑上主持一个asp网站。该网站使用ASP成员资格允许我限制我在网站上允许的用户,包括每个用户可以使用的页面。前一段时间我开始使用使用Visual Basic 2008创建的webservices,它允许我的一些VB程序与我的服务器通信。问题是我只能将服务放在我的网站的根目录中,这使得它看起来不整洁,如果我将服务放在网站中创建的子文件夹中并尝试与它通信以使用webbrowser进行测试,即: www.mysite / myservices / service1.svr我收到错误,因为它恢复到网站根目录下的登录页面。有没有办法让子文件夹与主网站的安全性分开,所以我可以从服务请求信息而不首先恢复到我的登录页面?
解决方案在你的主网站上你可以访问子文件夹/页面的设置 检查以下答案 表格身份验证:允许匿名访问某些页面。 [ ^ ]
Hi everyone.I host an asp website on my pc at home using Server 2008 with IIS 7. The website uses ASP Membership allowing me to restrict what users I allow on the website which includes what pages are available to each user. Awhile ago I started using webservices created using Visual Basic 2008 which allow some of my VB programs to comunicate with my server. The problem is I can only put the services in the root of my website which is starting to make it look untidy, If I put the service in a sub folder created in the website and try communicating with it to test by using a webbrowser ie : www.mysite/myservices/service1.svr I get errors because it reverts back to my login page within the root of the website. Is there a way of making the sub folder seperate from the security of the main website, so I can request information from the service without it reverting to my login page first?
解决方案 In your main web site you can the access settings to sub folder/pages check below answer Forms Authentication: Allow anonymous access to some pages.[^]更多推荐
将webservices放在我网站的子文件夹中
发布评论