你好,我的AppBox升级为3.3.0在本地编译没有问题能正常登录使用。我又击AppBox点“发布”,发布到一目录里,然后拷贝“icon”和“extjs”到发布目录,然后部署到WINDOWS2003服务器IIS6.0后出现下问题: Web.config文件如下: <?xml version="1.0"?> <configuration> <configSections> <section name="FineUI" type="FineUI.ConfigSection, FineUI" requirePermission="false"/> </configSections> <appSettings/> <connectionStrings> <clear /> <add name="Default" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=AppBox;Integrated Security=True;" providerName="System.Data.SqlClient" /> </connectionStrings> <!-- 可用的配置项(这里列的都是默认值): Language="zh_CN" AjaxTimeout="60" EnableAjax="true" Theme="blue" FormMessageTarget="qtip" FormOffsetRight="20" FormLabelWidth="100" FormLabelSeparator=":" IconBasePath="~/icon" EnableAjaxLoading="true" AjaxLoadingType="default" --> <FineUI EnableBigFont="true" DebugMode="true" AjaxLoadingType="Default"/> <system.web> <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"> <controls> <add assembly="FineUI" namespace="FineUI" tagPrefix="x"/> </controls> </pages> <httpModules> <add name="FineUIScriptModule" type="FineUI.ScriptModule, FineUI"/> </httpModules> <httpHandlers> <add verb="GET" path="res.axd" type="FineUI.ResourceHandler, FineUI" validate="false"/> </httpHandlers> <httpRuntime maxRequestLength="102400 "/> <customErrors mode="Off"/> <compilation debug="true" targetFramework="4.0"/> <!-- 通过 <authentication> 节可以配置 ASP.NET 用来识别进入用户的安全身份验证模式。 --> <authentication mode="Forms"> <forms name=".ASPXFORMSAUTH" loginUrl="~/login.aspx" timeout="120" defaultUrl="~/main.aspx" protection="All" path="/"/> </authentication> <authorization> <deny users="?"/> </authorization> </system.web> <location path="res.axd"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> <location path="icon"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> <location path="res"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> <location path="extjs"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> </configuration> 在网上搜索,根据网友帖子,在Web.config文件里加入下代码: <system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <providerOption name="CompilerVersion" value="v4.0"/> <providerOption name="WarnAsError" value="false"/> </compiler> </compilers> </system.codedom> 却又出现了下问题: 服务器上的发布目录和IIS配置如下图: 注:三石先生提供的空项目EmptyProjectNet40发布到IIS6.0里也出现同样的问题。 麻烦各位帮我看看呀,谢谢了! |