类型初始值设定项引发异常----小白,我要疯了啊

我就是小石头 2014-04-28 11:03:29
“HCBN.MST.BIZ.EVALUATOR”的类型初始值设定项引发异常。
我从网上也看了一些,1.配置文件有问题 2.类的静态方法出错。
可是自己是在找不到那个地方有问题。
请各位大大大显身手!!!
下面是配置文件。
...全文
706 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
我就是小石头 2014-04-28
  • 打赏
  • 举报
回复
引用 3 楼 qq931121347 的回复:
韩文看不懂 不过应该是类的问题
可是也不会同样的代码造成内网和外网不一样的结果啊
淡淡的活着 2014-04-28
  • 打赏
  • 举报
回复
韩文看不懂 不过应该是类的问题
我就是小石头 2014-04-28
  • 打赏
  • 举报
回复
<!-- <authentication> 섹션에서는 ASP.NET에서 사용되는 보안 인증 모드의 구성을 설정하여 들어오는 사용자를 식별할 수 있습니다. --> <!-- <authentication mode="Windows"> </authentication> --> <!-- <authentication mode="Forms"> <forms loginUrl="~/Common/Login.aspx" protection="All" timeout="3600"/> </authentication> --> <authorization> <allow users="*" /> <deny users="?" /> </authorization> <!-- <customErrors> 섹션에서는 요청을 실행하는 동안 처리되지 않은 오류가 발생하는 경우 수행할 작업을 구성할 수 있습니다. 특히 이 섹션에서는 개발자가 오류 스택 추적 대신 html 오류 페이지가 표시되도록 구성할 수 있습니다. --> <customErrors mode="Off" defaultRedirect="Common/Error.aspx"> <error statusCode="403" redirect="NoAccess.htm" /> <error statusCode="404" redirect="Common/Error.aspx" /> </customErrors> <trace enabled="false" localOnly="true" pageOutput="false" requestLimit="10" traceMode="SortByTime" /> <httpRuntime executionTimeout="3600" maxRequestLength="1048576" /> <pages validateRequest="true" enableEventValidation="false" theme="Default"> <!-- enableViewState="true" enableViewStateMac="true" --> <controls> <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add tagPrefix="act" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" /> <add tagPrefix="ajaxtoolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" /> <add tagPrefix="FarPoint" namespace="FarPoint.Web.Spread" assembly="FarPoint.Web.Spread" /> <add tagPrefix="aspx" namespace="HCBN.ApplicationFramework" assembly="HCBN.ApplicationFramework" /> <add tagPrefix="aspx" tagName="AgentSelectPopup" src="~/Resources/UserControls/AgentSelectPopup.ascx" /> <add tagPrefix="aspx" tagName="CorpDiv" src="~/Resources/UserControls/ucCorp.ascx" /> </controls> </pages> <httpHandlers> <remove verb="*" path="*.asmx" /> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <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 path="ChartImg.axd" verb="GET,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" /> <add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2" /> </httpHandlers> <httpModules> <add name="HttpsModule" type="HCBN.ApplicationFramework.HttpsModule,HCBN.ApplicationFramework" /> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> </httpModules> <!-- 웹서비스를 외부에서도 호출해서 컨트롤에 값을 입력해서 테스트를 하고자 할 때 사용한다. --> <webServices> <protocols> <add name="HttpGet" /> </protocols> </webServices> <machineKey decryptionKey="E4E549F95FF5C55F38D1F61C0A5E682564A78BA4D729368E" validationKey="B3CA1E184FA8C4272AEEA20B69FE8239F6CCF2BBAE30884FC9CFF771B1BB744F389F01AACB23461F90ACD9FB8B8D54DEF3415F5CDA4BA043BCC7574A69220B56" /> <!--<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false" timeout="120"/>--> </system.web> <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="v3.5" /> <providerOption name="WarnAsError" value="false" /> </compiler> </compilers> </system.codedom> <!-- IIS(Internet Information Services) 7.0에서 ASP.NET AJAX를 실행하려면 system.webServer 섹션이 필요합니다. 이전 버전의 IIS에서는 필요하지 않습니다. --> <system.web.extensions> <scripting> <webServices> <!-- Uncomment this line to customize maxJsonLength and add a custom converter --> <jsonSerialization maxJsonLength="500000"> <converters> <add name="DataTableConverter" type="Skcc.Web.Script.Serialization.DataTableConverter, Skcc.Web.Extensions, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d8562a1c4a42c0a1" /> </converters> </jsonSerialization> <!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. --> <authenticationService enabled="true" /> <!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and writeAccessProperties attributes. --> </webServices> <!-- <scriptResourceHandler enableCompression="true" enableCaching="true" /> --> </scripting> </system.web.extensions> <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <modules> <remove name="ScriptModule" /> <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> </modules> <handlers> <remove name="WebServiceHandlerFactory-Integrated" /> <remove name="ScriptHandlerFactory" /> <remove name="ScriptHandlerFactoryAppServices" /> <remove name="ScriptResource" /> <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add name="ChartImageHandler" preCondition="integratedMode" verb="*" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode" /></handlers> <security> <!-- 쿼리 스트링 크기 설정... //--> <requestFiltering> <requestLimits maxAllowedContentLength="300000000" maxUrl="26000" maxQueryString="250000" /> </requestFiltering> </security> <defaultDocument> <files> <clear /> <add value="login.aspx" /> <add value="Manage.aspx" /> <add value="default.aspx" /> <add value="Default.htm" /> <add value="Default.asp" /> <add value="index.htm" /> <add value="index.html" /> <add value="iisstart.htm" /> </files> </defaultDocument> <httpRedirect enabled="false" destination="" /> </system.webServer> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="AjaxControlToolKit" publicKeyToken="28f01b0e84b6d53e" /> <bindingRedirect oldVersion="1.0.0.0-3.0.20229.20843" newVersion="3.0.31106.0" /> </dependentAssembly> </assemblyBinding> </runtime> <system.net> <mailSettings> <smtp> <network host="localhost" /> </smtp> </mailSettings> </system.net> </configuration>
我就是小石头 2014-04-28
  • 打赏
  • 举报
