在Windows Server 2012上运行.NET 4.0上的服务构build时发生System.Configuration.ConfigurationException

在Windows Server 2012上运行.NET 4.0上的服务构build时发生System.Configuration.ConfigurationException,第1张

概述在Windows Server 2012上运行.NET 4.0上的服务构build时发生System.Configuration.ConfigurationException

美好的一天。

我有一个现有的windows服务,运行良好的windows Service 2003或.NET 4.0。 我正尝试在windows Service 2012上安装相同的服务,并且成功。 但是,当我运行该服务时,我得到了下面的错误。 我相信windows Server 4.5也支持4.5,这是正确的吗?

任何人都可以帮助我确定为什么我得到下面的消息?

日志名称:应用程序源:.NET运行时date:8/17/2015 5:56:56上事件ID:1026任务类别:无级别:错误关键字:经典用户:不适用计算机:usa0300vm1598.na.xerox.net说明:应用程序:ATLAS_LETTERPROCESS.SERVICE.exe Framework版本:v4.0.30319

C#从registry中获取SystemRestore的状态

如何获得过去10年的夏令时间界限

使用用户没有安装的字体

向GAC注册/安装大会的“正确”方式是什么?

DirectoryInfo.Getfiles()不返回所有文件

Description: The process was terminated due to an unhandled exception. Exception Info: System.Configuration.ConfigurationErrorsException Stack: at System.Configuration.ClIEntConfigurationSystem.EnsureInit(System.String) at System.Configuration.ClIEntConfigurationSystem.PrepareClIEntConfigSystem(System.String) at System.Configuration.ClIEntConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(System.String) at System.Configuration.ConfigurationManager.get_AppSettings() at ATLAS_LETTERPROCESS.SERVICE.AtlasLetterProcess..ctor() at ATLAS_LETTERPROCESS.SERVICE.Program.Main()

事件Xml:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <ProvIDer name=".NET Runtime" /> <EventID QualifIErs="0">1026</EventID> <Level>2</Level> <Task>0</Task> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2015-08-17T09:56:56.000000000Z" /> <EventRecordID>58020</EventRecordID> <Channel>Application</Channel> <Computer>usa0300vm1598.na.xerox.net</Computer> <Security /> </System> <EventData> <Data>Application: ATLAS_LETTERPROCESS.SERVICE.exe

Framework版本:v4.0.30319说明:由于未处理的exception,进程已终止。

Exception Info: System.Configuration.ConfigurationErrorsException Stack: at System.Configuration.ClIEntConfigurationSystem.EnsureInit(System.String) at System.Configuration.ClIEntConfigurationSystem.PrepareClIEntConfigSystem(System.String) at System.Configuration.ClIEntConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(System.String) at System.Configuration.ConfigurationManager.get_AppSettings() at ATLAS_LETTERPROCESS.SERVICE.AtlasLetterProcess..ctor() at ATLAS_LETTERPROCESS.SERVICE.Program.Main() </Data> </EventData> </Event>

以下是当前的app.config文件

