在服务器(webservice)中部署.asmx [英] deploy .asmx in server(webservice)

查看:480
本文介绍了在服务器(webservice)中部署.asmx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在www.domain.com/samples/service.asmx中部署.asmx,并且尝试访问href ="http://www.domain"时,在服务器中使用/ftp上传文件. com/samples/service.asmx.
显示以下错误

在应用程序级别之外使用注册为allowDefinition ="MachineToApplication''的节是错误的.此错误可能是由于未在IIS中将虚拟目录配置为应用程序引起的.

ASP.NET识别传入的用户.

身份验证模式= Windows

I tried to deploy my .asmx in www.domain.com/samples/service.asmx and i uploaded the files using /ftp in server.when i tried to access a href="http://www.domain.com/samples/service.asmx.
The following error gets displayed

It is an error to use a section registered as allowDefinition=''MachineToApplication'' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

ASP.NET to identify an incoming user.

authentication mode=Windows

how to get the webservice done.

推荐答案

为虚拟目录提供名称中不带点(.)的应用程序名称.为确保您没有命名问题,请为虚拟目录名称提供一个简短的名称,例如MK.


希望这能解决您的问题.
Give your virtual directory an Application Name that does not have dots (.) in the name. To make sure you are not having naming issues, give a short name such as MK as your Virtual Directory name.


Hope this will solve your problem.


这篇关于在服务器(webservice)中部署.asmx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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