C# Padarn OpenNetCF System.Argument.Exception启动服务器时出现异常
当我尝试在桌面(windows 8.1)上启动服务器时,出现“OpenNetCf-参数异常” 但是,我看不出配置文件有问题。如有任何建议,将不胜感激C# Padarn OpenNetCF System.Argument.Exception启动服务器时出现异常,c#,server,opennetcf,padarn,C#,Server,Opennetcf,Padarn,当我尝试在桌面(windows 8.1)上启动服务器时,出现“OpenNetCf-参数异常” 但是,我看不出配置文件有问题。如有任何建议,将不胜感激 <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="WebServer" type="OpenNETCF.Web.Configuration.ServerCon
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="WebServer" type="OpenNETCF.Web.Configuration.ServerConfigurationHandler, opennetcf.web"/>
<section name ="httpRuntime" type="OpenNETCF.Web.Configuration.HttpRuntimeConfigurationHandler, opennetcf.web"/>
</configSections>
<WebServer
UseSsl="false"
LocalIP="0.0.0.0"
DefaultPort="80"
MaxConnections="20"
DocumentRoot=".\Inetpub\"
Logging="false">
<DefaultDocuments>
<Document>Login.aspx</Document>
</DefaultDocuments>
<VirtualDirectories />
<Cookies />
<Caching />
</WebServer>
<httpRuntime
maxRequestLength="4096"
requestLengthDiskThreshold="256" />
</configuration>
Login.aspx
您最有可能尝试使用压缩框架版本的二进制文件。虽然Padarn代码库适用于Compact Framework、Full Framework和Mono,但编译的程序集是不同的,您必须根据运行时环境使用相应的程序集
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="WebServer" type="OpenNETCF.Web.Configuration.ServerConfigurationHandler, opennetcf.web"/>
<section name ="httpRuntime" type="OpenNETCF.Web.Configuration.HttpRuntimeConfigurationHandler, opennetcf.web"/>
</configSections>
<WebServer
UseSsl="false"
LocalIP="0.0.0.0"
DefaultPort="80"
MaxConnections="20"
DocumentRoot=".\Inetpub\"
Logging="false">
<DefaultDocuments>
<Document>Login.aspx</Document>
</DefaultDocuments>
<VirtualDirectories />
<Cookies />
<Caching />
</WebServer>
<httpRuntime
maxRequestLength="4096"
requestLengthDiskThreshold="256" />
</configuration>