<?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup,System,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089" > <section name="ATLAS_LETTERPROCESS.Common.PropertIEs.Settings" type="System.Configuration.ClIEntSettingsSection,PublicKeyToken=b77a5c561934e089" requirePermission="false" /> </sectionGroup> </configSections> <connectionStrings> <add name="Intentionally HIDden" connectionString="Metadata=res://*/AtlasLetterProcess.csdl|res://*/AtlasLetterProcess.ssdl|res://*/AtlasLetterProcess.msl;provIDer=Oracle.DataAccess.ClIEnt;provIDer connection string=&quot;DATA SOURCE=(DESCRIPTION = (ADDRESS_List = (ADDRESS = (PROTOCol = TCP)(HOST = Intentionally HIDden)(PORT = Intentionally HIDden))) (CONNECT_DATA = (SERVICE_name = Intentionally HIDden)));User ID= Intentionally HIDden;Password=Intentionally HIDden;&quot;" provIDername="System.Data.EntityClIEnt" /> </connectionStrings> <oracle.dataaccess.clIEnt> <settings> <add name="Intentionally HIDden" value="implicitRefCursor bindinfo='mode=Output'"/> <add name="Intentionally HIDden" value="implicitRefCursor Metadata='Columnname=TL_LETTER_ID; BaseColumnname=TL_LETTER_ID; BaseSchemaname=CMS_USER;Basetablename=TBL_LETTER; NativeDataType=number;ProvIDerType=Int32'"/> <add name="Intentionally HIDden" value="implicitRefCursor Metadata='Columnname=TL_ATLAS_KEY_ID; BaseSchemaname=CMS_USER;Basetablename=TBL_LETTER;NativeDataType=varchar2;ProvIDerType=varchar2;ProvIDerDBType=String; DataType=System.String;Allowdbnull=true'"/> <add name="Intentionally HIDden" value="implicitRefCursor Metadata='Columnname=TL_input_XML; BaseSchemaname=CMS_USER;Basetablename=TBL_LETTER; NativeDataType=clob;ProvIDerType=Clob'"/> <add name="Intentionally HIDden" value="implicitRefCursor Metadata='Columnname=TL_DART_URL;BaseSchemaname=CMS_USER; Basetablename=TBL_LETTER;NativeDataType=varchar2;ProvIDerType=Varchar2;ProvIDerDBType=String; DataType=System.String;Allowdbnull=true'"/> <add name="Intentionally HIDden" value="implicitRefCursor Metadata='Columnname=TL_STATUS;BaseSchemaname=CMS_USER; Basetablename=TBL_LETTER;NativeDataType=char;ProvIDerType=char;ProvIDerDBType=String;ColumnSize=2; DataType=System.String;Allowdbnull=true'"/> <add name="Intentionally HIDden" value="implicitRefCursor Metadata='Columnname=TL_TYPE; BaseSchemaname=CMS_USER;Basetablename=TBL_LETTER;NativeDataType=varchar2;ProvIDerType=varchar2;ProvIDerDBType=String; DataType=System.String;Allowdbnull=true'"/> <add name="Intentionally HIDden" value="implicitRefCursor Metadata='Columnname=TL_MODE;BaseSchemaname=CMS_USER; Basetablename=TBL_LETTER;NativeDataType=char;ProvIDerType=char;ProvIDerDBType=String;ColumnSize=1; DataType=System.String;Allowdbnull=true'"/> <add name="Intentionally HIDden" value="implicitRefCursor Metadata='Columnname=TL_REMARKS;BaseSchemaname=CMS_USER; Basetablename=TBL_LETTER;NativeDataType=varchar2;ProvIDerType=varchar2;ProvIDerDBType=String;ColumnSize=2000; DataType=System.String;Allowdbnull=true'"/> <add name="Intentionally HIDden" value="implicitRefCursor Metadata='Columnname=TL_TASK_ID;BaseSchemaname=CMS_USER; Basetablename=TBL_LETTER;NativeDataType=varchar2;ProvIDerType=varchar2;ProvIDerDBType=String;ColumnSize=50; DataType=System.String;Allowdbnull=true'"/> <add name="Intentionally HIDden" value="implicitRefCursor Metadata='Columnname=TEMPLATE_name;BaseSchemaname=CMS_USER; Basetablename=TBL_LETTER;NativeDataType=varchar2;ProvIDerType=varchar2;ProvIDerDBType=String;ColumnSize=100; DataType=System.String;Allowdbnull=true'"/> <add name="Intentionally HIDden" value="implicitRefCursor Metadata='Columnname=TEMPLATE_PATH;BaseSchemaname=CMS_USER; Basetablename=TBL_LETTER;NativeDataType=varchar2;ProvIDerType=varchar2;ProvIDerDBType=String;ColumnSize=2000; DataType=System.String;Allowdbnull=true'"/> <add name="Intentionally HIDden" value="implicitRefCursor Metadata='Columnname=PulL_DART_INVOICE;BaseSchemaname=CMS_USER; Basetablename=TBL_LETTER;NativeDataType=varchar2;ProvIDerType=char;ProvIDerDBType=String;ColumnSize=1; DataType=System.String;Allowdbnull=true'"/> <add name="Intentionally HIDden" value="implicitRefCursor Metadata='Columnname=DESCRIPTION;BaseSchemaname=CMS_USER; Basetablename=TBL_LETTER;NativeDataType=varchar2;ProvIDerType=varchar2;ProvIDerDBType=String;ColumnSize=100; DataType=System.String;Allowdbnull=true'"/> <add name="Intentionally HIDden" value="implicitRefCursor Metadata='Columnname=TEMPLATE_IDENTIFIER_TYPE;BaseSchemaname=CMS_USER; Basetablename=TBL_LETTER;NativeDataType=varchar2;ProvIDerType=varchar2;ProvIDerDBType=String;ColumnSize=100; DataType=System.String;Allowdbnull=true'"/> </settings> </oracle.dataaccess.clIEnt> <appSettings> <add key="cclLetterPath" value="D:Atlas_Collection_ServicesAtlasLetterProcessOutputcclLetters"/> <add key="autoLetterPath" value="D:Atlas_Collection_ServicesAtlasLetterProcessOutputautoLetters"/> <add key="ondemandPath" value="D:Atlas_Collection_ServicesAtlasLetterProcessOutputondemandLetters"/> <add key="autoStopPath" value="D:Atlas_Collection_ServicesAtlasLetterProcessOutputautoStopLetters"/> <add key="XSdpath" value="D:Atlas_Collection_ServicesAtlasLetterProcessXSDLetterProcess.xsd"/> <add key="LogfilePath" value="D:Atlas_Collection_ServicesAtlasLetterProcessLog"/> <add key="Logfilename" value="ATLAS_LETTERPROCESS"/> <add key="headerImage" value="D:Atlas_Collection_ServicesAtlasLetterProcessheader.jpg"/> <add key="Deletefiles" value="Y"/> <add key="ArchivePath" value="D:Atlas_Collection_ServicesAtlasLetterProcessArchive"/> <!-- Print Center Configurations--> <add key="ServerAddress" value="Intentionally HIDden" /> <add key="Username" value="Intentionally HIDden" /> <add key="Password" value="Intentionally HIDden" /> <add key="licenseKey" value="Intentionally HIDden" /> <add key="licenSEOwner" value="Intentionally HIDden" /> <add key="ChangeWorkingDirectory" value="/collectltr/Prod/" /> <add key="ServerPort" value="22" /> <!--Email Details--> <add key="SMTPServer" value="Intentionally HIDden" /> <add key="EmailSupportFrom" value="AtlasLetterProcessprod@Intentionally HIDden"/> <add key="EmailSupportTo" value="Intentionally HIDden@Intentionally HIDden"/> <add key="EmailSupportCC" value=""/> <add key="EmailSupportBCC" value=""/> <add key="EmailSubject" value="Atlas LetterProcess(Prod): Error in letter process service."/> <add key ="ErrorStartline" value = "****************** Error Message ******************" /> <add key ="Endline" value = "***************************************************" /> <!--ATLAS--> <add key="AtlasUsername" value="Intentionally HIDden" /> <add key="AtlasPassword" value="Intentionally HIDden" /> <add key="AtlasSessionType" value="Stateless" /> <add key="AtlasExpirationHours" value="10" /> <add key="AtalasServiceURL" value="http://Intentionally HIDden:8080/eai_enu/start.swe?SWEExtSource=WebService&amp;SWEExtCmd=Execute&amp;WSSOAP=1"/> <!--Service Timing--> <add key="autoMode" value="ON" /> <add key="ServiceStartTime" value="01:00" /> <add key="ServiceEndTime" value="23:00" /> <add key="ServiceInterval" value="60000" /> <add key="ServiceDay" value="1,2,3,4,5,6,0" /> <!--Mon-1,Tue-2,Wed-3,Thr-4,Fri-5,Sat-6,Sun-0--> <!--Dart Service configurations--> <add key="DARTServiceURL" value="Intentionally HIDden"/> <add key="DartUsername" value="Intentionally HIDden"/> <add key="DartPassword" value="Intentionally HIDden"/> <add key="Partitionlimit" value="1000" /> <add key="ExcludeInvoiceCodes" value="78,79,RD,TD,SD" /> </appSettings> <applicationSettings> <ATLAS_LETTERPROCESS.Common.PropertIEs.Settings> <setting name="ATLAS_LETTERPROCESS_Common_DARTWebService_DARTWebServiceService" serializeAs="String"> <value>Intentionally HIDden</value> </setting> </ATLAS_LETTERPROCESS.Common.PropertIEs.Settings> </applicationSettings> <system.web> <webServices> <soapExtensionTypes> <add type="ATLAS_LETTERPROCESS.soapExtension.SIEbelSoapExtension,ATLAS_LETTERPROCESS.soapExtension" /> </soapExtensionTypes> </webServices> <membership defaultProvIDer="ClIEntAuthenticationMembershipProvIDer"> <provIDers> <add name="ClIEntAuthenticationMembershipProvIDer" type="System.Web.ClIEntServices.ProvIDers.ClIEntFormsAuthenticationMembershipProvIDer,System.Web.Extensions,PublicKeyToken=31bf3856ad364e35" serviceUri="" /> </provIDers> </membership> <roleManager defaultProvIDer="ClIEntRoleProvIDer" enabled="true"> <provIDers> <add name="ClIEntRoleProvIDer" type="System.Web.ClIEntServices.ProvIDers.ClIEntRoleProvIDer,PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" /> </provIDers> </roleManager> </system.web> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup> </configuration>

