将webservices放在我网站的子文件夹中 [英] put webservices in a sub folder within my website

查看:88
本文介绍了将webservices放在我网站的子文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。我在家里使用带有IIS 7的Server 2008在我的电脑上主持一个asp.net网站。该网站使用ASP成员资格允许我限制我在网站上允许的用户,包括每个用户可以使用的页面。前一段时间我开始使用使用Visual Basic 2008创建的webservices,它允许我的一些VB程序与我的服务器通信。问题是我只能将服务放在我的网站的根目录中,这使得它看起来不整洁,如果我将服务放在网站中创建的子文件夹中并尝试与它通信以使用webbrowser进行测试,即: www.mysite / myservices / service1.svr我收到错误,因为它恢复到网站根目录下的登录页面。有没有办法让子文件夹与主网站的安全性分开,所以我可以从服务请求信息而不首先恢复到我的登录页面?

解决方案

< blockquote>在你的主网站上你可以访问子文件夹/页面的设置

检查以下答案

表格身份验证:允许匿名访问某些页面。 [ ^ ]


Hi everyone.I host an asp.net 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放在我网站的子文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