[Mono-list] Mono + VB.NET?
Will Murnane
will.murnane at gmail.com
Fri Jan 12 14:41:18 EST 2007
> I think you'll have to use xsp2 (which references 2.0 libraries) instead of
> xsp (which references 1.0).
Thanks for the suggestion, Rolf. However, with xsp2 I get a different error:
$ xsp2
Listening on port: 8080 (non-secure)
Listening on address: 0.0.0.0
Root directory: /wwwroot
Hit Return to stop the server.
System.TypeInitializationException: An exception was thrown by the
type initializer for Mono.WebServer.XSPWorkerRequest
Server stack trace:
at <0x00000> <unknown method>
at Mono.WebServer.XSPApplicationHost.ProcessRequest (Int32 reqId,
Int64 localEPAddr, Int32 localEPPort, Int64 remoteEPAdds, Int32
remoteEPPort, System.String verb, System.String path, System.String
queryString, System.String protocol, System.Byte[] inputBuffer,
System.String redirect, IntPtr socket, Mono.WebServer.SslInformations
ssl) [0x00000]
at (wrapper remoting-invoke-with-check)
Mono.WebServer.XSPApplicationHost:ProcessRequest
(int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations)
at (wrapper xdomain-dispatch)
Mono.WebServer.XSPApplicationHost:ProcessRequest
(object,byte[]&,byte[]&,int,long,int,long,int,string,string,string,string,byte[],string)
Exception rethrown at [0]:
---> System.Configuration.ConfigurationErrorsException: Unrecognized
configuration section <identity> () (/usr/etc/mono/2.0/machine.config
line 7)
at System.Configuration.ConfigInfo.ThrowException (System.String
text, System.Xml.XmlTextReader reader) [0x00000]
at System.Configuration.SectionGroupInfo.ReadContent
(System.Xml.XmlTextReader reader, System.Configuration.Configuration
config, Boolean overrideAllowed, Boolean root) [0x00000]
at System.Configuration.SectionGroupInfo.ReadData
(System.Configuration.Configuration config, System.Xml.XmlTextReader
reader, Boolean overrideAllowed) [0x00000]
at System.Configuration.SectionGroupInfo.ReadContent
(System.Xml.XmlTextReader reader, System.Configuration.Configuration
config, Boolean overrideAllowed, Boolean root) [0x00000]
at System.Configuration.SectionGroupInfo.ReadRootData
(System.Xml.XmlTextReader reader, System.Configuration.Configuration
config, Boolean overrideAllowed) [0x00000]
at System.Configuration.Configuration.ReadConfigFile
(System.Xml.XmlTextReader reader, System.String fileName) [0x00000]
at System.Configuration.Configuration.Load () [0x00000]
at System.Configuration.Configuration.Init (IConfigSystem system,
System.String configPath, System.Configuration.Configuration parent)
[0x00000]
at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem system,
System.String locationSubPath) [0x00000]
at System.Configuration.InternalConfigurationFactory.Create
(System.Type typeConfigHost, System.Object[]
hostInitConfigurationParams) [0x00000]
at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal
(ConfigurationUserLevel userLevel, System.Reflection.Assembly
calling_assembly, System.String exePath) [0x00000]
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection
(System.String configKey) [0x00000]
at System.Configuration.ConfigurationManager.GetSection
(System.String sectionName) [0x00000]
at System.Configuration.ConfigurationManager.get_AppSettings () [0x00000]
at Mono.WebServer.XSPWorkerRequest..cctor () [0x00000] --- End of
inner exception stack trace ---
at (wrapper xdomain-invoke)
Mono.WebServer.XSPApplicationHost:ProcessRequest
(int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations)
at (wrapper remoting-invoke-with-check)
Mono.WebServer.XSPApplicationHost:ProcessRequest
(int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations)
at Mono.WebServer.XSPWorker.RunInternal (System.Object state) [0x00000]
In the first couple lines is a strange error -
"System.Configuration.ConfigurationErrorsException: Unrecognized
configuration section <identity> () (/usr/etc/mono/2.0/machine.config
line 7)"
Looking at that file, there's no "identity" section on line 7 or elsewhere -
grep -i identity /usr/etc/mono/2.0/machine.config
In my Windows dev environment, though,
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config
does contain an "identity" section:
<section name="identity"
type="System.Web.Configuration.IdentitySection, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Is this something missing from mono, or something misconfigured on my end?
TIA,
Will
More information about the Mono-list
mailing list