今天,当我从开始菜单启动报表生成器时,我看到了初始屏幕,然后它关闭了。
我尝试删除临时文件和“ C:\ Users \ me \ AppData \ Local \ Apps \ 2.0”下的文件
为了进行测试,我创建了一个新的本地Windows帐户,然后再次将其安装在该帐户中,并且运行正常。
有什么想法吗?
在事件查看器中,我发现了这一点:
Application: MSReportBuilder.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Xml.XmlException
at System.Xml.XmlTextReaderImpl.Throw(System.Exception)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(System.Xml.XmlDocument, System.Xml.XmlReader, Boolean)
at System.Xml.XmlDocument.Load(System.Xml.XmlReader)
at System.Xml.XmlDocument.Load(System.String)
at Microsoft.ReportDesigner.Properties.Settings+RBSettingsProvider.GetReader(System.String)
at Microsoft.ReportDesigner.Properties.Settings+RBSettingsProvider.GetUserScopedReader()
at Microsoft.ReportDesigner.Properties.Settings+RBSettingsProvider.GetPropertyValues(System.Configuration.SettingsContext, System.Configuration.SettingsPropertyCollection)
at System.Configuration.SettingsBase.GetPropertiesFromProvider(System.Configuration.SettingsProvider)
at System.Configuration.SettingsBase.GetPropertyValueByName(System.String)
at System.Configuration.SettingsBase.get_Item(System.String)
at System.Configuration.ApplicationSettingsBase.GetPropertyValue(System.String)
at System.Configuration.ApplicationSettingsBase.get_Item(System.String)
at Microsoft.ReportDesigner.Properties.Settings.get_RecentDataSources()
at Microsoft.ReportDesigner.ApplicationSettings.get_Settings()
at Microsoft.ReportDesigner.ReportDesigner.LoadAppConfigWndSize()
at Microsoft.ReportDesigner.ReportDesigner..ctor()
at Microsoft.ReportDesigner.ReportDesigner..ctor(Microsoft.ReportDesigner.AppArguments)
at Microsoft.ReportDesigner.Program.Main(System.String[])
答案 0 :(得分:1)
为我解决这个问题的是本地报告生成器文件夹中的 user.config 文件是 @ 0kb,所以我用另一台计算机上的另一个文件替换了它,现在它工作得很好。
答案 1 :(得分:0)
是的,请在用户主目录AppData / Local / Microsoft下查看,然后尝试删除或重命名“ Report Builder”文件夹。有时,应用会弄乱某些首选项,然后崩溃。这对我有用(可能也是localLow或漫游文件夹)– sproketboy 2月25日在22:11
sproketboy在其comment on Feb 25 at 22:11中提供的解决方案为我工作。鉴于它确实为我解决了这种情况,我将其重新发布在此处作为答案。