回复
<?xml version="1.0" encoding="UTF-8"?> <configuration> <configSections> <!-- NEXCORE External Configuration Setting --> <section name="enterpriseLibrary.ConfigurationSource" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection, Microsoft.Practices.EnterpriseLibrary.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> <!-- Logging Configuration --> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" /> <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> </sectionGroup> </sectionGroup> </sectionGroup> </configSections> <!-- NEXCORE External Configuration Setting --> <enterpriseLibrary.ConfigurationSource selectedSource="NexcoreConfiguration"> <sources> <add name="NexcoreConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.FileConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" filePath="./Resources/ConfigFiles/NEXCORE.config" /> </sources> </enterpriseLibrary.ConfigurationSource> <appSettings> <add key="test" value="1000" /> <add key="ChartImageHandler" value="storage=file;timeout=180;url=~/tempImages/;deleteAfterServicing=false; webDevServerUseConfigSettings=false" /> <add key="CrystalImageCleaner-AutoStart" value="true" /> <add key="CrystalImageCleaner-Sleep" value="60000" /> <add key="CrystalImageCleaner-Age" value="120000" /> </appSettings> <system.web> <sessionState mode="StateServer" stateConnectionString="tcpip=localhost:42424" stateNetworkTimeout="600" timeout="120" /> <identity impersonate="true" /> <!--userName="hcbn" password="hcbn000" /--> <!-- 컴파일된 페이지에 디버깅 기호를 삽입하려면 compilation debug="true"로 설정하십시오. 이렇게 하면 성능에 영향을 주므로 개발하는 동안에만 이 값을 true로 설정하십시오. --> <compilation debug="true"> <assemblies> <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="Skcc.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=D8562A1C4A42C0A1" /> <add assembly="Skcc.Data, Version=3.0.0.0, Culture=neutral, PublicKeyToken=D8562A1C4A42C0A1" /> <add assembly="Skcc.Transactions, Version=3.0.0.0, Culture=neutral, PublicKeyToken=D8562A1C4A42C0A1" /> <add assembly="Skcc.Web, Version=3.0.0.0, Culture=neutral, PublicKeyToken=D8562A1C4A42C0A1" /> <add assembly="Skcc.Web.Services, Version=3.0.0.0, Culture=neutral, PublicKeyToken=D8562A1C4A42C0A1" /> <add assembly="Skcc.IoC, Version=3.0.0.0, Culture=neutral, PublicKeyToken=D8562A1C4A42C0A1" /> <add assembly="Skcc.Utilities, Version=3.0.0.0, Culture=neutral, PublicKeyToken=D8562A1C4A42C0A1" /> <!--<add assembly="System.Web.DynamicData, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>--> <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies> </compilation>

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