当我尝试在桌面上启动服务器时,我得到了一个"OpenNetCf参数异常“(Windows8.1)
Srvr = new OpenNETCF.Web.Server.WebServer();
Srvr.Start();但是,我看不出配置文件有什么问题。任何建议都将不胜感激。
<?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>发布于 2015-02-21 01:55:20
您很可能正在尝试使用二进制文件的Compact Framework版本。虽然Padarn代码库适用于Compact Framework、Full Framework和Mono,但编译后的程序集是不同的,您必须根据您的运行时环境使用适当的程序集。
https://stackoverflow.com/questions/28275692
复制相似问题