加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

IIS 发布Webservice问题

发布时间:2020-12-16 22:34:14 所属栏目:安全 来源:网络整理
导读:1.Server Error HTTP Error 500.19 - Internal Server Error Cause:1) 没有向iis中注册.net framework(引起的原因之一:先安装了.net framework,后安装的iis) 2) 没有对IIS中所配置的site有足够的操作权限(Modify权限) Solution: 1)? 到C:WindowsMi

1.Server Error

HTTP Error 500.19 - Internal Server Error

Cause:1) 没有向iis中注册.net framework(引起的原因之一:先安装了.net framework,后安装的iis)

    2) 没有对IIS中所配置的site有足够的操作权限(Modify权限)

Solution:

    1)?到C:WindowsMicrosoft.NETFramework64v2.0.50727下,

      用命令向iis中重新注册一下.net framework:aspnet_regiis -i

    2) IIS Manager --> Sites --> 相应的site?-->?点击右键?-->?Edit Permissions?-->?Security?-->?Group or user names?-->?Edit?-->?Add?-->?添加赋予Full Control权限(实质上带有Modify的权限就可以)的Everyone用户

2.Server Error in '/' Application.

Description:?An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.?

Parser Error Message:?Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error:?

Line 9:  	</connectionStrings>
Line 10: 	<system.web>
Line 11: 		<compilation debug="true" targetFramework="4.0"/>
Line 12: 		<authentication mode="Forms">
Line 13: 			<forms loginUrl="~/Account/Login.aspx" timeout="2880"/>


Source File:?C:UsersEricSunDocumentsVisual Studio 2010WebSitesSSOAuthWebSite1web.config??? Line:?11?


Version Information:?Microsoft .NET Framework Version:2.0.50727.4963; ASP.NET Version:2.0.50727.4955

?

Cause:当前程序所运行的.NET Framework版本与IIS中相应site所设置的.NET Framework版本不相同

Solution:启动IIS Manager?-->?Application Pools?-->?选择相应的Name(site)?-->?点击右键?-->?Advanced Settings?-->?(General).NET Framwork Version?-->?由2.0更改到4.0即可

3.The test form is only available for requests from the local machine

通过编辑 Web 服务所在的 vroot 的 Web.config 文件,可以启用 HTTP GET 和 HTTP POST。以下配置同时启用了 HTTP GET 和 HTTP POST: <configuration> ??? <system.web> ??? <webServices> ??????? <protocols> ??????????? <add name="HttpGet"/> ??????????? <add name="HttpPost"/> ??????? </protocols> ??? </webServices> ??? </system.web> </configuration>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读