将webservices放在我网站的子文件夹中

编程入门 行业动态 更新时间:2024-10-27 18:21:38
本文介绍了将webservices放在我网站的子文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好。我在家里使用带有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放在我网站的子文件夹中

本文发布于:2023-11-14 16:45:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1587994.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:在我   文件   夹中   网站   webservices

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!