WebConfig.xml 配置文件问题
<?xml version="1.0"?><configuration><configSections> </configSections>
<connectionStrings/>
<appSettings>
<!--数据库连接是否加密(否)-->
<add key="ConStringEncrypt" value="false"/>
<!--是否为经销商用户(开头的值)-->
<add key="IsNormalUser" value="1"/>
<!--计算库存时应排除的仓库(仓库编码),多个仓库以","分隔-->
<add key="cWhCode" value="005,009,010,011"/>
<!--此为自动生成单号接口配置,现阶段没有使用
<add key ="GetCodeAssemblyName" value="UF.GetCode"/>
<add key ="GetCodeClassName" value="UF.GetCode.DefaultGetCode"/>
-->
<!--数据库连接字符串-->
<add key="ConnectionString" value="Data Source=.;Initial Catalog={0};user id=sa;pwd=ufida"/>
<!-- 这里是我修改过的-->
<!--<add key="ConnectionString" value="Data Source=.;Initial Catalog=UFDATA_002_2009;Integrated Security=True;"/>-->
<!-- 这里修改过了 -->
<add key="InitialCatalog" value="UFSYSTEM"/>
<add key="CrystalImageCleaner-AutoStart" value="true"/>
<add key="CrystalImageCleaner-Sleep" value="60000"/>
<add key="CrystalImageCleaner-Age" value="120000"/>
</appSettings>
<!--此块为WebServices上传附件设置超时
<system.web>
<httpRuntime maxRequestLength="102400" executionTimeout="90"/>
</system.web>
-->
<!--此块为网上销售系统独用,WebServices不用-->
<location inheritInChildApplications="false">
<system.web>
<sessionState timeout="100"/>
<authentication mode="Forms">
<forms name=".AppNameAuth" loginUrl="Login.aspx" defaultUrl="Default.aspx" protection="All" timeout="60" path="/"/>
</authentication>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
<xhtmlConformance mode="Strict"/>
<webServices>
<protocols>
<add name="HttpPost"/>
</protocols>
</webServices>
<customErrors mode="Off" defaultRedirect="Error.aspx"/>
<pages>
</pages>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
<add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>
<add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=29ac1a93ec063d92"></add>
<add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=29ac1a93ec063d92"></add>
<add verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=29ac1a93ec063d92" validate="false"/>
<add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>
</httpHandlers>
<httpModules>
<add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</system.web>
</location>
<location path="Images">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
<location path="css">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
<location path="WS">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
<location path="ImageCheckCode.aspx">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
<location path="Note/UploadFile">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
<telerik.web.ui>
<radScheduler defaultAppointmentProvider="Integrated">
<appointmentProviders>
<add name="ReadOnlyXmlSchedulerProvider" type="Telerik.Web.UI.XmlSchedulerProvider" fileName="~/App_Data/Appointments.xml" persistChanges="false"/>
<add name="ReadOnlySchedulerData" type="Telerik.Web.Examples.Scheduler.MyDbSchedulerProvider" connectionStringName="TelerikConnectionString" persistChanges="false"/>
</appointmentProviders>
</radScheduler>
</telerik.web.ui>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<runtime>
</runtime>
</handlers>
<validation validateIntegratedModeConfiguration="false"/>
</system.webServer>
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="ComboBoxWcfServiceAspNetAjaxBehavior">
<enableWebScript/>
</behavior>
<behavior name="TreeViewWcfServiceAspNetAjaxBehavior">
<enableWebScript/>
</behavior>
<behavior name="MenuWcfServiceAspNetAjaxBehavior">
<enableWebScript/>
</behavior>
<behavior name="GridWcfServiceAspNetAjaxBehavior">
<enableWebScript/>
</behavior>
<behavior name="SchedulerWcfServiceAspNetAjaxBehavior">
<enableWebScript/>
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
<services>
<service name="ComboBoxWcfService">
<endpoint address="" behaviorConfiguration="ComboBoxWcfServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="ComboBoxWcfService"/>
</service>
<service name="TreeViewWcfService">
<endpoint address="" behaviorConfiguration="TreeViewWcfServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="TreeViewWcfService"/>
</service>
<service name="MenuWcfService">
<endpoint address="" behaviorConfiguration="MenuWcfServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="MenuWcfService"/>
</service>
<service name="GridWcfService">
<endpoint address="" behaviorConfiguration="GridWcfServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="GridWcfService"/>
</service>
<service name="GridMasterDetailsService">
<endpoint address="" behaviorConfiguration="GridWcfServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="GridMasterDetailsService"/>
</service>
<service name="SchedulerWcfService">
<endpoint address="" behaviorConfiguration="SchedulerWcfServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="SchedulerWcfService"/></service>
</services>
</system.serviceModel>
<system.web>
<!--<compilation debug="true"/>--></system.web></configuration>
红色的那里注释掉运行不出问题,运行了调式出问题
不注释掉运行出问题,