.Net越来越多的内存问题

混合托pipe/非托pipeassembly加载顺序

我如何移动粘贴/贴紧wpf窗口

Ruby可以导入一个.NET DLL吗?

一种可靠的方法来识别显示设备?

我能够使用一个简单的控制台应用程序复制这个问题,并使用您在那里的配置文件作为App.config。

例如在控制台应用程序中,我只有2个以下的行 –

class Program { static voID Main(string[] args) { var configfile = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); var abc = ConfigurationManager.AppSettings["abc"]; } }

执行上面的程序后,我得到如下所示的错误 –

at System.Configuration.ClIEntConfigurationSystem.EnsureInit(String configKey) at System.Configuration.ClIEntConfigurationSystem.PrepareClIEntConfigSystem(String sectionname) at System.Configuration.ClIEntConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionname) at System.Configuration.ConfigurationManager.get_AppSettings() at ExperimentConsoleApp.Program.Main(String[] args)

但是当我看到内部异常,我得到可以看到以下错误 –

Unrecognized configuration section oracle.dataaccess.clIEnt.

这可能是非常好的,因为我没有安装正确的组件,但配置文件没有指定组件,并验证我注释了oracle数据访问,它的工作原理。 我也尝试安装oracle托管数据访问组件,并按照预期的方式在web.config的config部分添加了配置。

配置节缺少oracle数据访问配置。 例如下面是针对oracle管理的数据访问 –

<configSections> <section name="oracle.manageddataaccess.clIEnt" type="OracleInternal.Common.ODPMSectionHandler,Oracle.ManagedDataAccess,Version=4.121.1.0,PublicKeyToken=89b483f429c47342" /> </configSections>

总结

以上是内存溢出为你收集整理的在Windows Server 2012上运行.NET 4.0上的服务构build时发生System.Configuration.ConfigurationException全部内容,希望文章能够帮你解决在Windows Server 2012上运行.NET 4.0上的服务构build时发生System.Configuration.ConfigurationException所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/1286094.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-09
下一篇 2022-06-09

发表评论

登录后才能评论

评论列表(0条)

保存