我在windows上安装了mono develop和mono 2.6,当我编译应用程序即时获取此异常。可以在任何帮助我解决这个问题, 注册申请:编译monodevelop中的web应用程序
Host: any
Port: any
Virtual path:/
Physical path: C:\Documents and Settings\sameer\My Documents\Projects\testMonoWeb\testMonoWeb\
PP11:Mono.WebServer.XSPApplicationHost
异常读取配置文件中捕获:
System.Configuration.ConfigurationErrorsException:没有Unicode字节顺序标记。无法切换到Unicode。 (C:\ Documents and Settings \ sameer \ My Documents \ Projects \ testMonoWeb \ testMonoWeb \ web.config)---> System.Xml.XmlException:没有Unicode字节顺序标记。无法切换到Unicode。
在System.Xml.XmlTextReaderImpl.Throw(例外五)
在System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(字符串RES)
在System.Xml.XmlTextReaderImpl.CheckEncoding(字符串newEncodingName)
在System.Xml.XmlTextReaderImpl.ParseXmlDeclaration(布尔isTextDecl)
在System.Xml.XmlTextReaderImpl.Read()
在System.Xml.XmlTextReader.Read()
在System.Configuration.XmlUtil..ctor(流流,字符串名称,布尔readToFirstElement,ConfigurationSchemaErrors schemaErrors)
在System.Configuration.BaseConfigurationRecord.InitConfigFromFile ()
---内部异常堆栈跟踪的结尾---
在System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(布尔ignoreLocal)
在System.Configuration.BaseConfigurationRecord.GetSectionRecursive(字符串configKey,布尔getLkg,布尔的checkPermission,布尔getRuntimeObject,布尔requestIsHere,对象&结果,对象& resultRuntimeObject)
在System.Configuration.BaseConfigurationRecord.GetSection(字符串configKey,布尔getLkg,布尔的checkPermission)
在System.Configuration.BaseConfigurationRecord.GetSection(字符串configKey)
在System.Web.Configuration.HttpConfigurationSystem.GetApplicationSection(字符串sectionName)
在System.Web.Configuration.HttpConfigurationSystem.GetSection(字符串sectionName)
在System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(字符串configKey)
在系统。 Configuration.ConfigurationManager.GetSection(String sectionName)
at System.Configuration.ConfigurationManager。get_AppSettings()
在Mono.WebServer.XSP.Server.ApplicationSettings..ctor()
的地址给出的值是无效的:127.0.0.1
好的,我会下载notepad2.exe thnkz的输入。我将编码属性从“UTF-16”改为“UTF-8” 即<?xml version =“1.0”encoding =“utf-16”?>改为<?xml version =“1.0”encoding =“ utf-8“?> 现在这个问题已经解决, – sameer 2010-01-07 06:58:14