FineUI 官方论坛
标题:
[已解决]系统本地运行正常,发布到服务器有,发生F未定...
[打印本页]
作者:
nghf
时间:
2014-11-12 18:41
标题:
[已解决]系统本地运行正常,发布到服务器有,发生F未定...
本帖最后由 nghf 于 2014-11-13 11:01 编辑
服务器IIS7.0
web.config如下:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
<section name="FineUIPro" type="FineUIPro.ConfigSection, FineUIPro" requirePermission="false" />
</configSections>
<FineUIPro Theme="Redmond" DebugMode="true" FormLabelAlign="Right" />
<appSettings>
<add key="SqlServerConnString" value="Data Source=127.0.0.1,2433;Initial Catalog=aaa
ersist Security Info=True;User ID=aa
assword=aaa" />
<add key="TitleString" value="" />
<add key="
rojectInfo" value="" />
</appSettings>
<connectionStrings />
<system.web>
<webServices>
<protocols>
<add name="HttpPost" />
<add name="HttpGet" />
</protocols>
</webServices>
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="60" />
<!-- Net3.5以上的项目,一定要为pages节点加上这两个属性:controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" -->
<pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID" validateRequest="false">
<controls>
<add assembly="FineUIPro" namespace="FineUIPro" tagPrefix="f" />
</controls>
</pages>
<httpModules>
<add name="FineUIProScriptModule" type="FineUIPro.ScriptModule, FineUIPro" />
</httpModules>
<httpHandlers>
<add verb="GET" path="res.axd" type="FineUIPro.ResourceHandler, FineUIPro" validate="false" />
</httpHandlers>
<httpRuntime requestValidationMode="2.0" maxRequestLength="1024000 " />
<customErrors mode="Off" />
<compilation debug="true" defaultLanguage="c#" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
</assemblies>
</compilation>
<machineKey validationKey="760D2E511628F7C4E60F246CF55E35C247923804A88A84654B20C8641FC930B5B2B8D77EDB785C2B4AC74496F7A9E68EF27C2CD6A86241B86AB51703DBA21890" decryptionKey="835E3A1B6B5FC1521DAD6A598FA01D8A3D0C5FEDF72BBC5E13D40D1F674AAB6F" validation="SHA1" decryption="AES" />
</system.web>
<system.webServer>
<modules>
<add name="FineUIScriptModule" type="FineUI.ScriptModule, FineUI"/>
</modules>
<handlers>
<add name="FineUIResAxd" verb="GET" path="res.axd" type="FineUI.ResourceHandler, FineUI" />
</handlers>
</system.webServer>
</configuration>
作者:
nghf
时间:
2014-11-13 10:49
已解决,IIS7.0集成模式,需要配置system.webServer节;经典模式不需要;
经典模式下,我是先删除system.webServer节,然后就可以了;
再把system.webServer节粘贴回来,切换到集成模式,也可以了。
再直接切换到经典模式,就算有system.webServer节,也可以了。
具体问题在哪,还是不明白!
配置好的节如下:
<system.web>
<webServices>
<protocols>
<add name="HttpPost" />
<add name="HttpGet" />
</protocols>
</webServices>
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="60" />
<!-- Net3.5以上的项目,一定要为pages节点加上这两个属性:controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" -->
<pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID" validateRequest="false">
<controls>
<add assembly="FineUIPro" namespace="FineUIPro" tagPrefix="f" />
</controls>
</pages>
<httpModules>
<add name="FineUIProScriptModule" type="FineUIPro.ScriptModule, FineUIPro" />
</httpModules>
<httpHandlers>
<add verb="GET" path="res.axd" type="FineUIPro.ResourceHandler, FineUIPro" validate="false" />
</httpHandlers>
<httpRuntime requestValidationMode="4.0" maxRequestLength="1024000 " />
<customErrors mode="Off" />
<compilation debug="true" defaultLanguage="c#" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
</assemblies>
</compilation>
<machineKey validationKey="760D2E511628F7C4E60F246CF55E35C247923804A88A84654B20C8641FC930B5B2B8D77EDB785C2B4AC74496F7A9E68EF27C2CD6A86241B86AB51703DBA21890" decryptionKey="835E3A1B6B5FC1521DAD6A598FA01D8A3D0C5FEDF72BBC5E13D40D1F674AAB6F" validation="SHA1" decryption="AES" />
<identity impersonate="true" />
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<add name="FineUIProScriptModule" type="FineUIPro.ScriptModule, FineUIPro" />
</modules>
<handlers>
<add name="FineUIProResourceHandler" verb="GET" path="res.axd" type="FineUIPro.ResourceHandler, FineUIPro" />
</handlers>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true" />
<defaultDocument>
<files>
<remove value="index.htm" />
<remove value="index.html" />
<remove value="iisstart.htm" />
</files>
</defaultDocument>
</system.webServer>
欢迎光临 FineUI 官方论坛 (https://fineui.com/bbs/)
Powered by Discuz! X3.4