发布Silverlight,报错 <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
2012-07-06 15:41
519 查看
在发布silverlight时,报如下错误:
Parser Error Message: 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.
Source Error:
注意 allowDefinition='MachineToApplication' beyond application level,说明你在IIS上发布的应用程序不符合要求。
重新再IIS中添加虚拟目录,勾选上“执行(如ISAP应用程序或CGI)(E)”选项即可,然后会在IIS默认网站下显示一个齿轮状的文件夹标示,将编译好的silverlight程序拷贝到该文件夹下就不会出现这个错误了。
Configuration Error
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: 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.
Source Error:
Line 21: </serviceBehaviors> Line 22: </behaviors> Line 23: <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> Line 24: </system.serviceModel> Line 25: <system.web> |
重新再IIS中添加虚拟目录,勾选上“执行(如ISAP应用程序或CGI)(E)”选项即可,然后会在IIS默认网站下显示一个齿轮状的文件夹标示,将编译好的silverlight程序拷贝到该文件夹下就不会出现这个错误了。
相关文章推荐
- ASP.NET 调试出现<%@ Application Codebehind="Global.asax.cs" Inherits="XXX.XXX.Global" Language="C#" %>
- <serviceHostingEnvironment>——之架构和特性
- 使用<add key="UnobtrusiveJavaScriptEnabled" value="true" />的坑
- C# VS2010发布问题---<compilation debug="true" targetFramework="4.0">
- ASP.NET正则实现表情替换为图片,如[hanx]替换为<img src="img/hanx.gif"/>
- asp.net<C#> web service Object moved to here.
- ASP.NET提示<authentication mode="Windows" /> 错误
- ASP.NET Core 指定环境发布(hosting environment)
- asp.net页面间传值的几种方法 表单提交 传送页面代码 复制代码 <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server
- ASP.NET页面重复加载的问题之<img src="#" />
- ASP.NET&C#学习笔录4(<authentication mode="Windows|Forms|Passport|None"> )
- ASP.NET Core 指定环境发布(hosting environment)
- <serviceHostingEnvironment>——引发的<system.serviceModel>
- <%@ Page EnableEventValidation="true" %> asp:DataList OnItemCommand=
- ASP.NET Core 指定环境发布(hosting environment)
- 配置AJAX Enabled WCF在hosting时: Showing the serviceMetadata in an ASP.NET AJAX Service
- 菜鸟关于 aps.net<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 的认识
- <serviceHostingEnvironment>——找不到类型“ITOO。ExamEvalTemplate.Service.WCFSercie.ExamEvalTemplateService”
- <Triggers><asp:PostBackTrigger ControlID="btnExportServiceAgency" /></Triggers
- asp.net/c# 用<input type="file" />实现文件上传,multipart/form-data