在我的winform应用程序中,我正在尝试添加userSetting,尽管appSettings也出现了错误.当添加设置时,我得到一个抛出的异常,说:"配置系统无法初始化",内部异常"无法识别的配置部分userSetting"
例外细节:
System.Configuration.ConfigurationErrorsException was unhandled
Message="Configuration system failed to initialize"
Source="System.Configuration"
BareMessage="Configuration system failed to initialize"
Line=0
StackTrace:
at System.Configuration.ConfigurationManager.PrepareConfigSystem()
at System.Configuration.ConfigurationManager.RefreshSection(String sectionName)
at System.Configuration.ClientSettingsStore.ReadSettings(String sectionName, Boolean isUserScoped)
at System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)
at System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
at System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)
at System.Configuration.SettingsBase.get_Item(String propertyName)
at System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName)
at System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)
at Settings.get_ApplicationData() in \Properties\Settings.Designer.cs:line 41
at Common.Initialize.IsSettingsInitialized()
at SurveyClient.Program.Main()
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object …Run Code Online (Sandbox Code Playgroud) 有没有人使用他们喜欢使用的好的正则表达式库?您在网上找到的大多数正则表达式都包含错误,或者如此专注于边缘情况,它变成竞争以验证100%的任何规格.当然你可以自己编写,但是当你按小时计费时,它就可以方便地找到一个库.
我正在为Word 2003开发Office Word加载项.当我重新打开项目时,将打开VS2008自动隐蔽对话框并尝试将其转换为Word 2007格式.
如何重新打开此文件并将其保留为Word 2003格式?
我继承了一个使用LLBLGen Pro作为DB层的项目.DB模型要求在删除条目时将标志(DeletedDate设置为当前时间).最后一个程序员忽略了这个要求,并在整个应用程序中使用了常规删除.
有没有办法设置代码生成器自动执行此操作,还是必须为需要它的实体重载每个删除操作符?
当我尝试使用Name="id"and和/或x:name="id"得到编译器错误时:
The Type 'MyName' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
Run Code Online (Sandbox Code Playgroud)
当我没有指定此选项时,我的控件运行正常。有什么建议么?
我是powershell的新手,作为练习,我正在尝试编写一个自动脚本来备份我的iphone照片.
我试图找出如何设置我的iPhone照片目录的路径的位置.
我找到了命令Get-PsDrive; 但是,我的电话名称不会出现在此列表中.
谁能告诉我找到电话路径所需的命令,然后cd到那条路径?
我们可以假设手机已连接.
c# ×3
.net ×1
.net-3.5 ×1
app-config ×1
llblgenpro ×1
ms-word ×1
powershell ×1
regex ×1
settings ×1
vsto ×1
wpf ×1